Package lumis.service.forum
Class ForumButtonVisibilityControl
- java.lang.Object
-
- lumis.doui.control.Control
-
- lumis.doui.control.SourceBoundControl<TabularSource<?>>
-
- lumis.service.forum.ForumButtonVisibilityControl
-
- All Implemented Interfaces:
VariableResolver
,IControl
public class ForumButtonVisibilityControl extends SourceBoundControl<TabularSource<?>>
- Since:
- 4.0.5
- Version:
- $Revision: 20877 $ $Date: 2018-01-09 11:44:08 -0200 (Tue, 09 Jan 2018) $
-
-
Field Summary
Fields Modifier and Type Field Description static String
VISIBILITY_TYPE_FORUM_LOCK_BUTTONS
static String
VISIBILITY_TYPE_FORUM_NEW_TOPIC_BUTTONS
static String
VISIBILITY_TYPE_TOPIC_LOCK_BUTTONS
static String
VISIBILITY_TYPE_TOPIC_REPLY_BUTTONS
-
Fields inherited from class lumis.doui.control.Control
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, ON_EVENT_VALIDATE, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
-
-
Constructor Summary
Constructors Constructor Description ForumButtonVisibilityControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleForumLockButtons(Node controlDefinitionNode, String userId)
protected void
handleForumNewTopicButtons(Node controlDefinitionNode, String currentUserId)
protected void
handleTopicLockButtons(Node controlDefinitionNode, String userId)
protected void
handleTopicReplyButtons(Node controlDefinitionNode, String userId)
protected void
removeAllSubControls(Node controlDefinitionNode)
void
setRenderData()
-
Methods inherited from class lumis.doui.control.SourceBoundControl
getRuntimeDefaultSource, getSource, getSourceContext
-
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, buildSubControls, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, generateControlIdPrefix, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getControlResource, getId, getLocale, getName, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getScriptActionValidation, getStringsToLocalize, getType, getValidationScript, getWindowProperties, getWindowProperties, init, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes, setValid
-
-
-
-
Field Detail
-
VISIBILITY_TYPE_FORUM_LOCK_BUTTONS
public static String VISIBILITY_TYPE_FORUM_LOCK_BUTTONS
-
VISIBILITY_TYPE_TOPIC_LOCK_BUTTONS
public static String VISIBILITY_TYPE_TOPIC_LOCK_BUTTONS
-
VISIBILITY_TYPE_FORUM_NEW_TOPIC_BUTTONS
public static String VISIBILITY_TYPE_FORUM_NEW_TOPIC_BUTTONS
-
VISIBILITY_TYPE_TOPIC_REPLY_BUTTONS
public static String VISIBILITY_TYPE_TOPIC_REPLY_BUTTONS
-
-
Method Detail
-
setRenderData
public void setRenderData() throws PortalException
- Specified by:
setRenderData
in interfaceIControl
- Overrides:
setRenderData
in classControl
- Throws:
PortalException
-
handleForumLockButtons
protected void handleForumLockButtons(Node controlDefinitionNode, String userId) throws PortalException
- Throws:
PortalException
-
handleTopicLockButtons
protected void handleTopicLockButtons(Node controlDefinitionNode, String userId) throws PortalException
- Throws:
PortalException
-
handleForumNewTopicButtons
protected void handleForumNewTopicButtons(Node controlDefinitionNode, String currentUserId) throws PortalException
- Throws:
PortalException
-
handleTopicReplyButtons
protected void handleTopicReplyButtons(Node controlDefinitionNode, String userId) throws PortalException
- Throws:
PortalException
-
removeAllSubControls
protected void removeAllSubControls(Node controlDefinitionNode) throws PortalException
- Throws:
PortalException
-
-