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

public class ViewPrincipal extends BaseAction
See Also:
  • Field Details

    • tokenAuthenticationManager

      protected TokenAuthenticationManager tokenAuthenticationManager
    • aliasManager

      protected AliasManager aliasManager
    • permissionManager

      protected PermissionManager permissionManager
    • adminGroupChecker

      protected AdminGroupChecker adminGroupChecker
    • humanReadableFailedGroups

      protected String humanReadableFailedGroups
    • user

      protected User user
    • userAttributes

      protected Map<String,Set<String>> userAttributes
    • directory

      protected Directory directory
    • directoryID

      protected long directoryID
    • directoryName

      protected String directoryName
    • userID

      protected Long userID
    • name

      protected String name
    • newName

      protected String newName
    • password

      protected String password
    • passwordConfirm

      protected String passwordConfirm
    • displayname

      protected String displayname
    • firstname

      protected String firstname
    • lastname

      protected String lastname
    • email

      protected String email
    • active

      protected boolean active
    • externalId

      protected String externalId
    • applications

      protected List<Application> applications
    • aliases

      protected List<String> aliases
    • applicationInError

      protected Map<Long,Boolean> applicationInError
    • unremovedGroups

      protected String unremovedGroups
    • preventingLockout

      protected boolean preventingLockout
  • Constructor Details

    • ViewPrincipal

      public ViewPrincipal()
  • Method Details

    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class BaseAction
    • hasUpdateGroupPermission

      public boolean hasUpdateGroupPermission()
    • processGeneral

      protected void processGeneral()
    • readAttributes

      protected Map<String,Set<String>> readAttributes(UserWithAttributes userWithAttributes)
    • syncFieldsToPrincipal

      protected void syncFieldsToPrincipal()
      Copies data from class fields to the user
    • syncFieldsFromPrincipal

      protected void syncFieldsFromPrincipal()
      Copies data from user to the various fields (eg name).
    • processDirectoryMapping

      protected void processDirectoryMapping()
    • getUser

      public User getUser()
    • getDirectory

      public Directory getDirectory()
    • getDirectoryID

      public long getDirectoryID()
    • setDirectoryID

      public void setDirectoryID(long directoryID)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getPasswordConfirm

      public String getPasswordConfirm()
    • setPasswordConfirm

      public void setPasswordConfirm(String passwordConfirm)
    • getDisplayname

      public String getDisplayname()
    • setDisplayname

      public void setDisplayname(String displayname)
    • getFirstname

      public String getFirstname()
    • setFirstname

      public void setFirstname(String firstname)
    • getLastname

      public String getLastname()
    • setLastname

      public void setLastname(String lastname)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • isActive

      public boolean isActive()
    • getExternalId

      public String getExternalId()
    • setActive

      public void setActive(boolean active)
    • getGroups

      public Set getGroups()
    • getUnsubscribedGroups

      public Set getUnsubscribedGroups()
    • getUserAttributes

      public Map getUserAttributes()
    • getDirectoryName

      public String getDirectoryName()
    • getApplications

      public List<Application> getApplications()
    • getAliases

      public List<String> getAliases()
    • setDirectoryName

      public void setDirectoryName(String directoryName)
    • doValidation

      protected void doValidation()
    • setApplicationService

      public void setApplicationService(ApplicationService applicationService)
      Overrides:
      setApplicationService in class BaseAction
    • setAliasManager

      public void setAliasManager(AliasManager aliasManager)
    • getApplicationInError

      public Map<Long,Boolean> getApplicationInError()
    • setPermissionManager

      public void setPermissionManager(PermissionManager permissionManager)
    • setTokenAuthenticationManager

      public void setTokenAuthenticationManager(TokenAuthenticationManager tokenAuthenticationManager)
      Overrides:
      setTokenAuthenticationManager in class BaseAction
    • getAdminGroupChecker

      public AdminGroupChecker getAdminGroupChecker()
    • setAdminGroupChecker

      public void setAdminGroupChecker(AdminGroupChecker adminGroupChecker)
    • setDirectoryInstanceLoader

      public void setDirectoryInstanceLoader(DirectoryInstanceLoader directoryInstanceLoader)
    • isPreventingLockout

      public boolean isPreventingLockout()
    • setPreventingLockout

      public void setPreventingLockout(boolean preventingLockout)
    • getUnremovedGroups

      public String getUnremovedGroups()
    • setUnremovedGroups

      public void setUnremovedGroups(String unremovedGroups)
    • getNewName

      public String getNewName()
    • setNewName

      public void setNewName(String newName)
    • getDirectoryImplementationDescriptiveName

      public String getDirectoryImplementationDescriptiveName()
    • setUserID

      public void setUserID(Long userID)
    • setCachedUserGroupResolver

      public void setCachedUserGroupResolver(CachedUserGroupResolver cachedUserGroupResolver)
    • getHumanReadableFailedGroups

      public String getHumanReadableFailedGroups()
    • setHumanReadableFailedGroups

      public void setHumanReadableFailedGroups(String humanReadableFailedGroups)
    • setEmailValidator

      public void setEmailValidator(EmailAddressValidator emailValidator)