mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@125603 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
53 lines
1.1 KiB
Java
53 lines
1.1 KiB
Java
|
|
package org.alfresco.repo.publishing;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
import org.alfresco.service.cmr.publishing.StatusUpdate;
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
|
|
/**
|
|
* @author Nick Smith
|
|
* @since 4.0
|
|
*/
|
|
public class StatusUpdateImpl implements StatusUpdate
|
|
{
|
|
private final String message;
|
|
private final NodeRef nodeToLinkTo;
|
|
private final Set<String> channelNames;
|
|
|
|
public StatusUpdateImpl(String message, NodeRef nodeToLinkTo, Collection<String> channelNames)
|
|
{
|
|
this.message = message;
|
|
this.nodeToLinkTo = nodeToLinkTo;
|
|
this.channelNames = Collections.unmodifiableSet(new HashSet<String>(channelNames));
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public String getMessage()
|
|
{
|
|
return message;
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public Set<String> getChannelIds()
|
|
{
|
|
return channelNames;
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public NodeRef getNodeToLinkTo()
|
|
{
|
|
return nodeToLinkTo;
|
|
}
|
|
}
|