Java Code Examples for org.alfresco.service.cmr.action.Action#getActionDefinitionName()

The following examples show how to use org.alfresco.service.cmr.action.Action#getActionDefinitionName() . 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: RunningAction.java    From alfresco-repository with GNU Lesser General Public License v3.0 5 votes vote down vote up
/**
 * @param action The action being run
 */
public RunningAction(Action action)
{
    this.name = action.getActionDefinitionName();
    this.started = new Date(); 
    this.thread = Thread.currentThread();
}
 
Example 2
Source File: ActionTrackingServiceImpl.java    From alfresco-repository with GNU Lesser General Public License v3.0 5 votes vote down vote up
public List<ExecutionSummary> getExecutingActions(Action action)
{
    Collection<String> actions = executingActionsCache.getKeys();
    List<ExecutionSummary> details = new ArrayList<ExecutionSummary>();
    String match = action.getActionDefinitionName() + cacheKeyPartSeparator + action.getId()
            + cacheKeyPartSeparator;
    for (String key : actions)
    {
        if (key.startsWith(match))
        {
            details.add(buildExecutionSummary(key));
        }
    }
    return details;
}
 
Example 3
Source File: ActionTrackingServiceImpl.java    From alfresco-repository with GNU Lesser General Public License v3.0 4 votes vote down vote up
/**
 * Generates the cache key for the specified action.
 */
protected static String generateCacheKey(Action action)
{
    return action.getActionDefinitionName() + cacheKeyPartSeparator + action.getId()
            + cacheKeyPartSeparator + ((ActionImpl) action).getExecutionInstance();
}
 
Example 4
Source File: ActionTrackingServiceImpl.java    From alfresco-repository with GNU Lesser General Public License v3.0 4 votes vote down vote up
protected static ExecutionSummary buildExecutionSummary(Action action)
{
    return new ExecutionSummary(action.getActionDefinitionName(), action.getId(),
            ((ActionImpl) action).getExecutionInstance());
}
 
Example 5
Source File: ActionImpl.java    From alfresco-repository with GNU Lesser General Public License v3.0 4 votes vote down vote up
public ActionImpl(Action action)
{
    this(action, action.getActionDefinitionName());
}