org.jboss.picketlink.idm.internal
Class DefaultIdentityManager

java.lang.Object
  extended by org.jboss.picketlink.idm.internal.DefaultIdentityManager
All Implemented Interfaces:
IdentityManager

public class DefaultIdentityManager
extends Object
implements IdentityManager

Default implementation of the IdentityManager interface

Author:
Shane Bryzak, anil saldhana

Constructor Summary
DefaultIdentityManager()
           
 
Method Summary
 void addToGroup(IdentityType identityType, Group group)
           
 Group createGroup(String id)
           
 Group createGroup(String id, Group parent)
           
 Group createGroup(String id, String parent)
           
 GroupQuery createGroupQuery()
           
 MembershipQuery createMembershipQuery()
           
 Role createRole(String name)
           
 RoleQuery createRoleQuery()
           
 User createUser(String name)
           
 UserQuery createUserQuery()
           
 Collection<Group> getAllGroups()
           
 Collection<Role> getAllRoles()
           
 Collection<User> getAllUsers()
           
 Group getGroup(String groupId)
           
 Group getGroup(String groupId, Group parent)
           
 Collection<IdentityType> getGroupMembers(Group group)
           
 Role getRole(String name)
           
 Collection<Role> getRoles(IdentityType identityType, Group group)
           
 User getUser(String name)
           
 void grantRole(Role role, IdentityType identityType, Group group)
           
 boolean hasRole(Role role, IdentityType identityType, Group group)
           
 void removeFromGroup(IdentityType identityType, Group group)
           
 void removeGroup(Group group)
           
 void removeGroup(String groupId)
           
 void removeRole(Role role)
           
 void removeRole(String name)
           
 void removeUser(String name)
           
 void removeUser(User user)
           
 void revokeRole(Role role, IdentityType identityType, Group group)
           
 void setEnabled(IdentityType identityType, boolean enabled)
           
 void setExpirationDate(IdentityType identityType, Date expirationDate)
           
 void setIdentityStore(IdentityStore theStore)
           
 void updatePassword(String password)
           
 boolean validatePassword(String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIdentityManager

public DefaultIdentityManager()
Method Detail

setIdentityStore

public void setIdentityStore(IdentityStore theStore)

createUser

public User createUser(String name)
Specified by:
createUser in interface IdentityManager

removeUser

public void removeUser(User user)
Specified by:
removeUser in interface IdentityManager

removeUser

public void removeUser(String name)
Specified by:
removeUser in interface IdentityManager

getUser

public User getUser(String name)
Specified by:
getUser in interface IdentityManager

getAllUsers

public Collection<User> getAllUsers()
Specified by:
getAllUsers in interface IdentityManager

createGroup

public Group createGroup(String id)
Specified by:
createGroup in interface IdentityManager

createGroup

public Group createGroup(String id,
                         Group parent)
Specified by:
createGroup in interface IdentityManager

createGroup

public Group createGroup(String id,
                         String parent)
Specified by:
createGroup in interface IdentityManager

removeGroup

public void removeGroup(Group group)
Specified by:
removeGroup in interface IdentityManager

removeGroup

public void removeGroup(String groupId)
Specified by:
removeGroup in interface IdentityManager

getGroup

public Group getGroup(String groupId)
Specified by:
getGroup in interface IdentityManager

getGroup

public Group getGroup(String groupId,
                      Group parent)
Specified by:
getGroup in interface IdentityManager

getAllGroups

public Collection<Group> getAllGroups()
Specified by:
getAllGroups in interface IdentityManager

addToGroup

public void addToGroup(IdentityType identityType,
                       Group group)
Specified by:
addToGroup in interface IdentityManager

removeFromGroup

public void removeFromGroup(IdentityType identityType,
                            Group group)
Specified by:
removeFromGroup in interface IdentityManager

getGroupMembers

public Collection<IdentityType> getGroupMembers(Group group)
Specified by:
getGroupMembers in interface IdentityManager

createRole

public Role createRole(String name)
Specified by:
createRole in interface IdentityManager

removeRole

public void removeRole(Role role)
Specified by:
removeRole in interface IdentityManager

removeRole

public void removeRole(String name)
Specified by:
removeRole in interface IdentityManager

getRole

public Role getRole(String name)
Specified by:
getRole in interface IdentityManager

getAllRoles

public Collection<Role> getAllRoles()
Specified by:
getAllRoles in interface IdentityManager

getRoles

public Collection<Role> getRoles(IdentityType identityType,
                                 Group group)
Specified by:
getRoles in interface IdentityManager

hasRole

public boolean hasRole(Role role,
                       IdentityType identityType,
                       Group group)
Specified by:
hasRole in interface IdentityManager

grantRole

public void grantRole(Role role,
                      IdentityType identityType,
                      Group group)
Specified by:
grantRole in interface IdentityManager

revokeRole

public void revokeRole(Role role,
                       IdentityType identityType,
                       Group group)
Specified by:
revokeRole in interface IdentityManager

createUserQuery

public UserQuery createUserQuery()
Specified by:
createUserQuery in interface IdentityManager

createGroupQuery

public GroupQuery createGroupQuery()
Specified by:
createGroupQuery in interface IdentityManager

createRoleQuery

public RoleQuery createRoleQuery()
Specified by:
createRoleQuery in interface IdentityManager

createMembershipQuery

public MembershipQuery createMembershipQuery()
Specified by:
createMembershipQuery in interface IdentityManager

validatePassword

public boolean validatePassword(String password)
Specified by:
validatePassword in interface IdentityManager

updatePassword

public void updatePassword(String password)
Specified by:
updatePassword in interface IdentityManager

setEnabled

public void setEnabled(IdentityType identityType,
                       boolean enabled)
Specified by:
setEnabled in interface IdentityManager

setExpirationDate

public void setExpirationDate(IdentityType identityType,
                              Date expirationDate)
Specified by:
setExpirationDate in interface IdentityManager


Copyright © 2012. All Rights Reserved.