mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125605 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125498 slanglois: MNT-16155 Update source headers - remove svn:eol-style property on Java and JSP source files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,102 +1,102 @@
|
||||
package org.alfresco.repo.invitation;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.cmr.invitation.Invitation;
|
||||
import org.alfresco.service.cmr.invitation.Invitation.InvitationType;
|
||||
import org.alfresco.service.cmr.invitation.Invitation.ResourceType;
|
||||
|
||||
/* package scope */ abstract class InvitationImpl
|
||||
{
|
||||
public static final String ID_KEY = "id";
|
||||
public static final String INVITEE_KEY = "invitee";
|
||||
public static final String RESOURCE_NAME_KEY = "resourceName";
|
||||
public static final String RESOURCE_TYPE_KEY = "resourceType";
|
||||
public static final String ROLE_KEY = "role";
|
||||
public static final String CREATED_AT = "createdAt";
|
||||
public static final String MODIFIED_AT = "modifiedAt";
|
||||
|
||||
/**
|
||||
* Unique reference for this invitation
|
||||
*/
|
||||
private final String inviteId;
|
||||
|
||||
/**
|
||||
* Which resource is this invitation for ?
|
||||
*/
|
||||
private final String resourceName;
|
||||
|
||||
/**
|
||||
* What sort of invitation is this invitation for e.g. WEB_SITE or WEB_PROJECT
|
||||
*/
|
||||
private final Invitation.ResourceType resourceType;
|
||||
|
||||
/**
|
||||
* What role is the invitation for.
|
||||
*/
|
||||
private final String roleName;
|
||||
|
||||
/**
|
||||
* Who is this invitation for
|
||||
*/
|
||||
private final String inviteeUserName;
|
||||
|
||||
private final Date createdAt;
|
||||
|
||||
private final Date modifiedAt;
|
||||
|
||||
public InvitationImpl(Map<String, Serializable> props)
|
||||
{
|
||||
this.inviteId = (String)props.get(ID_KEY);
|
||||
this.inviteeUserName = (String)props.get(INVITEE_KEY);
|
||||
this.resourceName = (String)props.get(RESOURCE_NAME_KEY);
|
||||
this.roleName = (String)props.get(ROLE_KEY);
|
||||
String type = (String)props.get(RESOURCE_TYPE_KEY);
|
||||
this.resourceType = type==null ? ResourceType.WEB_SITE : ResourceType.valueOf(type);
|
||||
this.createdAt = (Date)props.get(CREATED_AT);
|
||||
this.modifiedAt = (Date)props.get(MODIFIED_AT);
|
||||
}
|
||||
|
||||
/**
|
||||
* What sort of resource is it
|
||||
* @return the resource type
|
||||
*/
|
||||
public ResourceType getResourceType()
|
||||
{
|
||||
return resourceType;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public Date getModifiedAt()
|
||||
{
|
||||
return modifiedAt;
|
||||
}
|
||||
|
||||
public String getInviteId()
|
||||
{
|
||||
return inviteId;
|
||||
}
|
||||
|
||||
public String getResourceName()
|
||||
{
|
||||
return resourceName;
|
||||
}
|
||||
|
||||
public String getRoleName()
|
||||
{
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public String getInviteeUserName()
|
||||
{
|
||||
return inviteeUserName;
|
||||
}
|
||||
|
||||
public abstract InvitationType getInvitationType();
|
||||
}
|
||||
package org.alfresco.repo.invitation;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.cmr.invitation.Invitation;
|
||||
import org.alfresco.service.cmr.invitation.Invitation.InvitationType;
|
||||
import org.alfresco.service.cmr.invitation.Invitation.ResourceType;
|
||||
|
||||
/* package scope */ abstract class InvitationImpl
|
||||
{
|
||||
public static final String ID_KEY = "id";
|
||||
public static final String INVITEE_KEY = "invitee";
|
||||
public static final String RESOURCE_NAME_KEY = "resourceName";
|
||||
public static final String RESOURCE_TYPE_KEY = "resourceType";
|
||||
public static final String ROLE_KEY = "role";
|
||||
public static final String CREATED_AT = "createdAt";
|
||||
public static final String MODIFIED_AT = "modifiedAt";
|
||||
|
||||
/**
|
||||
* Unique reference for this invitation
|
||||
*/
|
||||
private final String inviteId;
|
||||
|
||||
/**
|
||||
* Which resource is this invitation for ?
|
||||
*/
|
||||
private final String resourceName;
|
||||
|
||||
/**
|
||||
* What sort of invitation is this invitation for e.g. WEB_SITE or WEB_PROJECT
|
||||
*/
|
||||
private final Invitation.ResourceType resourceType;
|
||||
|
||||
/**
|
||||
* What role is the invitation for.
|
||||
*/
|
||||
private final String roleName;
|
||||
|
||||
/**
|
||||
* Who is this invitation for
|
||||
*/
|
||||
private final String inviteeUserName;
|
||||
|
||||
private final Date createdAt;
|
||||
|
||||
private final Date modifiedAt;
|
||||
|
||||
public InvitationImpl(Map<String, Serializable> props)
|
||||
{
|
||||
this.inviteId = (String)props.get(ID_KEY);
|
||||
this.inviteeUserName = (String)props.get(INVITEE_KEY);
|
||||
this.resourceName = (String)props.get(RESOURCE_NAME_KEY);
|
||||
this.roleName = (String)props.get(ROLE_KEY);
|
||||
String type = (String)props.get(RESOURCE_TYPE_KEY);
|
||||
this.resourceType = type==null ? ResourceType.WEB_SITE : ResourceType.valueOf(type);
|
||||
this.createdAt = (Date)props.get(CREATED_AT);
|
||||
this.modifiedAt = (Date)props.get(MODIFIED_AT);
|
||||
}
|
||||
|
||||
/**
|
||||
* What sort of resource is it
|
||||
* @return the resource type
|
||||
*/
|
||||
public ResourceType getResourceType()
|
||||
{
|
||||
return resourceType;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public Date getModifiedAt()
|
||||
{
|
||||
return modifiedAt;
|
||||
}
|
||||
|
||||
public String getInviteId()
|
||||
{
|
||||
return inviteId;
|
||||
}
|
||||
|
||||
public String getResourceName()
|
||||
{
|
||||
return resourceName;
|
||||
}
|
||||
|
||||
public String getRoleName()
|
||||
{
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public String getInviteeUserName()
|
||||
{
|
||||
return inviteeUserName;
|
||||
}
|
||||
|
||||
public abstract InvitationType getInvitationType();
|
||||
}
|
||||
|
Reference in New Issue
Block a user