Package io.jans.as.server.uma.service
Class UmaResourceService
- java.lang.Object
-
- io.jans.as.server.uma.service.UmaResourceService
-
@Named public class UmaResourceService extends 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 entryString
getBaseDnForResource()
String
getDnForResource(String jsId)
Build DN string for resource descriptionio.jans.as.model.uma.persistence.UmaResource
getResourceById(String id)
Set<io.jans.as.model.uma.persistence.UmaResource>
getResources(Set<String> ids)
List<io.jans.as.model.uma.persistence.UmaResource>
getResourcesByAssociatedClient(String associatedClientDn)
Get all resource descriptionsSet<String>
getResourceScopes(Set<String> resourceIds)
void
remove(io.jans.as.model.uma.persistence.UmaResource resource)
Remove resource description entryvoid
remove(String rsid)
Remove resource description entry by ID.void
remove(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(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()
-
-