/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
* -
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* -
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
* -
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
package org.alfresco.module.org_alfresco_module_rm.event;
import java.util.Date;
import org.alfresco.service.cmr.repository.NodeRef;
/**
* Event completion details
*
* @author Roy Wetherall
*/
public class EventCompletionDetails
{
/** node reference */
private NodeRef nodeRef;
/** event name */
private String eventName;
private String eventLabel;
private boolean eventExecutionAutomatic;
private boolean eventComplete;
private Date eventCompletedAt;
private String eventCompletedBy;
/**
* Constructor
*
* @param nodeRef node reference
* @param eventName event name
* @param eventLabel event label
* @param eventExecutionAutomatic indicates whether the event is executed automatically or not
* @param eventComplete indicates whether the event is complete or not
* @param eventCompletedAt when the event was completed
* @param eventCompletedBy who completed the event
*/
public EventCompletionDetails( NodeRef nodeRef,
String eventName,
String eventLabel,
boolean eventExecutionAutomatic,
boolean eventComplete,
Date eventCompletedAt,
String eventCompletedBy)
{
this.nodeRef = nodeRef;
this.eventName = eventName;
this.eventLabel = eventLabel;
this.eventExecutionAutomatic = eventExecutionAutomatic;
this.eventComplete = eventComplete;
this.eventCompletedAt = eventCompletedAt;
this.eventCompletedBy = eventCompletedBy;
}
/**
* @return the node reference
*/
public NodeRef getNodeRef()
{
return nodeRef;
}
/**
* @return the eventName
*/
public String getEventName()
{
return eventName;
}
/**
* @param eventName the eventName to set
*/
public void setEventName(String eventName)
{
this.eventName = eventName;
}
/**
* @return The display label of the event
*/
public String getEventLabel()
{
return this.eventLabel;
}
/**
* @return the eventExecutionAutomatic
*/
public boolean isEventExecutionAutomatic()
{
return eventExecutionAutomatic;
}
/**
* @param eventExecutionAutomatic the eventExecutionAutomatic to set
*/
public void setEventExecutionAutomatic(boolean eventExecutionAutomatic)
{
this.eventExecutionAutomatic = eventExecutionAutomatic;
}
/**
* @return the eventComplete
*/
public boolean isEventComplete()
{
return eventComplete;
}
/**
* @param eventComplete the eventComplete to set
*/
public void setEventComplete(boolean eventComplete)
{
this.eventComplete = eventComplete;
}
/**
* @return the eventCompletedAt
*/
public Date getEventCompletedAt()
{
return eventCompletedAt;
}
/**
* @param eventCompletedAt the eventCompletedAt to set
*/
public void setEventCompletedAt(Date eventCompletedAt)
{
this.eventCompletedAt = eventCompletedAt;
}
/**
* @return the eventCompletedBy
*/
public String getEventCompletedBy()
{
return eventCompletedBy;
}
/**
* @param eventCompletedBy the eventCompletedBy to set
*/
public void setEventCompletedBy(String eventCompletedBy)
{
this.eventCompletedBy = eventCompletedBy;
}
}