mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Tests for the new CapabilityService methods and CustomEMailMappingService methods
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@44389 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -109,7 +109,7 @@ public interface CapabilityService
|
||||
* @param groupId The id of a group for which the list of capabilities should be retrieved
|
||||
* @return {@link List}<{@link Capability}> List of capabilities for the given group
|
||||
*/
|
||||
List<Capability> getCapabilitiesByGroup(String groupId);
|
||||
List<Capability> getCapabilitiesByGroupId(String groupId);
|
||||
|
||||
/**
|
||||
* Get a list of capabilities for the given group
|
||||
|
@@ -199,10 +199,10 @@ public class CapabilityServiceImpl implements CapabilityService
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.capability.CapabilityService#getCapabilitiesByGroup(java.lang.String)
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.capability.CapabilityService#getCapabilitiesByGroupId(java.lang.String)
|
||||
*/
|
||||
@Override
|
||||
public List<Capability> getCapabilitiesByGroup(String groupId)
|
||||
public List<Capability> getCapabilitiesByGroupId(String groupId)
|
||||
{
|
||||
ParameterCheck.mandatoryString("groupId", groupId);
|
||||
|
||||
@@ -241,7 +241,7 @@ public class CapabilityServiceImpl implements CapabilityService
|
||||
{
|
||||
ParameterCheck.mandatory("group", group);
|
||||
|
||||
return getCapabilitiesByGroup(group.getId());
|
||||
return getCapabilitiesByGroupId(group.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -19,7 +19,6 @@
|
||||
package org.alfresco.module.org_alfresco_module_rm.script.capability;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
@@ -109,7 +108,7 @@ public class CapabilitiesGet extends DeclarativeWebScript
|
||||
{
|
||||
String capabilityGroupId = group.getId();
|
||||
|
||||
List<Capability> capabilities = capabilityService.getCapabilitiesByGroup(capabilityGroupId);
|
||||
List<Capability> capabilities = capabilityService.getCapabilitiesByGroupId(capabilityGroupId);
|
||||
for (Capability capability : capabilities)
|
||||
{
|
||||
String capabilityName = capability.getName();
|
||||
|
Reference in New Issue
Block a user