use of org.alfresco.repo.event.v1.model.EventData in project alfresco-repository by Alfresco.
the class AbstractContextAwareRepoEvent method getNodeResourceBefore.
protected NodeResource getNodeResourceBefore(int eventSequenceNumber) {
DataAttributes<NodeResource> eventData = getEventData(eventSequenceNumber);
NodeResource resourceBefore = eventData.getResourceBefore();
assertNotNull(resourceBefore);
return resourceBefore;
}
use of org.alfresco.repo.event.v1.model.EventData in project alfresco-repository by Alfresco.
the class AbstractContextAwareRepoEvent method getNodeResourceBefore.
protected <D extends DataAttributes<NodeResource>> NodeResource getNodeResourceBefore(RepoEvent<D> repoEvent) {
assertNotNull(repoEvent);
D eventData = repoEvent.getData();
assertNotNull(eventData);
NodeResource resourceBefore = eventData.getResourceBefore();
assertNotNull(resourceBefore);
return resourceBefore;
}
use of org.alfresco.repo.event.v1.model.EventData in project alfresco-repository by Alfresco.
the class AbstractContextAwareRepoEvent method getChildAssocResource.
protected <D extends DataAttributes<ChildAssociationResource>> ChildAssociationResource getChildAssocResource(RepoEvent<D> repoEvent) {
assertNotNull(repoEvent);
D eventData = repoEvent.getData();
assertNotNull(eventData);
ChildAssociationResource resource = eventData.getResource();
assertNotNull(resource);
return resource;
}
use of org.alfresco.repo.event.v1.model.EventData in project alfresco-repository by Alfresco.
the class AbstractContextAwareRepoEvent method getNodeResource.
protected <D extends DataAttributes<NodeResource>> NodeResource getNodeResource(RepoEvent<D> repoEvent) {
assertNotNull(repoEvent);
D eventData = getEventData(repoEvent);
assertNotNull(eventData);
NodeResource resource = eventData.getResource();
assertNotNull(resource);
return resource;
}
use of org.alfresco.repo.event.v1.model.EventData in project alfresco-repository by Alfresco.
the class AbstractContextAwareRepoEvent method getNodeResource.
protected NodeResource getNodeResource(int eventSequenceNumber) {
DataAttributes<NodeResource> eventData = getEventData(eventSequenceNumber);
NodeResource resource = eventData.getResource();
assertNotNull(resource);
return resource;
}
Aggregations