org.jboss.picketlink.idm.internal
Class JPAIdentityStore
java.lang.Object
org.jboss.picketlink.idm.internal.JPAIdentityStore
- All Implemented Interfaces:
- IdentityStore
public class JPAIdentityStore
- extends Object
- implements IdentityStore
An implementation of IdentityStore backed by a JPA datasource
- Author:
- Shane Bryzak, Pedro Silva
|
Method Summary |
Group |
createGroup(String name,
Group parent)
|
Membership |
createMembership(Role role,
User user,
Group group)
|
Role |
createRole(String name)
|
User |
createUser(String name)
|
List<Group> |
executeQuery(GroupQuery query,
Range range)
|
List<Membership> |
executeQuery(MembershipQuery query,
Range range)
|
List<Role> |
executeQuery(RoleQuery query,
Range range)
|
List<User> |
executeQuery(UserQuery query,
Range range)
|
Map<String,String[]> |
getAttributes(Group group)
|
Map<String,String[]> |
getAttributes(Role role)
|
Map<String,String[]> |
getAttributes(User user)
|
String[] |
getAttributeValues(Group group,
String name)
|
String[] |
getAttributeValues(Role role,
String name)
|
String[] |
getAttributeValues(User user,
String name)
|
Group |
getGroup(String group)
|
Membership |
getMembership(Role role,
User user,
Group group)
|
Role |
getRole(String role)
|
User |
getUser(String name)
|
void |
removeAttribute(Group group,
String name)
|
void |
removeAttribute(Role role,
String name)
|
void |
removeAttribute(User user,
String name)
|
void |
removeGroup(Group group)
|
void |
removeMembership(Role role,
User user,
Group group)
|
void |
removeRole(Role role)
|
void |
removeUser(User user)
|
void |
setAttribute(Group group,
String name,
String[] values)
|
void |
setAttribute(Role role,
String name,
String[] values)
|
void |
setAttribute(User user,
String name,
String[] values)
|
void |
setJpaTemplate(JPATemplate jpaTemplate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPAIdentityStore
public JPAIdentityStore()
createUser
public User createUser(String name)
- Specified by:
createUser in interface IdentityStore
removeUser
public void removeUser(User user)
- Specified by:
removeUser in interface IdentityStore
getUser
public User getUser(String name)
- Specified by:
getUser in interface IdentityStore
createGroup
public Group createGroup(String name,
Group parent)
- Specified by:
createGroup in interface IdentityStore
removeGroup
public void removeGroup(Group group)
- Specified by:
removeGroup in interface IdentityStore
getGroup
public Group getGroup(String group)
- Specified by:
getGroup in interface IdentityStore
createRole
public Role createRole(String name)
- Specified by:
createRole in interface IdentityStore
removeRole
public void removeRole(Role role)
- Specified by:
removeRole in interface IdentityStore
getRole
public Role getRole(String role)
- Specified by:
getRole in interface IdentityStore
createMembership
public Membership createMembership(Role role,
User user,
Group group)
- Specified by:
createMembership in interface IdentityStore
removeMembership
public void removeMembership(Role role,
User user,
Group group)
- Specified by:
removeMembership in interface IdentityStore
getMembership
public Membership getMembership(Role role,
User user,
Group group)
- Specified by:
getMembership in interface IdentityStore
executeQuery
public List<User> executeQuery(UserQuery query,
Range range)
- Specified by:
executeQuery in interface IdentityStore
executeQuery
public List<Group> executeQuery(GroupQuery query,
Range range)
- Specified by:
executeQuery in interface IdentityStore
executeQuery
public List<Role> executeQuery(RoleQuery query,
Range range)
- Specified by:
executeQuery in interface IdentityStore
executeQuery
public List<Membership> executeQuery(MembershipQuery query,
Range range)
- Specified by:
executeQuery in interface IdentityStore
setAttribute
public void setAttribute(User user,
String name,
String[] values)
- Specified by:
setAttribute in interface IdentityStore
removeAttribute
public void removeAttribute(User user,
String name)
- Specified by:
removeAttribute in interface IdentityStore
getAttributeValues
public String[] getAttributeValues(User user,
String name)
- Specified by:
getAttributeValues in interface IdentityStore
getAttributes
public Map<String,String[]> getAttributes(User user)
- Specified by:
getAttributes in interface IdentityStore
setAttribute
public void setAttribute(Group group,
String name,
String[] values)
- Specified by:
setAttribute in interface IdentityStore
removeAttribute
public void removeAttribute(Group group,
String name)
- Specified by:
removeAttribute in interface IdentityStore
getAttributeValues
public String[] getAttributeValues(Group group,
String name)
- Specified by:
getAttributeValues in interface IdentityStore
getAttributes
public Map<String,String[]> getAttributes(Group group)
- Specified by:
getAttributes in interface IdentityStore
setAttribute
public void setAttribute(Role role,
String name,
String[] values)
- Specified by:
setAttribute in interface IdentityStore
removeAttribute
public void removeAttribute(Role role,
String name)
- Specified by:
removeAttribute in interface IdentityStore
getAttributeValues
public String[] getAttributeValues(Role role,
String name)
- Specified by:
getAttributeValues in interface IdentityStore
getAttributes
public Map<String,String[]> getAttributes(Role role)
- Specified by:
getAttributes in interface IdentityStore
setJpaTemplate
public void setJpaTemplate(JPATemplate jpaTemplate)
Copyright © 2012. All Rights Reserved.