org.alfresco.web.bean.actions
Interface IHandler

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AddFeaturesHandler, BaseActionHandler, BaseConditionHandler, CheckInHandler, CheckOutHandler, CompareMimeTypeHandler, CompositeConditionHandler, CopyHandler, CopyToWebProjectHandler, DatePropertyValueConditionHandler, HasAspectHandler, HasTagHandler, ImportHandler, InCategoryHandler, IntegerPropertyValueConditionHandler, IsSubTypeHandler, LinkCategoryHandler, MailHandler, MoveHandler, PropertyValueHandler, RemoveFeaturesHandler, ScriptHandler, SimpleWorkflowHandler, SpecialiseTypeHandler, TextPropertyValueConditionHandler, TransformHandler, TransformImageHandler

public interface IHandler
extends java.io.Serializable

Interface definition for a handler, classes that are responsible for marshalling data between the repository and the action based wizards.


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.
 boolean isAllowMultiple()
          Returns value of possibility of repeated performance of action
 void prepareForEdit(java.util.Map props, java.util.Map repoProps)
          Called at the start of the edit wizard.
 void prepareForSave(java.util.Map props, java.util.Map repoProps)
          Called at the end of the wizard.
 void setupUIDefaults(java.util.Map props)
          Adds any properties to the given map that need default values before the UI is displayed to the user.
 

Method Detail

setupUIDefaults

void setupUIDefaults(java.util.Map props)
Adds any properties to the given map that need default values before the UI is displayed to the user.

Parameters:
props - The current properties map

getJSPPath

java.lang.String getJSPPath()
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

prepareForSave

void prepareForSave(java.util.Map props,
                    java.util.Map repoProps)
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:
props - The current properties map
repoProps - The repository properties map to prepare

prepareForEdit

void prepareForEdit(java.util.Map props,
                    java.util.Map repoProps)
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:
props - The current properties map
repoProps - The properties currently in the repository

generateSummary

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

isAllowMultiple

boolean isAllowMultiple()
Returns value of possibility of repeated performance of action

Returns:
true is allow multiple


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