* minor changes

This commit is contained in:
dhrn
2020-11-04 12:19:58 +05:30
parent 73081e43e5
commit 33b43ba93f
3 changed files with 35 additions and 28 deletions

View File

@@ -73,7 +73,7 @@ import org.alfresco.service.cmr.invitation.Invitation.ResourceType;
private final Date modifiedAt;
private final Date clientName;
private final String clientName;
public InvitationImpl(Map<String, Serializable> props)
{
@@ -85,7 +85,7 @@ import org.alfresco.service.cmr.invitation.Invitation.ResourceType;
this.resourceType = type==null ? ResourceType.WEB_SITE : ResourceType.valueOf(type);
this.createdAt = (Date)props.get(CREATED_AT);
this.modifiedAt = (Date)props.get(MODIFIED_AT);
this.clientName = (Date)props.get(CLIENT_NAME);
this.clientName = (String)props.get(CLIENT_NAME);
}
/**
@@ -127,7 +127,7 @@ import org.alfresco.service.cmr.invitation.Invitation.ResourceType;
return inviteeUserName;
}
public Date getClientName()
public String getClientName()
{
return clientName;
}

View File

@@ -97,4 +97,10 @@ public interface Invitation
Date getCreatedAt();
Date getModifiedAt();
/**
* Which client to be sent
* @return the clientName
*/
String getClientName();
}

View File

@@ -1040,6 +1040,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
assertEquals("comments", comments, invitation.getInviteeComments());
assertEquals("resource type name wrong", resourceType, invitation.getResourceType());
assertEquals("resource name wrong", resourceName, invitation.getResourceName());
assertEquals("client name wrong", "workspace", invitation.getClientName());
/**
* Now we have an invitation get it and check the details have been