public class CreateUserWizard extends BaseWizardBean
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
companyId |
protected java.lang.String |
confirm |
protected java.lang.String |
email |
protected static java.lang.String |
ERROR |
protected static java.lang.String |
ERROR_DOMAIN_MISMATCH |
protected java.lang.String |
firstName
form variables
|
protected org.alfresco.service.cmr.repository.NodeRef |
homeSpaceLocation |
protected java.lang.String |
homeSpaceName |
protected java.lang.String |
jobtitle |
protected java.lang.String |
lastName |
protected java.lang.String |
location |
protected java.lang.String |
organisation |
protected java.lang.String |
password |
protected java.lang.String |
presenceProvider |
protected java.lang.String |
presenceUsername |
protected static java.lang.String |
QUOTA_UNITS_GB |
protected static java.lang.String |
QUOTA_UNITS_KB |
protected static java.lang.String |
QUOTA_UNITS_MB |
protected java.lang.Long |
sizeQuota |
protected java.lang.String |
sizeQuotaUnits |
protected java.lang.String |
userName |
browseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
CreateUserWizard() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkTenantUserName() |
protected org.alfresco.util.Pair |
convertFromBytes(long size) |
protected long |
convertToBytes(long size,
java.lang.String units) |
protected org.alfresco.service.cmr.repository.NodeRef |
createHomeSpace(java.lang.String locationId,
java.lang.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 java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
protected org.alfresco.service.cmr.repository.NodeRef |
getCompanyHomeSpace()
Helper to return the company home space
|
java.lang.String |
getCompanyId() |
java.lang.String |
getConfirm() |
protected org.alfresco.service.cmr.repository.NodeRef |
getDefaultHomeSpace() |
java.lang.String |
getEmail() |
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
java.lang.String |
getFirstName() |
org.alfresco.service.cmr.repository.NodeRef |
getHomeSpaceLocation() |
java.lang.String |
getHomeSpaceName() |
java.lang.String |
getJobtitle() |
java.lang.String |
getLastName() |
java.lang.String |
getLocation() |
java.lang.String |
getOrganization() |
java.lang.String |
getPassword() |
java.util.Map |
getPersonPropertiesImmutability() |
java.lang.String |
getPresenceProvider() |
java.lang.String |
getPresenceUsername() |
java.lang.Long |
getSizeQuota() |
java.lang.String |
getSizeQuotaUnits() |
java.lang.String |
getSummary() |
java.lang.String |
getUserName() |
void |
init(java.util.Map params)
Initialises the wizard
|
protected void |
putSizeQuotaProperty(java.lang.String userName,
java.lang.Long quota,
java.lang.String quotaUnits) |
void |
setAuthenticationService(org.alfresco.service.cmr.security.MutableAuthenticationService authenticationService) |
void |
setCompanyId(java.lang.String companyId) |
void |
setConfirm(java.lang.String confirm) |
void |
setContentUsageService(org.alfresco.service.cmr.usage.ContentUsageService contentUsageService) |
void |
setEmail(java.lang.String email) |
void |
setFirstName(java.lang.String firstName) |
void |
setHomeSpaceLocation(org.alfresco.service.cmr.repository.NodeRef homeSpaceLocation) |
void |
setHomeSpaceName(java.lang.String homeSpaceName) |
void |
setJobtitle(java.lang.String jobtitle) |
void |
setLastName(java.lang.String lastName) |
void |
setLocation(java.lang.String location) |
void |
setOrganization(java.lang.String organisation) |
void |
setOwnableService(org.alfresco.service.cmr.security.OwnableService ownableService) |
void |
setPassword(java.lang.String password) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
protected void |
setPersonPropertiesAndCreateHomeSpaceIfNeeded(java.util.Map props,
org.alfresco.service.cmr.repository.NodeRef oldHomeFolderRef,
javax.faces.context.FacesContext context) |
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService) |
void |
setPresenceProvider(java.lang.String presenceProvider) |
void |
setPresenceUsername(java.lang.String presenceUsername) |
void |
setSizeQuota(java.lang.Long sizeQuota) |
void |
setSizeQuotaUnits(java.lang.String sizeQuotaUnits) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setupUsers(javax.faces.event.ActionEvent event)
Init the users screen
|
void |
setUserName(java.lang.String userName) |
void |
validatePassword(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Deprecated.
Method is never used
|
void |
validateUsername(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Validate Username field data is acceptable
|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle, nextcancel, 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, setSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restoredprotected static final java.lang.String ERROR
protected static final java.lang.String ERROR_DOMAIN_MISMATCH
protected static final java.lang.String QUOTA_UNITS_KB
protected static final java.lang.String QUOTA_UNITS_MB
protected static final java.lang.String QUOTA_UNITS_GB
protected java.lang.String firstName
protected java.lang.String lastName
protected java.lang.String userName
protected java.lang.String password
protected java.lang.String confirm
protected java.lang.String email
protected java.lang.String companyId
protected java.lang.String homeSpaceName
protected org.alfresco.service.cmr.repository.NodeRef homeSpaceLocation
protected java.lang.String presenceProvider
protected java.lang.String presenceUsername
protected java.lang.String organisation
protected java.lang.String jobtitle
protected java.lang.String location
protected java.lang.Long sizeQuota
protected java.lang.String sizeQuotaUnits
public void setAuthenticationService(org.alfresco.service.cmr.security.MutableAuthenticationService authenticationService)
authenticationService - The AuthenticationService to set.public void setPersonService(org.alfresco.service.cmr.security.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(org.alfresco.service.cmr.security.OwnableService ownableService)
ownableService - The ownableService to set.public void setContentUsageService(org.alfresco.service.cmr.usage.ContentUsageService contentUsageService)
contentUsageService - The contentUsageService to set.public void init(java.util.Map params)
init in interface IDialogBeaninit in class BaseDialogBeanparams - Map of parameters for the dialogpublic java.lang.String getSummary()
public void setupUsers(javax.faces.event.ActionEvent event)
public java.lang.String getCompanyId()
public void setCompanyId(java.lang.String companyId)
companyId - The companyId to set.public java.lang.String getPresenceProvider()
public void setPresenceProvider(java.lang.String presenceProvider)
presenceProvider - The presenceProvider to set.public java.lang.String getPresenceUsername()
public void setPresenceUsername(java.lang.String presenceUsername)
presenceUsername - The presenceUsername to set.public java.lang.String getEmail()
public void setEmail(java.lang.String email)
email - The email to set.public java.lang.String getFirstName()
public void setFirstName(java.lang.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 java.lang.String getHomeSpaceName()
public void setHomeSpaceName(java.lang.String homeSpaceName)
homeSpaceName - The homeSpaceName to set.public java.lang.String getLastName()
public void setLastName(java.lang.String lastName)
lastName - The lastName to set.public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName - The userName to set.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - The password to set.public java.lang.String getConfirm()
public void setConfirm(java.lang.String confirm)
confirm - The confirm password to set.public java.lang.String getJobtitle()
public void setJobtitle(java.lang.String jobtitle)
jobtitle - the jobtitle to setpublic java.lang.String getLocation()
public void setLocation(java.lang.String location)
location - the location to setpublic java.lang.String getOrganization()
public void setOrganization(java.lang.String organisation)
organisation - the organisation to setpublic java.lang.Long getSizeQuota()
public void setSizeQuota(java.lang.Long sizeQuota)
public java.lang.String getSizeQuotaUnits()
public void setSizeQuotaUnits(java.lang.String sizeQuotaUnits)
public void validatePassword(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorExceptionpublic void validateUsername(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorExceptionprotected org.alfresco.service.cmr.repository.NodeRef getCompanyHomeSpace()
protected org.alfresco.service.cmr.repository.NodeRef getDefaultHomeSpace()
protected org.alfresco.service.cmr.repository.NodeRef createHomeSpace(java.lang.String locationId,
java.lang.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 java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Throwable
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomejava.lang.Throwableprotected void setPersonPropertiesAndCreateHomeSpaceIfNeeded(java.util.Map props,
org.alfresco.service.cmr.repository.NodeRef oldHomeFolderRef,
javax.faces.context.FacesContext context)
public boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanprotected void putSizeQuotaProperty(java.lang.String userName,
java.lang.Long quota,
java.lang.String quotaUnits)
protected long convertToBytes(long size,
java.lang.String units)
protected org.alfresco.util.Pair convertFromBytes(long size)
public boolean checkTenantUserName()
public java.util.Map getPersonPropertiesImmutability()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.