org.activiti.engine.impl
类 IdentityServiceImpl

java.lang.Object
  继承者 org.activiti.engine.impl.ServiceImpl
      继承者 org.activiti.engine.impl.IdentityServiceImpl
所有已实现的接口:
IdentityService

public class IdentityServiceImpl
extends ServiceImpl
implements IdentityService

作者:
Tom Baeyens

字段摘要
 
从类 org.activiti.engine.impl.ServiceImpl 继承的字段
commandExecutor
 
构造方法摘要
IdentityServiceImpl()
           
 
方法摘要
 boolean checkPassword(String userId, String password)
          Checks if the password is valid for the given user.
 GroupQuery createGroupQuery()
          Creates a GroupQuery thats allows to programmatically query the groups.
 void createMembership(String userId, String groupId)
           
 NativeGroupQuery createNativeGroupQuery()
          Returns a new NativeQuery for tasks.
 NativeUserQuery createNativeUserQuery()
          Returns a new NativeQuery for tasks.
 UserQuery createUserQuery()
          Creates a UserQuery that allows to programmatically query the users.
 void deleteGroup(String groupId)
          Deletes the group.
 void deleteMembership(String userId, String groupId)
          Delete the membership of the user in the group.
 void deleteUser(String userId)
           
 void deleteUserInfo(String userId, String key)
          Delete an entry of the generic extensibility key-value pairs associated with a user
 String getUserInfo(String userId, String key)
          Generic extensibility key-value pairs associated with a user
 List<String> getUserInfoKeys(String userId)
          Generic extensibility keys associated with a user
 Picture getUserPicture(String userId)
          Retrieves the picture for a given user.
 Group newGroup(String groupId)
          Creates a new group.
 User newUser(String userId)
          Creates a new user.
 void saveGroup(Group group)
          Saves the group.
 void saveUser(User user)
          Saves the user.
 void setAuthenticatedUserId(String authenticatedUserId)
          Passes the authenticated user id for this particular thread.
 void setUserInfo(String userId, String key, String value)
          Generic extensibility key-value pairs associated with a user
 void setUserPicture(String userId, Picture picture)
          Sets the picture for a given user.
 
从类 org.activiti.engine.impl.ServiceImpl 继承的方法
getCommandExecutor, setCommandExecutor
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

IdentityServiceImpl

public IdentityServiceImpl()
方法详细信息

newGroup

public Group newGroup(String groupId)
从接口 IdentityService 复制的描述
Creates a new group. The group is transient and must be saved using IdentityService.saveGroup(Group).

指定者:
接口 IdentityService 中的 newGroup
参数:
groupId - id for the new group, cannot be null.

newUser

public User newUser(String userId)
从接口 IdentityService 复制的描述
Creates a new user. The user is transient and must be saved using IdentityService.saveUser(User).

指定者:
接口 IdentityService 中的 newUser
参数:
userId - id for the new user, cannot be null.

saveGroup

public void saveGroup(Group group)
从接口 IdentityService 复制的描述
Saves the group. If the group already existed, the group is updated.

指定者:
接口 IdentityService 中的 saveGroup
参数:
group - group to save. Cannot be null.

saveUser

public void saveUser(User user)
从接口 IdentityService 复制的描述
Saves the user. If the user already existed, the user is updated.

指定者:
接口 IdentityService 中的 saveUser
参数:
user - user to save, cannot be null.

createUserQuery

public UserQuery createUserQuery()
从接口 IdentityService 复制的描述
Creates a UserQuery that allows to programmatically query the users.

指定者:
接口 IdentityService 中的 createUserQuery

createNativeUserQuery

public NativeUserQuery createNativeUserQuery()
从接口 IdentityService 复制的描述
Returns a new NativeQuery for tasks.

指定者:
接口 IdentityService 中的 createNativeUserQuery

createGroupQuery

public GroupQuery createGroupQuery()
从接口 IdentityService 复制的描述
Creates a GroupQuery thats allows to programmatically query the groups.

指定者:
接口 IdentityService 中的 createGroupQuery

createNativeGroupQuery

public NativeGroupQuery createNativeGroupQuery()
从接口 IdentityService 复制的描述
Returns a new NativeQuery for tasks.

指定者:
接口 IdentityService 中的 createNativeGroupQuery

createMembership

public void createMembership(String userId,
                             String groupId)
指定者:
接口 IdentityService 中的 createMembership
参数:
userId - the userId, cannot be null.
groupId - the groupId, cannot be null.

deleteGroup

public void deleteGroup(String groupId)
从接口 IdentityService 复制的描述
Deletes the group. When no group exists with the given id, this operation is ignored.

指定者:
接口 IdentityService 中的 deleteGroup
参数:
groupId - id of the group that should be deleted, cannot be null.

deleteMembership

public void deleteMembership(String userId,
                             String groupId)
从接口 IdentityService 复制的描述
Delete the membership of the user in the group. When the group or user don't exist or when the user is not a member of the group, this operation is ignored.

指定者:
接口 IdentityService 中的 deleteMembership
参数:
userId - the user's id, cannot be null.
groupId - the group's id, cannot be null.

checkPassword

public boolean checkPassword(String userId,
                             String password)
从接口 IdentityService 复制的描述
Checks if the password is valid for the given user. Arguments userId and password are nullsafe.

指定者:
接口 IdentityService 中的 checkPassword

deleteUser

public void deleteUser(String userId)
指定者:
接口 IdentityService 中的 deleteUser
参数:
userId - id of user to delete, cannot be null. When an id is passed for an unexisting user, this operation is ignored.

setUserPicture

public void setUserPicture(String userId,
                           Picture picture)
从接口 IdentityService 复制的描述
Sets the picture for a given user.

指定者:
接口 IdentityService 中的 setUserPicture
picture - can be null to delete the picture.

getUserPicture

public Picture getUserPicture(String userId)
从接口 IdentityService 复制的描述
Retrieves the picture for a given user.

指定者:
接口 IdentityService 中的 getUserPicture

setAuthenticatedUserId

public void setAuthenticatedUserId(String authenticatedUserId)
从接口 IdentityService 复制的描述
Passes the authenticated user id for this particular thread. All service method (from any service) invocations done by the same thread will have access to this authenticatedUserId.

指定者:
接口 IdentityService 中的 setAuthenticatedUserId

getUserInfo

public String getUserInfo(String userId,
                          String key)
从接口 IdentityService 复制的描述
Generic extensibility key-value pairs associated with a user

指定者:
接口 IdentityService 中的 getUserInfo

getUserInfoKeys

public List<String> getUserInfoKeys(String userId)
从接口 IdentityService 复制的描述
Generic extensibility keys associated with a user

指定者:
接口 IdentityService 中的 getUserInfoKeys

setUserInfo

public void setUserInfo(String userId,
                        String key,
                        String value)
从接口 IdentityService 复制的描述
Generic extensibility key-value pairs associated with a user

指定者:
接口 IdentityService 中的 setUserInfo

deleteUserInfo

public void deleteUserInfo(String userId,
                           String key)
从接口 IdentityService 复制的描述
Delete an entry of the generic extensibility key-value pairs associated with a user

指定者:
接口 IdentityService 中的 deleteUserInfo


Copyright © 2013 Alfresco. All rights reserved.