Interface AnyObjectDAO
-
- All Known Implementing Classes:
JPAAnyObjectDAO
,JPAJSONAnyObjectDAO
public interface AnyObjectDAO extends AnyDAO<AnyObject>
-
-
Field Summary
-
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.AnyDAO
DEFAULT_PAGE_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Integer>
countByRealm(AnyType anyType)
Map<AnyType,Integer>
countByType()
Counts the number of instances for each type.Collection<String>
findAllGroupKeys(AnyObject anyObject)
Collection<Group>
findAllGroups(AnyObject anyObject)
List<Relationship<Any<?>,AnyObject>>
findAllRelationships(AnyObject anyObject)
Collection<ExternalResource>
findAllResources(AnyObject anyObject)
List<AnyObject>
findByName(String name)
AnyObject
findByName(String type, String name)
List<Group>
findDynGroups(String key)
String
findKey(String type, String name)
AMembership
findMembership(String key)
Pair<Set<String>,Set<String>>
saveAndGetDynGroupMembs(AnyObject anyObject)
void
securityChecks(Set<String> authRealms, String key, String realm, Collection<String> groups)
Checks if the calling user is authorized to access the Any Object matching the provided key, under the given realm.-
Methods inherited from interface org.apache.syncope.core.persistence.api.dao.AnyDAO
authFind, count, delete, delete, find, findAll, findAllKeys, findAllowedSchemas, findAllResourceKeys, findByDerAttrValue, findByKeys, findByPlainAttrUniqueValue, findByPlainAttrValue, findByResource, findDynRealms, findLastChange, getAllMatchingCond, save
-
-
-
-
Method Detail
-
securityChecks
void securityChecks(Set<String> authRealms, String key, String realm, Collection<String> groups)
Checks if the calling user is authorized to access the Any Object matching the provided key, under the given realm.- Parameters:
authRealms
- realms for which the calling user owns entitlement(s) to checkkey
- Any Object keyrealm
- Any Object's realm full pathgroups
- group the Any Object is member of
-
countByType
Map<AnyType,Integer> countByType()
Counts the number of instances for each type. The returned map is expected to be sorted on values.- Returns:
- the number of instances for each type
-
findMembership
AMembership findMembership(String key)
-
findAllRelationships
List<Relationship<Any<?>,AnyObject>> findAllRelationships(AnyObject anyObject)
-
findAllGroups
Collection<Group> findAllGroups(AnyObject anyObject)
-
findAllGroupKeys
Collection<String> findAllGroupKeys(AnyObject anyObject)
-
findAllResources
Collection<ExternalResource> findAllResources(AnyObject anyObject)
-
-