Package com.atlassian.bamboo.user
Interface BambooUser
-
- All Superinterfaces:
com.atlassian.user.Entity,Principal,Serializable,com.atlassian.user.User,org.acegisecurity.userdetails.UserDetails
- All Known Implementing Classes:
DefaultBambooUser
public interface BambooUser extends com.atlassian.user.User, org.acegisecurity.userdetails.UserDetailsAn extension to Atlassian user'sUserinterface to define extra properties for the user
-
-
Field Summary
Fields Modifier and Type Field Description static StringBOTH_PREFstatic StringDEFAULT_NOTIFICATION_PREFERENCEstatic StringDEFAULT_TRANSPORT_PREFERENCEstatic StringEMAIL_PREFstatic StringIM_PREFstatic StringMULTIPART_EMAILstatic StringNONE_PREFstatic StringTEXT_EMAIL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable AccessTokengetAccessToken()If user has been authenticated by access token returns meta-data of token.StringgetJabberAddress()Returns the user's jabber address for IMsStringgetNotificationPreference()Returns the user's preferences for how they receive notificationsStringgetNotificationTransportPreference()Returns the user's preference for the format of emailscom.atlassian.user.UsergetUser()Returns the user, which contains the user's details
-
-
-
Field Detail
-
EMAIL_PREF
static final String EMAIL_PREF
- See Also:
- Constant Field Values
-
IM_PREF
static final String IM_PREF
- See Also:
- Constant Field Values
-
NONE_PREF
static final String NONE_PREF
- See Also:
- Constant Field Values
-
BOTH_PREF
static final String BOTH_PREF
- See Also:
- Constant Field Values
-
TEXT_EMAIL
static final String TEXT_EMAIL
- See Also:
- Constant Field Values
-
MULTIPART_EMAIL
static final String MULTIPART_EMAIL
- See Also:
- Constant Field Values
-
DEFAULT_NOTIFICATION_PREFERENCE
static final String DEFAULT_NOTIFICATION_PREFERENCE
- See Also:
- Constant Field Values
-
DEFAULT_TRANSPORT_PREFERENCE
static final String DEFAULT_TRANSPORT_PREFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getJabberAddress
String getJabberAddress()
Returns the user's jabber address for IMs- Returns:
- jabber address.
-
getUser
com.atlassian.user.User getUser()
Returns the user, which contains the user's details- Returns:
- user.
-
getNotificationPreference
String getNotificationPreference()
Returns the user's preferences for how they receive notifications- Returns:
- notification preference.
-
getNotificationTransportPreference
String getNotificationTransportPreference()
Returns the user's preference for the format of emails- Returns:
- notification transport preference.
-
getAccessToken
@Nullable @Nullable AccessToken getAccessToken()
If user has been authenticated by access token returns meta-data of token. Otherwise null.- Returns:
- access token
-
-