org.alfresco.web.bean.rules.handlers
Class BaseConditionHandler

java.lang.Object
  extended by org.alfresco.web.bean.rules.handlers.BaseConditionHandler
All Implemented Interfaces:
java.io.Serializable, IHandler
Direct Known Subclasses:
CompareMimeTypeHandler, CompositeConditionHandler, HasAspectHandler, HasTagHandler, InCategoryHandler, IsSubTypeHandler, PropertyValueHandler

public abstract class BaseConditionHandler
extends java.lang.Object
implements IHandler

Base class for all condition handler implementations.

See Also:
Serialized Form

Field Summary
protected static java.lang.String CONDITION_PAGES_LOCATION
           
static java.lang.String PROP_CONDITION_NOT
           
 
Constructor Summary
BaseConditionHandler()
           
 
Method Summary
protected  java.lang.String getJSPPath(java.lang.String conditionName)
          Given the condition name, generates the default path for the JSP
protected  org.alfresco.service.namespace.NamespaceService getNamespaceService()
          Returns the NamespaceService for further retrieve a prefix strings.
 boolean isAllowMultiple()
          Returns value of possibility of repeated performance of action
 void setupUIDefaults(java.util.Map conditionProps)
          Adds any properties to the given map that need default values before the UI is displayed to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.web.bean.actions.IHandler
generateSummary, getJSPPath, prepareForEdit, prepareForSave
 

Field Detail

CONDITION_PAGES_LOCATION

protected static final java.lang.String CONDITION_PAGES_LOCATION
See Also:
Constant Field Values

PROP_CONDITION_NOT

public static final java.lang.String PROP_CONDITION_NOT
See Also:
Constant Field Values
Constructor Detail

BaseConditionHandler

public BaseConditionHandler()
Method Detail

setupUIDefaults

public void setupUIDefaults(java.util.Map conditionProps)
Description copied from interface: IHandler
Adds any properties to the given map that need default values before the UI is displayed to the user.

Specified by:
setupUIDefaults in interface IHandler
Parameters:
conditionProps - The current properties map

getJSPPath

protected java.lang.String getJSPPath(java.lang.String conditionName)
Given the condition name, generates the default path for the JSP

Parameters:
conditionName - The name of the condition
Returns:
The path to the JSP used for the condition

getNamespaceService

protected org.alfresco.service.namespace.NamespaceService getNamespaceService()
Returns the NamespaceService for further retrieve a prefix strings.

Returns:
The NamespaseService for further usage
See Also:
TextPropertyValueConditionHandler.prepareForEdit(Map, Map)

isAllowMultiple

public boolean isAllowMultiple()
Description copied from interface: IHandler
Returns value of possibility of repeated performance of action

Specified by:
isAllowMultiple in interface IHandler
Returns:
true is allow multiple


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.