use of org.alfresco.service.cmr.quickshare.QuickShareLinkExpiryAction in project alfresco-repository by Alfresco.
the class QuickShareServiceIntegrationTest method getExpiryActionAndAttachSchedule.
private QuickShareLinkExpiryAction getExpiryActionAndAttachSchedule(String sharedId) {
// Check that the expiry action is persisted
QuickShareLinkExpiryAction expiryAction = getExpiryAction(sharedId);
assertNotNull(expiryAction);
assertNotNull("Expiry action should have been persisted.", expiryAction.getNodeRef());
assertNull("The schedule hasn't been attached yet.", expiryAction.getSchedule());
ScheduledPersistedAction scheduledPersistedAction = getSchedule(expiryAction);
assertNotNull("Scheduled action should have been persisted.", scheduledPersistedAction);
// Attach the schedule
expiryAction.setSchedule(scheduledPersistedAction);
return expiryAction;
}
Aggregations