org.alfresco.web.bean.rules.handlers.property
Class TextPropertyValueConditionHandler
java.lang.Object
org.alfresco.web.bean.rules.handlers.BaseConditionHandler
org.alfresco.web.bean.rules.handlers.PropertyValueHandler
org.alfresco.web.bean.rules.handlers.property.TextPropertyValueConditionHandler
- All Implemented Interfaces:
- java.io.Serializable, IHandler
- Direct Known Subclasses:
- DatePropertyValueConditionHandler, IntegerPropertyValueConditionHandler
public class TextPropertyValueConditionHandler
- extends PropertyValueHandler
Condition handler for the "compare-text-property" condition.
- See Also:
- Serialized Form
Method Summary |
protected java.lang.String |
displayOperation(java.lang.String operation)
|
java.lang.String |
generateSummary(javax.faces.context.FacesContext context,
IWizardBean wizard,
java.util.Map conditionProps)
Generates a summary string for this handler. |
protected java.lang.String |
getConditionName()
|
java.lang.String |
getJSPPath()
By default, a JSP with the same name as the handler will
be loaded from a default location. |
protected java.lang.String |
getSummaryStringTemplate(java.lang.Boolean not)
|
void |
prepareForEdit(java.util.Map conditionProps,
java.util.Map repoProps)
Called at the start of the edit wizard. |
void |
prepareForSave(java.util.Map conditionParams,
java.util.Map repoProps)
Called at the end of the wizard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
UI_PARAM_OPERATION
public static final java.lang.String UI_PARAM_OPERATION
- See Also:
- Constant Field Values
UI_PARAM_QNAME
public static final java.lang.String UI_PARAM_QNAME
- See Also:
- Constant Field Values
TextPropertyValueConditionHandler
public TextPropertyValueConditionHandler()
getJSPPath
public java.lang.String getJSPPath()
- Description copied from interface:
IHandler
- By default, a JSP with the same name as the handler will
be loaded from a default location. If the handler has stored
it's UI somewhere else the view id can be returned from this method.
- Specified by:
getJSPPath
in interface IHandler
- Overrides:
getJSPPath
in class PropertyValueHandler
- Returns:
- The path to the JSP for the handler
getConditionName
protected java.lang.String getConditionName()
prepareForSave
public void prepareForSave(java.util.Map conditionParams,
java.util.Map repoProps)
- Description copied from interface:
IHandler
- Called at the end of the wizard. The properties relevant to
this handler have to be placed in the repository properties
map in the correct form for sending to the node service.
- Specified by:
prepareForSave
in interface IHandler
- Overrides:
prepareForSave
in class PropertyValueHandler
- Parameters:
conditionParams
- The current properties maprepoProps
- The repository properties map to prepare
prepareForEdit
public void prepareForEdit(java.util.Map conditionProps,
java.util.Map repoProps)
- Description copied from interface:
IHandler
- Called at the start of the edit wizard. The repository properties
map holds the current state of this rule. Any properties relevant
to this handler should be retrieved and setup in the current
properties map.
- Specified by:
prepareForEdit
in interface IHandler
- Overrides:
prepareForEdit
in class PropertyValueHandler
- Parameters:
conditionProps
- The current properties maprepoProps
- The properties currently in the repository
generateSummary
public java.lang.String generateSummary(javax.faces.context.FacesContext context,
IWizardBean wizard,
java.util.Map conditionProps)
- Description copied from interface:
IHandler
- Generates a summary string for this handler. The current state of
the wizard is passed as well as the current properties map.
- Specified by:
generateSummary
in interface IHandler
- Overrides:
generateSummary
in class PropertyValueHandler
- Parameters:
context
- Faces contextwizard
- The current wizardconditionProps
- The properties map
- Returns:
- The summary string
displayOperation
protected java.lang.String displayOperation(java.lang.String operation)
getSummaryStringTemplate
protected java.lang.String getSummaryStringTemplate(java.lang.Boolean not)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.