mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
* minor changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -1,28 +1,28 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Repository
|
||||
* %%
|
||||
* 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%
|
||||
*/
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Repository
|
||||
* %%
|
||||
* 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.service.cmr.invitation;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -97,4 +97,10 @@ public interface Invitation
|
||||
Date getCreatedAt();
|
||||
|
||||
Date getModifiedAt();
|
||||
|
||||
/**
|
||||
* Which client to be sent
|
||||
* @return the clientName
|
||||
*/
|
||||
String getClientName();
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user