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

java.lang.Object
  extended by org.alfresco.web.bean.rules.handlers.BaseConditionHandler
      extended by org.alfresco.web.bean.rules.handlers.CompositeConditionHandler
All Implemented Interfaces:
java.io.Serializable, IHandler

public class CompositeConditionHandler
extends BaseConditionHandler

See Also:
Serialized Form

Field Summary
static java.lang.String NAME
           
static java.lang.String PROP_COMPOSITE_CONDITION
           
static java.lang.String PROP_CONDITION_OR
           
 
Fields inherited from class org.alfresco.web.bean.rules.handlers.BaseConditionHandler
CONDITION_PAGES_LOCATION, PROP_CONDITION_NOT
 
Constructor Summary
CompositeConditionHandler()
           
 
Method Summary
 java.lang.String generateSummary(javax.faces.context.FacesContext context, IWizardBean wizard, java.util.Map props)
          Generates a summary string for this handler.
 java.lang.String getJSPPath()
          By default, a JSP with the same name as the handler will be loaded from a default location.
 void prepareForEdit(java.util.Map uiConditionProps, java.util.Map repoProps)
          Called at the start of the edit wizard.
 void prepareForSave(java.util.Map uiConditionProps, java.util.Map repoProps)
          Called at the end of the wizard.
 
Methods inherited from class org.alfresco.web.bean.rules.handlers.BaseConditionHandler
getJSPPath, getNamespaceService, isAllowMultiple, setupUIDefaults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

PROP_COMPOSITE_CONDITION

public static final java.lang.String PROP_COMPOSITE_CONDITION
See Also:
Constant Field Values

PROP_CONDITION_OR

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

CompositeConditionHandler

public CompositeConditionHandler()
Method Detail

generateSummary

public java.lang.String generateSummary(javax.faces.context.FacesContext context,
                                        IWizardBean wizard,
                                        java.util.Map props)
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.

Parameters:
context - Faces context
wizard - The current wizard
props - The properties map
Returns:
The summary string

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.

Returns:
The path to the JSP for the handler

prepareForEdit

public void prepareForEdit(java.util.Map uiConditionProps,
                           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.

Parameters:
uiConditionProps - The current properties map
repoProps - The properties currently in the repository

prepareForSave

public void prepareForSave(java.util.Map uiConditionProps,
                           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.

Parameters:
uiConditionProps - The current properties map
repoProps - The repository properties map to prepare


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