org.exoplatform.services.plugin.actions.impl
Class BPActionPlugin

java.lang.Object
  extended by org.exoplatform.services.cms.actions.impl.BaseActionPlugin
      extended by org.exoplatform.services.plugin.actions.impl.BPActionPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, ActionPlugin

public class BPActionPlugin
extends BaseActionPlugin
implements org.exoplatform.container.component.ComponentPlugin


Nested Class Summary
 class BPActionPlugin.BPActionLauncherListener
           
 
Field Summary
static java.lang.String ACTION_TYPE
           
 
Fields inherited from class org.exoplatform.services.cms.actions.impl.BaseActionPlugin
listeners_
 
Constructor Summary
BPActionPlugin(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.container.xml.InitParams params, WorkflowServiceContainer workflowServiceContainer)
           
 
Method Summary
 void activateAction(java.lang.String userId, java.lang.String executable, java.util.Map variables, java.lang.String repository)
           
protected  java.lang.Class createActivationJob()
           
protected  ECMEventListener createEventListener(java.lang.String actionName, java.lang.String moveExecutable, java.lang.String repository, java.lang.String srcWorkspace, java.lang.String srcPath, java.util.Map variables, java.lang.String actionType)
           
 void executeAction(java.lang.String userId, javax.jcr.Node actionNode, java.util.Map variables, java.lang.String repository)
           
 void executeAction(java.lang.String userId, java.lang.String executable, java.util.Map variables, java.lang.String repository)
           
 java.lang.String getActionExecutableLabel()
           
 java.util.Collection<java.lang.String> getActionExecutables(java.lang.String repository)
           
protected  java.util.List getActions()
           
protected  java.lang.String getActionType()
           
 java.lang.String getDescription()
           
 java.lang.String getExecutableDefinitionName()
           
 java.lang.String getName()
           
protected  java.util.List<org.exoplatform.services.jcr.config.RepositoryEntry> getRepositories()
           
protected  org.exoplatform.services.jcr.core.ManageableRepository getRepository(java.lang.String repository)
           
protected  java.lang.String getRepositoryName()
           
protected  java.lang.String getWorkspaceName()
           
 void setDescription(java.lang.String desc)
           
 void setName(java.lang.String s)
           
 
Methods inherited from class org.exoplatform.services.cms.actions.impl.BaseActionPlugin
addAction, addAction, getActionExecutable, getSystemSession, getVariableNames, importPredefinedActionsInJcr, initiateActionObservation, isActionTypeSupported, isVariable, reImportPredefinedActionsInJcr, removeActivationJob, removeObservation, reScheduleActivations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_TYPE

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

BPActionPlugin

public BPActionPlugin(org.exoplatform.services.jcr.RepositoryService repositoryService,
                      org.exoplatform.container.xml.InitParams params,
                      WorkflowServiceContainer workflowServiceContainer)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getActionExecutables

public java.util.Collection<java.lang.String> getActionExecutables(java.lang.String repository)
                                                            throws java.lang.Exception
Specified by:
getActionExecutables in interface ActionPlugin
Throws:
java.lang.Exception

createEventListener

protected ECMEventListener createEventListener(java.lang.String actionName,
                                               java.lang.String moveExecutable,
                                               java.lang.String repository,
                                               java.lang.String srcWorkspace,
                                               java.lang.String srcPath,
                                               java.util.Map variables,
                                               java.lang.String actionType)
                                        throws java.lang.Exception
Specified by:
createEventListener in class BaseActionPlugin
Throws:
java.lang.Exception

getActionExecutableLabel

public java.lang.String getActionExecutableLabel()
Specified by:
getActionExecutableLabel in interface ActionPlugin

getExecutableDefinitionName

public java.lang.String getExecutableDefinitionName()
Specified by:
getExecutableDefinitionName in interface ActionPlugin

getRepositoryName

protected java.lang.String getRepositoryName()
Specified by:
getRepositoryName in class BaseActionPlugin

getWorkspaceName

protected java.lang.String getWorkspaceName()
Specified by:
getWorkspaceName in class BaseActionPlugin

getRepositories

protected java.util.List<org.exoplatform.services.jcr.config.RepositoryEntry> getRepositories()
Specified by:
getRepositories in class BaseActionPlugin

getRepository

protected org.exoplatform.services.jcr.core.ManageableRepository getRepository(java.lang.String repository)
                                                                        throws java.lang.Exception
Specified by:
getRepository in class BaseActionPlugin
Throws:
java.lang.Exception

getActionType

protected java.lang.String getActionType()
Specified by:
getActionType in class BaseActionPlugin

getActions

protected java.util.List getActions()
Specified by:
getActions in class BaseActionPlugin

getName

public java.lang.String getName()
Specified by:
getName in interface org.exoplatform.container.component.ComponentPlugin

setName

public void setName(java.lang.String s)
Specified by:
setName in interface org.exoplatform.container.component.ComponentPlugin

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface org.exoplatform.container.component.ComponentPlugin

setDescription

public void setDescription(java.lang.String desc)
Specified by:
setDescription in interface org.exoplatform.container.component.ComponentPlugin

executeAction

public void executeAction(java.lang.String userId,
                          javax.jcr.Node actionNode,
                          java.util.Map variables,
                          java.lang.String repository)
                   throws java.lang.Exception
Specified by:
executeAction in interface ActionPlugin
Throws:
java.lang.Exception

executeAction

public void executeAction(java.lang.String userId,
                          java.lang.String executable,
                          java.util.Map variables,
                          java.lang.String repository)
Specified by:
executeAction in interface ActionPlugin

activateAction

public void activateAction(java.lang.String userId,
                           java.lang.String executable,
                           java.util.Map variables,
                           java.lang.String repository)
                    throws java.lang.Exception
Specified by:
activateAction in interface ActionPlugin
Throws:
java.lang.Exception

createActivationJob

protected java.lang.Class createActivationJob()
                                       throws java.lang.Exception
Specified by:
createActivationJob in class BaseActionPlugin
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.