mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALFCOM-2687 Implementing the list invitations web script and unit tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13790 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -653,6 +653,18 @@ public class InvitationServiceImpl implements InvitationService
|
||||
boolean crap = false;
|
||||
for(QName key : keys)
|
||||
{
|
||||
if(key.equals(WorkflowModelNominatedInvitation.WF_PROP_INVITEE_USER_NAME))
|
||||
{
|
||||
Object val1 = wfNominatedQueryProps.get(key);
|
||||
Object val2 = ((NominatedInvitation)result).getInviteeUserName();
|
||||
if (!val1.equals(val2))
|
||||
{
|
||||
// Uh oh ... crap detected
|
||||
crap = true;
|
||||
System.out.println("ALFCOM-2598 key:" + key + "query:" + val1 + "task:" + val2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(key.equals(WorkflowModelNominatedInvitation.WF_PROP_RESOURCE_NAME))
|
||||
{
|
||||
Object val1 = wfNominatedQueryProps.get(key);
|
||||
|
@@ -704,7 +704,7 @@ public class Site implements Serializable
|
||||
}
|
||||
if (props.has("invitationType", props))
|
||||
{
|
||||
String invitationType = (String)props.get("inviteeUserName", props);
|
||||
String invitationType = (String)props.get("invitationType", props);
|
||||
crit.setInvitationType(InvitationType.valueOf(invitationType));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user