Search in sources :

Example 1 with NodeUnlockedEvent

use of org.alfresco.sync.events.types.NodeUnlockedEvent in project alfresco-repository by Alfresco.

the class EventsServiceImpl method nodeUnlocked.

@Override
public void nodeUnlocked(NodeRef nodeRef) {
    NodeInfo nodeInfo = getNodeInfo(nodeRef, NodeUnlockedEvent.EVENT_TYPE);
    if (nodeInfo.checkNodeInfo()) {
        NodeUnlockedEvent event = new NodeUnlockedEvent(nextSequenceNumber(), nodeInfo.getName(), AlfrescoTransactionSupport.getTransactionId(), System.currentTimeMillis(), TenantUtil.getCurrentDomain(), nodeInfo.getSiteId(), nodeInfo.getNodeId(), nodeInfo.getType().toPrefixString(namespaceService), nodeInfo.getPaths(), nodeInfo.getParentNodeIds(), AuthenticationUtil.getFullyAuthenticatedUser(), nodeInfo.getModificationTimestamp(), getAlfrescoClient(nodeInfo.getClient()), nodeInfo.getAspectsAsStrings(), nodeInfo.getProperties());
        sendEvent(event);
    }
}
Also used : NodeUnlockedEvent(org.alfresco.sync.events.types.NodeUnlockedEvent)

Aggregations

NodeUnlockedEvent (org.alfresco.sync.events.types.NodeUnlockedEvent)1