Class UmaResourceService


  • @Named
    public class UmaResourceService
    extends java.lang.Object
    Provides operations with resource set descriptions
    Author:
    Yuriy Movchan, Yuriy Zabrovarnyy Date: 10.05.2012
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBranch()  
      void addResource​(io.jans.as.model.uma.persistence.UmaResource resource)
      Add new resource description entry
      java.lang.String getBaseDnForResource()  
      java.lang.String getDnForResource​(java.lang.String jsId)
      Build DN string for resource description
      io.jans.as.model.uma.persistence.UmaResource getResourceById​(java.lang.String id)  
      java.util.Set<io.jans.as.model.uma.persistence.UmaResource> getResources​(java.util.Set<java.lang.String> ids)  
      java.util.List<io.jans.as.model.uma.persistence.UmaResource> getResourcesByAssociatedClient​(java.lang.String associatedClientDn)
      Get all resource descriptions
      java.util.Set<java.lang.String> getResourceScopes​(java.util.Set<java.lang.String> resourceIds)  
      void remove​(io.jans.as.model.uma.persistence.UmaResource resource)
      Remove resource description entry
      void remove​(java.lang.String rsid)
      Remove resource description entry by ID.
      void remove​(java.util.List<io.jans.as.model.uma.persistence.UmaResource> resources)  
      void updateResource​(io.jans.as.model.uma.persistence.UmaResource resource)  
      void updateResource​(io.jans.as.model.uma.persistence.UmaResource resource, boolean skipValidation)
      Update resource description entry
      void validate​(io.jans.as.model.uma.persistence.UmaResource resource)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UmaResourceService

        public UmaResourceService()
    • Method Detail

      • addBranch

        public void addBranch()
      • addResource

        public void addResource​(io.jans.as.model.uma.persistence.UmaResource resource)
        Add new resource description entry
        Parameters:
        resource - resource
      • validate

        public void validate​(io.jans.as.model.uma.persistence.UmaResource resource)
      • updateResource

        public void updateResource​(io.jans.as.model.uma.persistence.UmaResource resource)
      • updateResource

        public void updateResource​(io.jans.as.model.uma.persistence.UmaResource resource,
                                   boolean skipValidation)
        Update resource description entry
        Parameters:
        resource - resource
      • remove

        public void remove​(io.jans.as.model.uma.persistence.UmaResource resource)
        Remove resource description entry
        Parameters:
        resource - resource
      • remove

        public void remove​(java.lang.String rsid)
        Remove resource description entry by ID.
        Parameters:
        rsid - resource ID
      • remove

        public void remove​(java.util.List<io.jans.as.model.uma.persistence.UmaResource> resources)
      • getResourcesByAssociatedClient

        public java.util.List<io.jans.as.model.uma.persistence.UmaResource> getResourcesByAssociatedClient​(java.lang.String associatedClientDn)
        Get all resource descriptions
        Returns:
        List of resource descriptions
      • getResources

        public java.util.Set<io.jans.as.model.uma.persistence.UmaResource> getResources​(java.util.Set<java.lang.String> ids)
      • getResourceById

        public io.jans.as.model.uma.persistence.UmaResource getResourceById​(java.lang.String id)
      • getResourceScopes

        public java.util.Set<java.lang.String> getResourceScopes​(java.util.Set<java.lang.String> resourceIds)
      • getDnForResource

        public java.lang.String getDnForResource​(java.lang.String jsId)
        Build DN string for resource description
      • getBaseDnForResource

        public java.lang.String getBaseDnForResource()