public class UserMacroAction extends ConfluenceActionSupport
Modifier and Type | Field and Description |
---|---|
protected String |
macro |
protected com.atlassian.renderer.v2.macro.MacroManager |
macroManager |
protected MacroMetadataManager |
macroMetadataManager |
protected UserMacroConfig |
userMacro |
protected UserMacroLibrary |
userMacroLibrary |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
UserMacroAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
addUpdateMacro(UserMacroConfig userMacro)
Add the updated macro to the user macro library.
|
int |
countUserMacrosWithoutMetadata() |
int |
countUserMacrosWithWikiTemplates() |
String |
doDefault()
Default webwork action execution method.
|
List<String> |
getBodyTypes()
Populates the body type select box
Only used by AddUserMacroAction and UpdateUserMacroAction
If this class gets any more complex consider using delegation
|
List<HTMLPairType> |
getCategories()
Populates the category multiple-select box
Only used by AddUserMacroAction and UpdateUserMacroAction
If this class gets _any_ more complex consider using delegation
|
boolean |
getShowInMacroBrowser() |
UserMacroConfig |
getUserMacro() |
List<UserMacroConfig> |
getUserMacros() |
boolean |
isMissingMetadata(String macroName) |
boolean |
isPermitted() |
boolean |
isWikiTemplate(String macroName) |
void |
setMacro(String macro) |
void |
setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager) |
void |
setMacroMetadataManager(MacroMetadataManager macroMetadataManager) |
void |
setShowInMacroBrowser(boolean showInMacroBrowser) |
void |
setUserMacro(UserMacroConfig userMacro) |
void |
setUserMacroLibrary(UserMacroLibrary userMacroLibrary) |
protected void |
validateMacroForm() |
protected void |
validateNewMacroName(String name) |
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
protected UserMacroConfig userMacro
protected UserMacroLibrary userMacroLibrary
protected com.atlassian.renderer.v2.macro.MacroManager macroManager
protected MacroMetadataManager macroMetadataManager
protected String macro
public UserMacroConfig getUserMacro()
public List<UserMacroConfig> getUserMacros()
public void setUserMacroLibrary(UserMacroLibrary userMacroLibrary)
public void setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
public void setMacroMetadataManager(MacroMetadataManager macroMetadataManager)
public void setMacro(String macro)
public void setUserMacro(UserMacroConfig userMacro)
public String doDefault() throws Exception
ConfluenceActionSupport
doDefault
in class ConfluenceActionSupport
Exception
- if something goes wrongprotected void addUpdateMacro(UserMacroConfig userMacro)
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
public boolean isWikiTemplate(String macroName)
macroName
- the name of the macro to checkpublic boolean isMissingMetadata(String macroName)
public int countUserMacrosWithWikiTemplates()
public int countUserMacrosWithoutMetadata()
public List<String> getBodyTypes()
public List<HTMLPairType> getCategories()
public boolean getShowInMacroBrowser()
public void setShowInMacroBrowser(boolean showInMacroBrowser)
protected void validateNewMacroName(String name)
protected void validateMacroForm()
Copyright © 2003–2016 Atlassian. All rights reserved.