Class CmsGroupStateAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
org.opencms.workplace.list.CmsListDefaultAction
org.opencms.workplace.tools.accounts.CmsGroupStateAction
- All Implemented Interfaces:
I_CmsListAction,I_CmsListDirectAction,org.opencms.workplace.tools.I_CmsHtmlIconButton
Show diferent states depending on user direct/indirect group assignment.
- Since:
- 6.0.0
-
Field Summary
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id -
Constructor Summary
ConstructorsConstructorDescriptionCmsGroupStateAction(String id, boolean direct) Default constructor.CmsGroupStateAction(String id, org.opencms.file.CmsObject cms, boolean direct) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencms.file.CmsObjectgetCms()Returns the cms context.Returns the user Name.booleanisDirect()Returns the direct group flag.booleanvoidsetUserName(String userName) Sets the user Name.voidsetWp(A_CmsListDialog wp) Sets the workplace dialog object.Methods inherited from class org.opencms.workplace.list.CmsListDefaultAction
getColumnForLink, getColumnFormatter, resolveButtonStyle, resolveName, setColumnForLinkMethods inherited from class org.opencms.workplace.list.CmsListDirectAction
buttonHtml, confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveHelpText, resolveOnClic, setColumnForTexts, setItemMethods inherited from class org.opencms.workplace.list.A_CmsListAction
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListIdMethods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isEnabled, setEnabled, setHelpText, setIconPath, setName, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton
getHelpText, getIconPath, getId, getName, isEnabled, setEnabled, setHelpText, setIconPath, setName, setVisibleMethods inherited from interface org.opencms.workplace.list.I_CmsListAction
buttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId
-
Constructor Details
-
CmsGroupStateAction
Default constructor.- Parameters:
id- the id of the actiondirect- the direct group flag
-
CmsGroupStateAction
Default constructor.- Parameters:
id- the id of the actioncms- the cms contextdirect- the direct group flag
-
-
Method Details
-
getCms
Returns the cms context.- Returns:
- the cms context
-
getUserName
Returns the user Name.- Returns:
- the user Name
-
isDirect
Returns the direct group flag.- Returns:
- the direct group flag
-
isVisible
- Specified by:
isVisiblein interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton- Overrides:
isVisiblein classorg.opencms.workplace.tools.A_CmsHtmlIconButton- See Also:
-
setUserName
Sets the user Name.- Parameters:
userName- the user Name to set
-
setWp
Description copied from interface:I_CmsListActionSets the workplace dialog object.- Specified by:
setWpin interfaceI_CmsListAction- Overrides:
setWpin classA_CmsListAction- Parameters:
wp- the workplace dialog object- See Also:
-