|
||||||||||
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 |
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 |
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.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 |
BambooUser |
injectUser(java.lang.String username,
java.lang.String encryptedPassword,
java.lang.String email,
java.lang.String fullName,
java.lang.String jabberAddress,
java.lang.String notificationPreference,
java.lang.String notificationTransportPreference,
java.lang.String idePort)
Deprecated. use injectUser(BambooUser) |
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? |
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 |
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 |
Methods inherited from interface org.acegisecurity.userdetails.UserDetailsService |
---|
loadUserByUsername |
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 propertiesvoid 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
- 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
- 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
- email
- fullName
- jabberAddress
- notificationPreference
- selectedGroups
- author
- IDE
- port
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
- email
- fullName
- jabberAddress
- notificationPreference
- selectedGroups
- author
-
java.lang.IllegalArgumentException
- if username
does not match a user, or if the password cannot be
altered by the local user management facility.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 nulljava.util.List<java.lang.String> getMemberNamesAsList(com.atlassian.user.Group group)
BambooUser injectUser(java.lang.String username, java.lang.String encryptedPassword, java.lang.String email, java.lang.String fullName, java.lang.String jabberAddress, java.lang.String notificationPreference, java.lang.String notificationTransportPreference, java.lang.String idePort)
username
- encryptedPassword
- email
- fullName
- jabberAddress
- notificationPreference
- preference for method of notificationnotificationTransportPreference
- preference for method of notification transportidePort
- port number for direct click through
BambooUser
object with the created propertiesBambooUser 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |