Add pattern based search for authorities constrained to zones

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2009-06-22 12:45:00 +00:00
parent 5fe2c1507b
commit de477c27df
6 changed files with 179 additions and 68 deletions

View File

@@ -379,4 +379,25 @@ public interface AuthorityService
*/
@NotAuditable
public Set<String> getDefaultZones();
/**
* Find authorities by pattern matching (* and ?) against the full authority name in a particular zone
* @param type - the authority type
* @param namePattern - the pattern which will be matched against the full authority name.
* @param zone - the zone
* @return the names of the authorities matching the pattern and type.
*/
@Auditable(parameters = {"type"})
public Set<String> findAuthoritiesInZone(AuthorityType type, String namePattern, String zone);
/**
* Find authorities by pattern matching (* and ?) against the authority name.
* @param type - the authority type
* @param shortNamePattern - the pattern which will be matched against the shortName.
* @param zone
* @return the names of the authorities matching the pattern and type.
*/
@Auditable(parameters = {"type"})
public Set<String> findAuthoritiesByShortNameInZone(AuthorityType type, String shortNamePattern, String zone);
}