Class UmaResourceService


  • @Named
    public class UmaResourceService
    extends Object
    Provides operations with resource set descriptions
    Author:
    Yuriy Movchan, Yuriy Zabrovarnyy Date: 10.05.2012
    • 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​(String rsid)
        Remove resource description entry by ID.
        Parameters:
        rsid - resource ID
      • remove

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

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

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

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

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

        public String getBaseDnForResource()