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