mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Status Updates can now be sent when publishing content to a channel.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28392 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@ import java.util.Date;
|
||||
import org.alfresco.service.cmr.publishing.MutablePublishingEvent;
|
||||
import org.alfresco.service.cmr.publishing.PublishingEvent;
|
||||
import org.alfresco.service.cmr.publishing.PublishingPackage;
|
||||
import org.alfresco.service.cmr.publishing.StatusUpdate;
|
||||
|
||||
/**
|
||||
* @author Nick Smith
|
||||
@@ -41,6 +42,7 @@ public class PublishingEventImpl implements PublishingEvent
|
||||
private final String creator;
|
||||
private final Date modifiedTime;
|
||||
private final String modifier;
|
||||
private final StatusUpdate statusUpdate;
|
||||
protected final Calendar scheduledTime;
|
||||
protected String comment;
|
||||
|
||||
@@ -48,7 +50,8 @@ public class PublishingEventImpl implements PublishingEvent
|
||||
Status status, String channelName,
|
||||
PublishingPackage publishingPackage,Date createdTime,
|
||||
String creator, Date modifiedTime,
|
||||
String modifier, Calendar scheduledTime, String comment)
|
||||
String modifier, Calendar scheduledTime, String comment,
|
||||
StatusUpdate statusUpdate)
|
||||
{
|
||||
this.id = id;
|
||||
this.status = status;
|
||||
@@ -60,6 +63,7 @@ public class PublishingEventImpl implements PublishingEvent
|
||||
this.modifier = modifier;
|
||||
this.scheduledTime = scheduledTime;
|
||||
this.comment = comment;
|
||||
this.statusUpdate = statusUpdate;
|
||||
}
|
||||
|
||||
public PublishingEventImpl(PublishingEvent event)
|
||||
@@ -68,7 +72,8 @@ public class PublishingEventImpl implements PublishingEvent
|
||||
event.getStatus(), event.getChannelName(),
|
||||
event.getPackage(), event.getCreatedTime(),
|
||||
event.getCreator(), event.getModifiedTime(),
|
||||
event.getModifier(), event.getScheduledTime(), event.getComment());
|
||||
event.getModifier(), event.getScheduledTime(), event.getComment(),
|
||||
event.getStatusUpdate());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -160,6 +165,15 @@ public class PublishingEventImpl implements PublishingEvent
|
||||
return comment;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public StatusUpdate getStatusUpdate()
|
||||
{
|
||||
return statusUpdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user