Java Code Examples for org.alfresco.service.cmr.action.Action#getNodeRef()
The following examples show how to use
org.alfresco.service.cmr.action.Action#getNodeRef() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionTrackingServiceImpl.java From alfresco-repository with GNU Lesser General Public License v3.0 | 6 votes |
/** * Builds up the details to be stored in a cache for a specific action */ protected static ExecutionDetails buildExecutionDetails(Action action, NodeRef actionedUponNodeRef) { // Where are we running? if (machineName == null) { try { InetAddress localhost = InetAddress.getLocalHost(); machineName = localhost.getHostAddress() + " : " + localhost.getHostName(); } catch (UnknownHostException e) { machineName = "(machine details unavailable - server IP not known)"; } } // Generate return new ExecutionDetails(buildExecutionSummary(action), action.getNodeRef(), actionedUponNodeRef, machineName, action.getExecutionStartDate(), false); }
Example 2
Source File: ActionImpl.java From alfresco-repository with GNU Lesser General Public License v3.0 | 5 votes |
public ActionImpl(Action action, String actionDefinitionName) { super(action.getId(), action.getParameterValues()); this.actionDefinitionName = actionDefinitionName; this.actionConditions = action.getActionConditions(); this.compensatingAction = action.getCompensatingAction(); this.createdDate = action.getCreatedDate(); this.creator = action.getCreator(); this.description = action.getDescription(); this.trackStatus = action.getTrackStatus(); this.executeAsynchronously = action.getExecuteAsychronously(); this.modifiedDate = action.getModifiedDate(); this.modifier = action.getModifier(); this.nodeRef = action.getNodeRef(); this.title = action.getTitle(); this.executionStartDate = action.getExecutionStartDate(); this.executionEndDate = action.getExecutionEndDate(); this.executionStatus = action.getExecutionStatus(); this.executionFailureMessage = action.getExecutionFailureMessage(); if (action instanceof ActionImpl) { ActionImpl actionImpl = (ActionImpl) action; this.executionInstance = actionImpl.getExecutionInstance(); this.runAsUserName = actionImpl.getRunAsUser(); this.tenantId = actionImpl.getTenantId(); this.actionChain = actionImpl.actionChain; } }
Example 3
Source File: ScheduledPersistedActionServiceImpl.java From alfresco-repository with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ScheduledPersistedAction getSchedule(Action persistedAction) { NodeRef nodeRef = persistedAction.getNodeRef(); return getSchedule(nodeRef); }