mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Action/Rule decoupling work
- Updated web services, SDK and web client where appropraite - Patch added to migrate existing rules - Entire rule service can now be disabled programmatically - Rule service is now disabled during the patching process - StoreEnum and languageEnum types removed from web service interfaces - Multiple rule types now supported in the repo (but not in the UI) - Removed owning node ref from action and rule .. now calculated from methods on the rule service git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3464 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,6 +40,9 @@ public class ActionImpl extends ParameterizedItemImpl
|
||||
*/
|
||||
private static final long serialVersionUID = 3258135760426186548L;
|
||||
|
||||
/** The node reference for the action */
|
||||
private NodeRef nodeRef;
|
||||
|
||||
/**
|
||||
* The title
|
||||
*/
|
||||
@@ -90,11 +93,6 @@ public class ActionImpl extends ParameterizedItemImpl
|
||||
*/
|
||||
private String runAsUserName;
|
||||
|
||||
/**
|
||||
* The owning node reference
|
||||
*/
|
||||
private NodeRef owningNodeRef;
|
||||
|
||||
/**
|
||||
* The chain of actions that have lead to this action
|
||||
*/
|
||||
@@ -108,30 +106,32 @@ public class ActionImpl extends ParameterizedItemImpl
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param nodeRef the action node reference (null if not saved)
|
||||
* @param id the action id
|
||||
* @param actionDefinitionName the name of the action definition
|
||||
*/
|
||||
public ActionImpl(String id, String actionDefinitionName, NodeRef owningNodeRef)
|
||||
public ActionImpl(NodeRef nodeRef, String id, String actionDefinitionName)
|
||||
{
|
||||
this(id, actionDefinitionName, owningNodeRef, null);
|
||||
this(nodeRef, id, actionDefinitionName, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param nodeRef the action node reference (null if not saved)
|
||||
* @param id the action id
|
||||
* @param actionDefinitionName the action definition name
|
||||
* @param parameterValues the parameter values
|
||||
*/
|
||||
public ActionImpl(
|
||||
NodeRef nodeRef,
|
||||
String id,
|
||||
String actionDefinitionName,
|
||||
NodeRef owningNodeRef,
|
||||
Map<String, Serializable> parameterValues)
|
||||
{
|
||||
super(id, parameterValues);
|
||||
this.nodeRef = nodeRef;
|
||||
this.actionDefinitionName = actionDefinitionName;
|
||||
this.owningNodeRef = owningNodeRef;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -165,19 +165,6 @@ public class ActionImpl extends ParameterizedItemImpl
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.service.cmr.action.Action#getOwningNodeRef()
|
||||
*/
|
||||
public NodeRef getOwningNodeRef()
|
||||
{
|
||||
return this.owningNodeRef;
|
||||
}
|
||||
|
||||
public void setOwningNodeRef(NodeRef owningNodeRef)
|
||||
{
|
||||
this.owningNodeRef = owningNodeRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.service.cmr.action.Action#getExecuteAsychronously()
|
||||
@@ -392,4 +379,22 @@ public class ActionImpl extends ParameterizedItemImpl
|
||||
{
|
||||
this.runAsUserName = runAsUserName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.service.cmr.action.Action#getNodeRef()
|
||||
*/
|
||||
public NodeRef getNodeRef()
|
||||
{
|
||||
return this.nodeRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the node reference
|
||||
*
|
||||
* @param nodeRef the node reference
|
||||
*/
|
||||
public void setNodeRef(NodeRef nodeRef)
|
||||
{
|
||||
this.nodeRef = nodeRef;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user