public class CreateDirectory extends BaseAction
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected List<DirectoryType> |
availableDirectoryTypes |
protected CrowdDirectoryService |
crowdDirectoryService |
protected String |
description |
protected DirectoryType |
directoryType |
protected long |
ID |
protected String |
name |
protected Set<OperationType> |
permissions |
protected long |
tabID |
actionHelper, actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, crowdLicenseManager, directoryManager, initialLoad, logger, propertyManager, rememberMeService, SMALL_AVATAR_SIZE, smallAvatarUrl, tab, tokenAuthenticationManager
Constructor and Description |
---|
CreateDirectory() |
Modifier and Type | Method and Description |
---|---|
String |
execute() |
String |
getDescription() |
String |
getDirectoryType() |
String |
getDirectoryTypeAction() |
List<Map<String,String>> |
getDirectoryTypeOption() |
long |
getID() |
String |
getName() |
long |
getTabID() |
boolean |
isActive() |
boolean |
isPermissionGroupAdd() |
boolean |
isPermissionGroupAttributeModify() |
boolean |
isPermissionGroupModify() |
boolean |
isPermissionGroupRemove() |
boolean |
isPermissionPrincipalAdd() |
boolean |
isPermissionPrincipalAttributeModify() |
boolean |
isPermissionPrincipalModify() |
boolean |
isPermissionPrincipalRemove() |
String |
select() |
void |
setActive(boolean active) |
void |
setCrowdDirectoryService(CrowdDirectoryService crowdDirectoryService) |
void |
setDescription(String description) |
void |
setDirectoryType(String directoryType) |
void |
setID(long ID) |
void |
setName(String name) |
void |
setPermissionGroupAdd(boolean permissionGroupAdd) |
void |
setPermissionGroupAttributeModify(boolean permissionGroupAttributeModify) |
void |
setPermissionGroupModify(boolean permissionGroupModify) |
void |
setPermissionGroupRemove(boolean permissionGroupRemove) |
void |
setPermissionPrincipalAdd(boolean permissionPrincipalAdd) |
void |
setPermissionPrincipalAttributeModify(boolean permissionPrincipalAttributeModify) |
void |
setPermissionPrincipalModify(boolean permissionPrincipalModify) |
void |
setPermissionPrincipalRemove(boolean permissionPrincipalRemove) |
void |
setTabID(long tabID) |
void |
validateDirectoryAttributes(Directory directory)
Validates the given directory attributes against the Validator implementation provided for the
DirectoryType and adds the returned error to the field errors |
protected void |
validateDirectoryName()
Validates input name and add to field error if any directory already exists with given name
|
addActionError, addActionMessage, applyFieldError, applyFieldErrors, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, 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, isEvaluation, isGroupAdmin, isInitialLoad, isLicenseExpired, isRestartRequiredToEnableClustering, isSubscription, isSysAdmin, isWithinGracePeriod, renderFreemarkerTemplate, resolveAvatarUri, setActionHelper, setApplicationManager, setApplicationService, setClientProperties, setClusterService, setCrowdApplication, setCrowdLicenseManager, setDirectoryManager, setPropertyManager, setRememberMeService, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
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
protected long ID
protected boolean active
protected String name
protected String description
protected DirectoryType directoryType
protected Set<OperationType> permissions
protected final List<DirectoryType> availableDirectoryTypes
protected long tabID
protected CrowdDirectoryService crowdDirectoryService
public void setCrowdDirectoryService(CrowdDirectoryService crowdDirectoryService)
public String execute()
execute
in interface com.opensymphony.xwork2.Action
execute
in class BaseAction
protected void validateDirectoryName()
public void validateDirectoryAttributes(Directory directory)
DirectoryType
and adds the returned error to the field errorsdirectory
- Diretory to be validatedpublic String select()
public long getID()
public void setID(long ID)
public boolean isActive()
public void setActive(boolean active)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public boolean isPermissionGroupAdd()
public void setPermissionGroupAdd(boolean permissionGroupAdd)
public boolean isPermissionGroupModify()
public void setPermissionGroupModify(boolean permissionGroupModify)
public boolean isPermissionGroupAttributeModify()
public void setPermissionGroupAttributeModify(boolean permissionGroupAttributeModify)
public boolean isPermissionGroupRemove()
public void setPermissionGroupRemove(boolean permissionGroupRemove)
public boolean isPermissionPrincipalAdd()
public void setPermissionPrincipalAdd(boolean permissionPrincipalAdd)
public boolean isPermissionPrincipalModify()
public void setPermissionPrincipalModify(boolean permissionPrincipalModify)
public boolean isPermissionPrincipalAttributeModify()
public void setPermissionPrincipalAttributeModify(boolean permissionPrincipalAttributeModify)
public boolean isPermissionPrincipalRemove()
public void setPermissionPrincipalRemove(boolean permissionPrincipalRemove)
public long getTabID()
public void setTabID(long tabID)
public String getDirectoryType()
public void setDirectoryType(String directoryType)
public String getDirectoryTypeAction()
Copyright © 2020 Atlassian. All rights reserved.