public interface IdentityStore<T extends IdentityStoreConfiguration>
| Modifier and Type | Method and Description |
|---|---|
void |
add(AttributedType value)
Persists the specified IdentityType
|
<V extends IdentityType> |
countQueryResults(IdentityQuery<V> identityQuery) |
<V extends Relationship> |
countQueryResults(RelationshipQuery<V> query) |
<V extends IdentityType> |
fetchQueryResults(IdentityQuery<V> identityQuery) |
<V extends Relationship> |
fetchQueryResults(RelationshipQuery<V> query) |
Agent |
getAgent(String id) |
<V extends Serializable> |
getAttribute(IdentityType identityType,
String attributeName)
Returns the Attribute value with the specified name, for the specified IdentityType
|
T |
getConfig()
Returns the configuration for this IdentityStore instance
|
IdentityStoreInvocationContext |
getContext()
Returns the current context for this IdentityStore instance
|
Group |
getGroup(String groupPath)
Returns the
Group with the specified path. |
Group |
getGroup(String name,
Group parent)
Returns the Group with the specified name and parent group
|
Role |
getRole(String name)
Returns the specified role
|
User |
getUser(String id)
Returns the User with the specified id value.
|
void |
remove(AttributedType value)
Removes the specified IdentityType
|
void |
removeAttribute(IdentityType identityType,
String attributeName)
Removes the specified Attribute value, for the specified IdentityType
|
void |
setAttribute(IdentityType identityType,
Attribute<? extends Serializable> attribute)
Sets the specified Attribute value for the specified IdentityType
|
void |
setup(T config,
IdentityStoreInvocationContext context)
Sets the configuration and context in which the IdentityStore will execute its operations
|
void |
update(AttributedType value)
Updates the specified IdentityType
|
void |
updateCredential(Agent agent,
Object credential,
Date effectiveDate,
Date expiryDate)
Updates the specified credential value for the specified Agent.
|
void |
validateCredentials(Credentials credentials)
Validates the specified credentials.
|
void setup(T config, IdentityStoreInvocationContext context)
config - context - T getConfig()
IdentityStoreInvocationContext getContext()
void add(AttributedType value)
identityType - void update(AttributedType value)
identityType - void remove(AttributedType value)
identityType - User getUser(String id)
ctx - id - Group getGroup(String groupPath)
Returns the Group with the specified path. Eg.: /groupA/groupB/groupC.
ctx - groupPath - Group getGroup(String name, Group parent)
ctx - name - The name of the Group to returnRole getRole(String name)
ctx - name - The name of the Role to return<V extends IdentityType> List<V> fetchQueryResults(IdentityQuery<V> identityQuery)
<V extends IdentityType> int countQueryResults(IdentityQuery<V> identityQuery)
<V extends Relationship> List<V> fetchQueryResults(RelationshipQuery<V> query)
<V extends Relationship> int countQueryResults(RelationshipQuery<V> query)
void setAttribute(IdentityType identityType, Attribute<? extends Serializable> attribute)
ctx - identityType - attribute - <V extends Serializable> Attribute<V> getAttribute(IdentityType identityType, String attributeName)
ctx - identityType - attributeName - void removeAttribute(IdentityType identityType, String attributeName)
ctx - identityType - attributeName - void validateCredentials(Credentials credentials)
credentials - Copyright © 2013. All Rights Reserved.