public class CreateUserWizard extends BaseWizardBean
Modifier and Type | Field and Description |
---|---|
protected String |
companyId |
protected String |
confirm |
protected String |
email |
protected static String |
ERROR |
protected static String |
ERROR_DOMAIN_MISMATCH |
protected String |
firstName
form variables
|
protected org.alfresco.service.cmr.repository.NodeRef |
homeSpaceLocation |
protected String |
homeSpaceName |
protected String |
jobtitle |
protected String |
lastName |
protected String |
location |
protected String |
organisation |
protected String |
password |
protected String |
presenceProvider |
protected String |
presenceUsername |
protected static String |
QUOTA_UNITS_GB |
protected static String |
QUOTA_UNITS_KB |
protected static String |
QUOTA_UNITS_MB |
protected Long |
sizeQuota |
protected String |
sizeQuotaUnits |
protected String |
userName |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
CreateUserWizard() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkTenantUserName() |
protected org.alfresco.util.Pair<Long,String> |
convertFromBytes(long size) |
protected long |
convertToBytes(long size,
String units) |
protected org.alfresco.service.cmr.repository.NodeRef |
createHomeSpace(String locationId,
String spaceName,
org.alfresco.service.cmr.repository.NodeRef oldHomeFolderRef,
boolean error)
Create the specified home space if it does not exist, and return the ID
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected org.alfresco.service.cmr.repository.NodeRef |
getCompanyHomeSpace()
Helper to return the company home space
|
String |
getCompanyId() |
String |
getConfirm() |
protected org.alfresco.service.cmr.repository.NodeRef |
getDefaultHomeSpace() |
String |
getEmail() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getFirstName() |
org.alfresco.service.cmr.repository.NodeRef |
getHomeSpaceLocation() |
String |
getHomeSpaceName() |
String |
getJobtitle() |
String |
getLastName() |
String |
getLocation() |
String |
getOrganization() |
String |
getPassword() |
Map |
getPersonPropertiesImmutability() |
String |
getPresenceProvider() |
String |
getPresenceUsername() |
Long |
getSizeQuota() |
String |
getSizeQuotaUnits() |
String |
getSummary() |
String |
getUserName() |
void |
init(Map<String,String> params)
Initialises the wizard
|
protected void |
putSizeQuotaProperty(String userName,
Long quota,
String quotaUnits) |
void |
setAuthenticationService(MutableAuthenticationService authenticationService) |
void |
setCompanyId(String companyId) |
void |
setConfirm(String confirm) |
void |
setContentUsageService(ContentUsageService contentUsageService) |
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setHomeSpaceLocation(org.alfresco.service.cmr.repository.NodeRef homeSpaceLocation) |
void |
setHomeSpaceName(String homeSpaceName) |
void |
setJobtitle(String jobtitle) |
void |
setLastName(String lastName) |
void |
setLocation(String location) |
void |
setOrganization(String organisation) |
void |
setOwnableService(OwnableService ownableService) |
void |
setPassword(String password) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
protected void |
setPersonPropertiesAndCreateHomeSpaceIfNeeded(Map<org.alfresco.service.namespace.QName,Serializable> props,
org.alfresco.service.cmr.repository.NodeRef oldHomeFolderRef,
FacesContext context) |
void |
setPersonService(PersonService personService) |
void |
setPresenceProvider(String presenceProvider) |
void |
setPresenceUsername(String presenceUsername) |
void |
setSizeQuota(Long sizeQuota) |
void |
setSizeQuotaUnits(String sizeQuotaUnits) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setupUsers(ActionEvent event)
Init the users screen
|
void |
setUserName(String userName) |
void |
validateEmail(FacesContext context,
UIComponent component,
Object value)
Validate Email field data is acceptable
|
void |
validatePassword(FacesContext context,
UIComponent component,
Object value)
Deprecated.
Method is never used
|
void |
validateUsername(FacesContext context,
UIComponent component,
Object value)
Validate Username field data is acceptable
|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, next
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
protected static final String ERROR
protected static final String ERROR_DOMAIN_MISMATCH
protected static final String QUOTA_UNITS_KB
protected static final String QUOTA_UNITS_MB
protected static final String QUOTA_UNITS_GB
protected String firstName
protected String lastName
protected String userName
protected String password
protected String confirm
protected String email
protected String companyId
protected String homeSpaceName
protected org.alfresco.service.cmr.repository.NodeRef homeSpaceLocation
protected String presenceProvider
protected String presenceUsername
protected String organisation
protected String jobtitle
protected String location
protected Long sizeQuota
protected String sizeQuotaUnits
public void setAuthenticationService(MutableAuthenticationService authenticationService)
authenticationService
- The AuthenticationService to set.public void setPersonService(PersonService personService)
personService
- The person service.public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- The tenantService to set.public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- The PermissionService to set.public void setOwnableService(OwnableService ownableService)
ownableService
- The ownableService to set.public void setContentUsageService(ContentUsageService contentUsageService)
contentUsageService
- The contentUsageService to set.public void init(Map<String,String> params)
init
in interface IDialogBean
init
in class BaseDialogBean
params
- Map of parameters for the dialogpublic String getSummary()
public void setupUsers(ActionEvent event)
public String getCompanyId()
public void setCompanyId(String companyId)
companyId
- The companyId to set.public String getPresenceProvider()
public void setPresenceProvider(String presenceProvider)
presenceProvider
- The presenceProvider to set.public String getPresenceUsername()
public void setPresenceUsername(String presenceUsername)
presenceUsername
- The presenceUsername to set.public String getEmail()
public void setEmail(String email)
email
- The email to set.public String getFirstName()
public void setFirstName(String firstName)
firstName
- The firstName to set.public org.alfresco.service.cmr.repository.NodeRef getHomeSpaceLocation()
public void setHomeSpaceLocation(org.alfresco.service.cmr.repository.NodeRef homeSpaceLocation)
homeSpaceLocation
- The homeSpaceLocation to set.public String getHomeSpaceName()
public void setHomeSpaceName(String homeSpaceName)
homeSpaceName
- The homeSpaceName to set.public String getLastName()
public void setLastName(String lastName)
lastName
- The lastName to set.public String getUserName()
public void setUserName(String userName)
userName
- The userName to set.public String getPassword()
public void setPassword(String password)
password
- The password to set.public String getConfirm()
public void setConfirm(String confirm)
confirm
- The confirm password to set.public String getJobtitle()
public void setJobtitle(String jobtitle)
jobtitle
- the jobtitle to setpublic String getLocation()
public void setLocation(String location)
location
- the location to setpublic String getOrganization()
public void setOrganization(String organisation)
organisation
- the organisation to setpublic Long getSizeQuota()
public void setSizeQuota(Long sizeQuota)
public String getSizeQuotaUnits()
public void setSizeQuotaUnits(String sizeQuotaUnits)
public void validatePassword(FacesContext context, UIComponent component, Object value) throws ValidatorException
ValidatorException
public void validateUsername(FacesContext context, UIComponent component, Object value) throws ValidatorException
ValidatorException
public void validateEmail(FacesContext context, UIComponent component, Object value) throws ValidatorException
context
- FacesContextcomponent
- UIComponentvalue
- ObjectValidatorException
protected org.alfresco.service.cmr.repository.NodeRef getCompanyHomeSpace()
protected org.alfresco.service.cmr.repository.NodeRef getDefaultHomeSpace()
protected org.alfresco.service.cmr.repository.NodeRef createHomeSpace(String locationId, String spaceName, org.alfresco.service.cmr.repository.NodeRef oldHomeFolderRef, boolean error)
locationId
- Parent locationspaceName
- Home space to create, can be null to simply return the parentoldHomeFolderRef
- the previous home space, for the case where the the user is being updated.
It may not have changed.error
- True to throw an error if the space already exists, else ignore and returnprotected String finishImpl(FacesContext context, String outcome) throws Throwable
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeThrowable
protected void setPersonPropertiesAndCreateHomeSpaceIfNeeded(Map<org.alfresco.service.namespace.QName,Serializable> props, org.alfresco.service.cmr.repository.NodeRef oldHomeFolderRef, FacesContext context)
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
protected void putSizeQuotaProperty(String userName, Long quota, String quotaUnits)
protected long convertToBytes(long size, String units)
public boolean checkTenantUserName()
public Map getPersonPropertiesImmutability()
Copyright © 2005–2017 Alfresco Software. All rights reserved.