mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 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/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
70 lines
1.8 KiB
Java
70 lines
1.8 KiB
Java
|
|
package org.alfresco.repo.invitation.script;
|
|
|
|
import java.util.Date;
|
|
|
|
import org.alfresco.service.cmr.invitation.InvitationService;
|
|
import org.alfresco.service.cmr.invitation.NominatedInvitation;
|
|
import org.springframework.extensions.surf.util.ISO8601DateFormat;
|
|
|
|
/**
|
|
* Java script moderated invitation for the Java Script API
|
|
*
|
|
* @author mrogers
|
|
*/
|
|
public class ScriptNominatedInvitation extends ScriptInvitation<NominatedInvitation> implements java.io.Serializable
|
|
{
|
|
private static final long serialVersionUID = 6079656007339750930L;
|
|
|
|
public ScriptNominatedInvitation(NominatedInvitation invitation, InvitationService invitationService)
|
|
{
|
|
super(invitation, invitationService);
|
|
}
|
|
|
|
/**
|
|
* @see org.alfresco.service.cmr.invitation.NominatedInvitation#getInviteeEmail()
|
|
*/
|
|
@Override
|
|
public String getInviteeEmail()
|
|
{
|
|
return getInvitation().getInviteeEmail();
|
|
}
|
|
|
|
/**
|
|
* @see org.alfresco.service.cmr.invitation.NominatedInvitation#getInviteeFirstName()
|
|
*/
|
|
@Override
|
|
public String getInviteeFirstName()
|
|
{
|
|
return getInvitation().getInviteeFirstName();
|
|
}
|
|
|
|
/**
|
|
* @see org.alfresco.service.cmr.invitation.NominatedInvitation#getInviteeLastName()
|
|
*/
|
|
@Override
|
|
public String getInviteeLastName()
|
|
{
|
|
return getInvitation().getInviteeLastName();
|
|
}
|
|
|
|
public void accept(String reason)
|
|
{
|
|
getInvitationService().accept(getInviteId(), reason);
|
|
}
|
|
|
|
/**
|
|
* Which role to be added with
|
|
* @return the roleName
|
|
*/
|
|
public Date getSentInviteDate()
|
|
{
|
|
return getInvitation().getSentInviteDate();
|
|
}
|
|
|
|
public String getSentInviteDateAsISO8601()
|
|
{
|
|
return ISO8601DateFormat.format(getSentInviteDate());
|
|
}
|
|
|
|
} |