org.springframework.security.core.userdetails.UserDetailsService
UserServiceImpl
public interface UserService
extends org.springframework.security.core.userdetails.UserDetailsService
Modifier and Type | Method | Description |
---|---|---|
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,
PermissionType[] permissionTypes) |
Finds all users assigned to a project having all of the given 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[] permissionTypes) |
Deprecated.
|
List<User> |
getUsersWithAnyProjectPermission(Integer projectId,
int[] permissions,
boolean activeOnly) |
Deprecated.
|
List<User> |
getUsersWithAnyProjectPermission(Integer projectId,
PermissionType[] 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,
PermissionType[] 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.
|
List<User> |
getUsersWithPermissionLocal(Integer projectId,
int permissionType) |
Deprecated.
|
List<User> |
getUsersWithPermissionLocal(Integer projectId,
PermissionType permissionType) |
This method will call local EJBs to find users with a specific permission.
|
List<User> |
getUsersWithProjectPermission(Integer projectId,
int permission) |
Deprecated.
|
List<User> |
getUsersWithProjectPermission(Integer projectId,
int[] permissions,
boolean requireAll,
boolean activeOnly) |
Deprecated.
|
List<User> |
getUsersWithProjectPermission(Integer projectId,
int permission,
boolean activeOnly) |
Deprecated.
|
List<User> |
getUsersWithProjectPermission(Integer projectId,
PermissionType 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,
PermissionType[] 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,
PermissionType permissionType,
boolean activeOnly) |
|
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) |
int getNumberUsers()
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
UserException
void clearOwnedProjects(User user)
List<User> findUsersForProjectByPermissionTypeList(Integer projectID, PermissionType[] permissionTypes)
projectID
- the project IDpermissionTypes
- array of permission typesList<User> getUsersWithPermissionLocal(Integer projectId, PermissionType permissionType)
projectId
- id of the project on which the returned users have permissionspermissionType
- the type of permission to search for@Deprecated List<User> getUsersWithPermissionLocal(Integer projectId, int permissionType)
List<Permission> getUserPermissionsLocal(User user)
user
- the user to find the permissions forboolean 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 userboolean 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.UserUtilities
List<Permission> getPermissionsByUserId(Integer userId)
userId
- the userId, not the login, to find the permissions ofMap<Integer,Set<PermissionType>> getUsersMapOfProjectIdsAndSetOfPermissionTypes(User user, int reqSource)
user
- a User representing the user that the permissions should be obtained forreqSource
- the source of the requestUserUtilities.hasPermission(java.util.Map<java.lang.Integer, java.util.Set<org.itracker.model.PermissionType>>, int)
List<User> getUsersWithProjectPermission(Integer projectId, PermissionType permission)
projectId
- the project to find the permission forpermission
- the permission to check for@Deprecated List<User> getUsersWithProjectPermission(Integer projectId, int permission)
@Deprecated 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 activeList<User> getUsersWithProjectPermission(Integer projectId, PermissionType[] 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@Deprecated List<User> getUsersWithProjectPermission(Integer projectId, int[] permissions, boolean requireAll, boolean activeOnly)
List<User> getUsersWithAnyProjectPermission(Integer projectId, PermissionType[] permissions)
projectId
- the project to find the permission forpermissions
- the permissions that are checked againstList<User> getUsersWithProjectPermission(Integer projectId, PermissionType permissionType, boolean activeOnly)
@Deprecated List<User> getUsersWithAnyProjectPermission(Integer projectId, int[] permissionTypes)
projectId
- the project to find the permission forpermissionTypes
- the permissions that are checked againstList<User> getUsersWithAnyProjectPermission(Integer projectId, PermissionType[] permissions, boolean activeOnly)
projectId
- the project to find the permission forpermissions
- the permissions that are checked againstactiveOnly
- only include users who are currently active@Deprecated List<User> getUsersWithAnyProjectPermission(Integer projectId, int[] permissions, boolean activeOnly)
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 occursboolean 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 occursboolean 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 occursboolean 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 occursboolean 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 occursboolean 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 occursboolean 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 occursCopyright © 2002–2019 itracker. All rights reserved.