Class ViewPrincipal
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.crowd.console.action.BaseAction
com.atlassian.crowd.console.action.principal.ViewPrincipal
- All Implemented Interfaces:
com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
AddPrincipal
,ResetPassword
,UpdateAliases
,UpdateAttributes
,UpdateGroups
,UpdatePrincipal
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected AdminGroupChecker
protected AliasManager
protected List<Application>
protected Directory
protected long
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected PermissionManager
protected boolean
protected TokenAuthenticationManager
protected String
protected User
protected Long
Fields inherited from class com.atlassian.crowd.console.action.BaseAction
actionHelper, actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, clusterService, crowdLicenseManager, directoryManager, initialLoad, propertyManager, rememberMeService, SMALL_AVATAR_SIZE, smallAvatarUrl, tab
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute()
long
getEmail()
getName()
getUser()
boolean
boolean
isActive()
boolean
protected void
protected void
readAttributes
(UserWithAttributes userWithAttributes) void
setActive
(boolean active) void
setAdminGroupChecker
(AdminGroupChecker adminGroupChecker) void
setAliasManager
(AliasManager aliasManager) void
setApplicationService
(ApplicationService applicationService) void
setCachedUserGroupResolver
(CachedUserGroupResolver cachedUserGroupResolver) void
setDirectoryID
(long directoryID) void
setDirectoryInstanceLoader
(DirectoryInstanceLoader directoryInstanceLoader) void
setDirectoryName
(String directoryName) void
setDisplayname
(String displayname) void
void
setEmailValidator
(EmailAddressValidator emailValidator) void
setFirstname
(String firstname) void
setHumanReadableFailedGroups
(String humanReadableFailedGroups) void
setLastname
(String lastname) void
void
setNewName
(String newName) void
setPassword
(String password) void
setPasswordConfirm
(String passwordConfirm) void
setPermissionManager
(PermissionManager permissionManager) void
setPreventingLockout
(boolean preventingLockout) void
setTokenAuthenticationManager
(TokenAuthenticationManager tokenAuthenticationManager) void
setUnremovedGroups
(String unremovedGroups) void
protected void
Copies data fromuser
to the various fields (egname
).protected void
Copies data from class fields to theuser
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionError, addActionMessage, applyFieldError, applyFieldErrors, applyValidationErrors, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, bindInformationAboutLicense, containsActionMessages, containsErrorMessages, directory, findAvatarUrl, getActionMessageAlertColor, getBootstrapManager, getCrowdApplication, getCurrentLicenseResourceTotal, getDisplayableLink, getHttpRequest, getImageLocation, getImageTitle, getLabel, getLicense, getLink, getLocaleProvider, getPasswordComplexityMessage, getRemoteUser, getSession, getSitemeshPageProperties, getSmallAvatarUrl, getTab, getText, getText, getTextProvider, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAtResourceLimit, isAuthenticated, isDataCenterLicense, isEvaluation, isGroupAdmin, isInitialLoad, isLicenseExpired, isLicenseForged, isRestartRequiredToEnableClustering, isSubscription, isSysAdmin, isWithinGracePeriod, renderFreemarkerTemplate, resolveAvatarUri, setActionHelper, setApplicationManager, setClientProperties, setClusterService, setCrowdApplication, setCrowdLicenseManager, setDirectoryManager, setPropertyManager, setRememberMeService, setTab, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Field Details
-
tokenAuthenticationManager
-
aliasManager
-
permissionManager
-
adminGroupChecker
-
humanReadableFailedGroups
-
user
-
userAttributes
-
directory
-
directoryID
protected long directoryID -
directoryName
-
userID
-
name
-
newName
-
password
-
passwordConfirm
-
displayname
-
firstname
-
lastname
-
email
-
active
protected boolean active -
externalId
-
applications
-
aliases
-
applicationInError
-
unremovedGroups
-
preventingLockout
protected boolean preventingLockout
-
-
Constructor Details
-
ViewPrincipal
public ViewPrincipal()
-
-
Method Details
-
execute
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classBaseAction
-
hasUpdateGroupPermission
public boolean hasUpdateGroupPermission() -
processGeneral
protected void processGeneral() -
readAttributes
-
syncFieldsToPrincipal
protected void syncFieldsToPrincipal()Copies data from class fields to theuser
-
syncFieldsFromPrincipal
protected void syncFieldsFromPrincipal()Copies data fromuser
to the various fields (egname
). -
processDirectoryMapping
protected void processDirectoryMapping() -
getUser
-
getDirectory
-
getDirectoryID
public long getDirectoryID() -
setDirectoryID
public void setDirectoryID(long directoryID) -
getName
-
setName
-
getPassword
-
setPassword
-
getPasswordConfirm
-
setPasswordConfirm
-
getDisplayname
-
setDisplayname
-
getFirstname
-
setFirstname
-
getLastname
-
setLastname
-
getEmail
-
setEmail
-
isActive
public boolean isActive() -
getExternalId
-
setActive
public void setActive(boolean active) -
getGroups
-
getUnsubscribedGroups
-
getUserAttributes
-
getDirectoryName
-
getApplications
-
getAliases
-
setDirectoryName
-
doValidation
protected void doValidation() -
setApplicationService
- Overrides:
setApplicationService
in classBaseAction
-
setAliasManager
-
getApplicationInError
-
setPermissionManager
-
setTokenAuthenticationManager
- Overrides:
setTokenAuthenticationManager
in classBaseAction
-
getAdminGroupChecker
-
setAdminGroupChecker
-
setDirectoryInstanceLoader
-
isPreventingLockout
public boolean isPreventingLockout() -
setPreventingLockout
public void setPreventingLockout(boolean preventingLockout) -
getUnremovedGroups
-
setUnremovedGroups
-
getNewName
-
setNewName
-
getDirectoryImplementationDescriptiveName
-
setUserID
-
setCachedUserGroupResolver
-
getHumanReadableFailedGroups
-
setHumanReadableFailedGroups
-
setEmailValidator
-