HEAD test/build fix (eg. ChainingUserRegistrySynchronizerTest)

- running on Oracle ... Error setting null parameter ... Caused by: java.sql.SQLException: Invalid column type: 1111
- fix GetAuthorities CQ (typo in AuthorityDAOImpl + container is mandatory)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28698 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2011-06-29 15:12:14 +00:00
parent 43757d8cb6
commit d02b78187e
2 changed files with 7 additions and 14 deletions

View File

@@ -1019,7 +1019,7 @@ public class AuthorityDAOImpl implements AuthorityDAO, NodeServicePolicies.Befor
NodeRef zoneRef = getZone(zoneName);
if (zoneRef == null)
{
Collections.emptySet();
return Collections.emptySet();
}
return new HashSet<String>(getAuthoritiesImpl(type, zoneRef, null, false, false, new PagingRequest(0, Integer.MAX_VALUE, null)).getPage());
}

View File

@@ -90,26 +90,19 @@ public class GetAuthoritiesCannedQueryFactory extends AbstractCannedQueryFactory
public CannedQuery<AuthorityInfo> getCannedQuery(AuthorityType type, NodeRef containerRef, String displayNameFilter, boolean sortByDisplayName, boolean sortAscending, PagingRequest pagingRequest)
{
ParameterCheck.mandatory("containerRef", containerRef);
ParameterCheck.mandatory("pagingRequest", pagingRequest);
if ((type == null) && (containerRef == null))
{
throw new IllegalArgumentException("Type and/or containerRef required - both cannot be null");
}
int requestTotalCountMax = pagingRequest.getRequestTotalCountMax();
Long containerNodeId = null;
if (containerRef != null)
Pair<Long, NodeRef> nodePair = nodeDAO.getNodePair(tenantService.getName(containerRef));
if (nodePair == null)
{
Pair<Long, NodeRef> nodePair = nodeDAO.getNodePair(tenantService.getName(containerRef));
if (nodePair == null)
{
throw new InvalidNodeRefException("Container ref does not exist: " + containerRef, containerRef);
}
containerNodeId = nodePair.getFirst();
throw new InvalidNodeRefException("Container ref does not exist: " + containerRef, containerRef);
}
Long containerNodeId = nodePair.getFirst();
// specific query params
GetAuthoritiesCannedQueryParams paramBean = new GetAuthoritiesCannedQueryParams(type,
containerNodeId,