Package io.jans.as.server.uma.service
Class UmaResourceService
- java.lang.Object
-
- io.jans.as.server.uma.service.UmaResourceService
-
@Named public class UmaResourceService extends java.lang.Object
Provides operations with resource set descriptions- Author:
- Yuriy Movchan, Yuriy Zabrovarnyy Date: 10.05.2012
-
-
Constructor Summary
Constructors Constructor Description UmaResourceService()
-
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 entryjava.lang.String
getBaseDnForResource()
java.lang.String
getDnForResource(java.lang.String jsId)
Build DN string for resource descriptionio.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 descriptionsjava.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 entryvoid
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 entryvoid
validate(io.jans.as.model.uma.persistence.UmaResource resource)
-
-
-
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()
-
-