|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BambooUserManager
Service class to manage interactions with the user.
Field Summary | |
---|---|
static java.lang.String |
JABBER_ADDRESS_KEY
|
static java.lang.String |
USER_IDE_PORT
|
static java.lang.String |
USER_NOTIFICATION_PREFERENCE
|
static java.lang.String |
USER_NOTIFICATION_TRANSPORT_PREFERENCE
|
Method Summary | |
---|---|
BambooUser |
addUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.util.List<java.lang.String> groupNames)
Method that extends the standard addUser methods to also add Bamboo specific params |
BambooUser |
addUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.util.List<java.lang.String> groupNames,
ExtendedAuthor author)
Method that extends the standard addUser methods to also add Bamboo specific params |
BambooUser |
addUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.util.List<java.lang.String> groupNames,
java.util.List<java.lang.Long> authors)
|
PasswordResetToken |
createPasswordResetToken(java.lang.String username)
Request new one-time token for a user. |
void |
deletePasswordResetToken(java.lang.String username)
Deletes existing user token. |
BambooUser |
findUserWithJabberAddress(java.lang.String jabberAddress)
Searches for user using specified jabberAddress. |
BambooUser |
getBambooUser(java.lang.String username)
Returns a BambooUser of the given username |
BambooUser |
getBambooUser(com.atlassian.user.User user)
Returns a BambooUser given a User |
java.util.List<java.lang.String> |
getGroupNamesAsList(com.atlassian.user.User user)
Returns groups for the User |
java.lang.String |
getJiraIssueDefaults(com.atlassian.user.User user)
|
java.util.List<java.lang.String> |
getMemberNamesAsList(com.atlassian.user.Group group)
|
PasswordResetToken |
getPasswordResetToken(java.lang.String username)
Retrieves existing user token. |
BambooUser |
injectUser(BambooUser user)
A variation of addUser which inserts the encryptedPassword instead - used for importing |
boolean |
isDeletable(com.atlassian.user.User user)
Is this user deletable? A user may not be deletable because: 1) They are read-only (i.e. |
boolean |
isReadOnly(com.atlassian.user.Group group)
Is this group read only? |
boolean |
isReadOnly(com.atlassian.user.User user)
Is this user read only? |
boolean |
isUserAutocompleteAllowed()
Determines whether or not we are allowed to do autocompletion for users. |
BambooUser |
loadUserByUsername(java.lang.String username)
Currently should NOT be called during setup/upgrade. |
void |
saveJiraIssueDefaults(com.atlassian.user.User user,
java.lang.String jiraIssueDefaultsJson)
Saves default data use in JIRA issue creation dialog |
void |
saveNotificationPreferences(java.lang.String username,
java.lang.String notificationPreference,
java.lang.String notificationTransportPref)
Save just the notification preferences for the given user |
void |
saveUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.util.List<java.lang.String> groupNames)
Saves the properties for the given user |
void |
saveUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.util.List<java.lang.String> groupNames,
ExtendedAuthor author)
Saves the properties for the given user |
void |
saveUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.util.List<java.lang.String> selectedGroups,
ExtendedAuthor author,
java.lang.String idePort)
Saves the properties for the given user |
void |
saveUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.lang.String notificationPreference,
java.lang.String notificationTransportPreference,
java.util.List<java.lang.String> selectedGroups,
ExtendedAuthor author,
java.lang.String idePort)
Saves the properties for the given user |
void |
saveUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.lang.String notificationPreference,
java.lang.String notificationTransportPreference,
java.util.List<java.lang.String> selectedGroups,
java.util.List<java.lang.Long> authors,
java.lang.String idePort)
|
void |
setMembership(com.atlassian.user.Group group,
java.util.List<java.lang.String> members)
Sets a group's members as the passed list |
void |
setupInitialAdminUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName)
Setup the initial admin user for the Bamboo instance. |
Methods inherited from interface bucket.user.UserAccessor |
---|
addGroup, addMembership, addMembership, addUser, addUser, alterPassword, authenticate, createGroup, createUser, deactivateUser, findUsers, getDefaultGroup, getDelegatingRepositories, getExternallMembers, getGroup, getGroupCreateIfNecessary, getGroups, getGroups, getLocalMembers, getMemberNames, getPropertySet, getRepository, getUser, getUserNames, getUserPreferences, getUsers, getUsersByEmail, getUsersWithConfluenceAccess, hasMembership, hasMembership, isDeactivated, isDeactivated, isLicensedToAddMoreUsers, isUserRemovable, reactivateUser, removeGroup, removeMembership, removeMembership, removeUser, saveUser, setAtlassianUserConfiguration |
Methods inherited from interface com.atlassian.user.search.query.EntityQueryParser |
---|
findGroups, findGroups, findUsers |
Field Detail |
---|
static final java.lang.String JABBER_ADDRESS_KEY
static final java.lang.String USER_NOTIFICATION_PREFERENCE
static final java.lang.String USER_NOTIFICATION_TRANSPORT_PREFERENCE
static final java.lang.String USER_IDE_PORT
Method Detail |
---|
@Nullable BambooUser getBambooUser(java.lang.String username)
BambooUser
of the given username
username
-
@Nullable BambooUser getBambooUser(com.atlassian.user.User user)
BambooUser
given a User
user
-
BambooUser addUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.util.List<java.lang.String> groupNames)
username
- password
- email
- fullName
- jabberAddress
- groupNames
- - List
of Strings as the group names. May be null.
BambooUser
object with the created propertiesBambooUser addUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.util.List<java.lang.String> groupNames, ExtendedAuthor author)
username
- password
- email
- fullName
- jabberAddress
- groupNames
- - List
of Strings as the group names. May be null.author
-
BambooUser
object with the created propertiesBambooUser addUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.util.List<java.lang.String> groupNames, @NotNull java.util.List<java.lang.Long> authors)
void saveUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.util.List<java.lang.String> groupNames) throws java.lang.IllegalArgumentException
username
- password
- email
- fullName
- jabberAddress
- groupNames
- - List
of Strings as the group names. May be null.
java.lang.IllegalArgumentException
- if username
does not match a user, or if the password cannot be
altered by the local user management facility.void saveUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.util.List<java.lang.String> groupNames, ExtendedAuthor author) throws java.lang.IllegalArgumentException
username
- password
- email
- fullName
- jabberAddress
- groupNames
- - List
of Strings as the group names. May be null.author
-
java.lang.IllegalArgumentException
- if username
does not match a user, or if the password cannot be
altered by the local user management facility.void saveUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.util.List<java.lang.String> selectedGroups, ExtendedAuthor author, java.lang.String idePort)
username
- password
- email
- fullName
- jabberAddress
- selectedGroups
- author
- idePort
-
java.lang.IllegalArgumentException
- if username
does not match a user, or if the password cannot be
altered by the local user management facility.void saveUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.lang.String notificationPreference, java.lang.String notificationTransportPreference, java.util.List<java.lang.String> selectedGroups, ExtendedAuthor author, java.lang.String idePort) throws java.lang.IllegalArgumentException
username
- password
- email
- fullName
- jabberAddress
- notificationPreference
- selectedGroups
- author
- idePort
-
java.lang.IllegalArgumentException
- if username
does not match a user, or if the password cannot be
altered by the local user management facility.void saveUser(java.lang.String username, @Nullable java.lang.String password, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.lang.String notificationPreference, java.lang.String notificationTransportPreference, java.util.List<java.lang.String> selectedGroups, @NotNull java.util.List<java.lang.Long> authors, java.lang.String idePort) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
java.util.List<java.lang.String> getGroupNamesAsList(com.atlassian.user.User user)
User
user
- - Must not be null
List
of String
representing group names. Collections.emptyList()
if none existsvoid setMembership(com.atlassian.user.Group group, java.util.List<java.lang.String> members)
group
- - The group to modify the user list. Cannot be null.members
- - List
of username String
s. Can be null@NotNull java.util.List<java.lang.String> getMemberNamesAsList(com.atlassian.user.Group group)
BambooUser injectUser(@NotNull BambooUser user)
user
- user data
BambooUser
object with the created propertiesboolean isDeletable(com.atlassian.user.User user)
user
-
boolean
whether user deletableboolean isReadOnly(com.atlassian.user.User user)
user
- boolean isReadOnly(com.atlassian.user.Group group)
group
- void saveNotificationPreferences(java.lang.String username, java.lang.String notificationPreference, java.lang.String notificationTransportPref)
username
- notificationPreference
- void setupInitialAdminUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullName)
username
- password
- email
- fullName
- @NotNull PasswordResetToken createPasswordResetToken(java.lang.String username)
username
- user login name
@Nullable PasswordResetToken getPasswordResetToken(java.lang.String username)
username
- user login name
void deletePasswordResetToken(java.lang.String username)
username
- user login name@Nullable BambooUser findUserWithJabberAddress(@NotNull java.lang.String jabberAddress)
jabberAddress
- address to be matched
BambooUser
or null if none found@Nullable java.lang.String getJiraIssueDefaults(@NotNull com.atlassian.user.User user)
void saveJiraIssueDefaults(@NotNull com.atlassian.user.User user, @NotNull java.lang.String jiraIssueDefaultsJson)
user
- userjiraIssueDefaultsJson
- default data formatted as JSON stringboolean isUserAutocompleteAllowed()
BambooUser loadUserByUsername(java.lang.String username) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername
in interface org.acegisecurity.userdetails.UserDetailsService
org.acegisecurity.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |