|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserService
| Method Summary | |
|---|---|
boolean |
addUserPermissions(Integer userId,
List<Permission> newPermissions)
Resets all of the permissions for a user in the database. |
boolean |
allowPasswordUpdates(User user,
Object authentication,
int authType,
int reqSource)
This method checks to see if the given user's password can be updated locally. |
boolean |
allowPermissionUpdates(User user,
Object authentication,
int authType,
int reqSource)
This method checks to see if the given user's permission information can be updated locally. |
boolean |
allowPreferenceUpdates(User user,
Object authentication,
int authType,
int reqSource)
This method checks to see if the given user's preference information can be updated locally. |
boolean |
allowProfileCreation(User user,
Object authentication,
int authType,
int reqSource)
This method checks to see if a new user profile can be created within ITracker |
boolean |
allowProfileUpdates(User user,
Object authentication,
int authType,
int reqSource)
This method checks to see if the given user's core user profile information can be updated locally. |
boolean |
allowRegistration(User user,
Object authentication,
int authType,
int reqSource)
This method checks to see if the given user is allowed to self register. |
User |
checkLogin(String login,
Object authentication,
int authType,
int reqSource)
This method checks the login of a user, and returns the user if authentication was successful. |
void |
clearOwnedProjects(User user)
|
User |
createUser(User user)
|
List<User> |
findUsersForProjectByPermissionTypeList(Integer projectID,
Integer[] permissionTypes)
|
String |
generateUserPassword(User user)
|
List<User> |
getActiveUsers()
|
List<User> |
getAllUsers()
|
int |
getNumberUsers()
|
List<Permission> |
getPermissionsByUserId(Integer userId)
Returns an array of Permission objects for the requested userId. |
List<User> |
getPossibleOwners(Issue issue,
Integer projectId,
Integer userId)
|
List<User> |
getSuperUsers()
|
User |
getUser(Integer userId)
|
User |
getUserByLogin(String login)
|
String |
getUserPasswordByLogin(String login)
|
List<Permission> |
getUserPermissionsLocal(User user)
This method will call local EJBs to find all permissions for a user. |
Map<Integer,Set<PermissionType>> |
getUsersMapOfProjectIdsAndSetOfPermissionTypes(User user,
int reqSource)
Returns a HashMap of all permissions a user has. |
List<User> |
getUsersWithAnyProjectPermission(Integer projectId,
int[] permissions)
This method will return a list of users with any of the supplied permission, either explicitly, or by their role as a super user. |
List<User> |
getUsersWithAnyProjectPermission(Integer projectId,
int[] permissions,
boolean activeOnly)
This method will return a list of users with any of the supplied permission, either explicitly, or by their role as a super user. |
Collection<User> |
getUsersWithAnyProjectPermission(Integer projectId,
Integer[] permissionTypes)
This method will return a list of users with any of the supplied permission, either explicitly, or by their role as a super user. |
List<User> |
getUsersWithPermissionLocal(Integer projectId,
int permissionType)
This method will call local EJBs to find users with a specific permission. |
List<User> |
getUsersWithProjectPermission(Integer projectId,
int permission)
This method will return a list of users with a specific permission, either explicitly, or by their role as a super user. |
List<User> |
getUsersWithProjectPermission(Integer projectId,
int[] permissions,
boolean requireAll,
boolean activeOnly)
This method will return a list of users with the supplied permission, either explicitly, or by their role as a super user. |
List<User> |
getUsersWithProjectPermission(Integer projectId,
int permission,
boolean activeOnly)
This method will return a list of users with a specific permission, either explicitly, or by their role as a super user. |
boolean |
removeUserPermissions(Integer userId,
List<Permission> newPermissions)
Resets all of the permissions for a user in the database. |
boolean |
setUserPermissions(Integer userId,
List<Permission> newPermissions)
Resets all of the permissions for a user in the database. |
boolean |
updateAuthenticator(Integer userId,
List<Permission> newPermissions)
Adds an additional set of permissions to a user in the database. |
User |
updateUser(User user)
|
UserPreferences |
updateUserPreferences(UserPreferences user)
|
| Method Detail |
|---|
User getUser(Integer userId)
User getUserByLogin(String login)
String getUserPasswordByLogin(String login)
List<User> getAllUsers()
int getNumberUsers()
List<User> getActiveUsers()
List<User> getSuperUsers()
List<User> getPossibleOwners(Issue issue,
Integer projectId,
Integer userId)
User createUser(User user)
throws UserException
UserException
User updateUser(User user)
throws UserException
UserException
String generateUserPassword(User user)
throws PasswordException
PasswordException
UserPreferences updateUserPreferences(UserPreferences user)
throws UserException
UserExceptionvoid clearOwnedProjects(User user)
List<User> findUsersForProjectByPermissionTypeList(Integer projectID,
Integer[] permissionTypes)
List<User> getUsersWithPermissionLocal(Integer projectId,
int permissionType)
projectId - id of the project on which the returned users have permissionspermissionType - the type of permission to search for
List<Permission> getUserPermissionsLocal(User user)
user - the user to find the permissions for
boolean updateAuthenticator(Integer userId,
List<Permission> newPermissions)
userId - the userId, not login, of the user to add the permissions tonewPermissions - an array of PermissionModels that represent the new permissions to add to the user
boolean addUserPermissions(Integer userId,
List<Permission> newPermissions)
userId - the userId, not login, of the user to add the permissions tonewPermissions - a HashMap containing keys and Permission values as described in the method description.
UserUtilities
boolean setUserPermissions(Integer userId,
List<Permission> newPermissions)
userId - the userId, not login, of the user to add the permissions tonewPermissions - a HashMap containing keys and Permission values as described in the method description.
UserUtilities
boolean removeUserPermissions(Integer userId,
List<Permission> newPermissions)
userId - the userId, not login, of the user to add the permissions tonewPermissions - a HashMap containing keys and Permission values as described in the method description.
UserUtilitiesList<Permission> getPermissionsByUserId(Integer userId)
userId - the userId, not the login, to find the permissions of
Map<Integer,Set<PermissionType>> getUsersMapOfProjectIdsAndSetOfPermissionTypes(User user,
int reqSource)
model - a User representing the user that the permissions should be obtained forreqSource - the source of the request
UserUtilities.hasPermission(java.util.Map>, int)
List<User> getUsersWithProjectPermission(Integer projectId,
int permission)
projectId - the project to find the permission forpermission - the permission to check for
List<User> getUsersWithProjectPermission(Integer projectId,
int permission,
boolean activeOnly)
projectId - the project to find the permission forpermission - the permission to check foractiveOnly - only include users who are currently active
List<User> getUsersWithProjectPermission(Integer projectId,
int[] permissions,
boolean requireAll,
boolean activeOnly)
projectId - the project to find the permission forpermissions - the permissions that are checked againstrequireAll - true if all the permissions in the array are required, false if only one is requiredactiveOnly - only include users who are currently active
List<User> getUsersWithAnyProjectPermission(Integer projectId,
int[] permissions)
projectId - the project to find the permission forpermissions - the permissions that are checked against
Collection<User> getUsersWithAnyProjectPermission(Integer projectId,
Integer[] permissionTypes)
projectId - the project to find the permission forpermissions - the permissions that are checked against
List<User> getUsersWithAnyProjectPermission(Integer projectId,
int[] permissions,
boolean activeOnly)
projectId - the project to find the permission forpermissions - the permissions that are checked againstactiveOnly - only include users who are currently active
User checkLogin(String login,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
login - the login the user/client providedauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if the login is unsuccessful, or an error occurs
boolean allowRegistration(User user,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
user - a User object that contains the data the user submittedauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if an error occurs
boolean allowProfileCreation(User user,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
user - a User object that contains the data for the new user. If null,
then the request is being made for an unknown future user. For example,
the system may request this with an null user if it needs to know if the system
should even present the option to create a new userauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if an error occurs
boolean allowProfileUpdates(User user,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
user - a User object that contains the data the user submittedauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if an error occurs
boolean allowPasswordUpdates(User user,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
user - a User object that contains the data the user submittedauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if an error occurs
boolean allowPermissionUpdates(User user,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
user - a User object that contains the data the user submittedauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if an error occurs
boolean allowPreferenceUpdates(User user,
Object authentication,
int authType,
int reqSource)
throws AuthenticatorException
user - a User object that contains the data the user submittedauthentication - the user's authentication information, if knownauthType - the type of authentication information being providedreqSource - the source from which the request was made (eg web, api)
AuthenticatorException - an exception if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||