com.atlassian.jira.bc.scheme.mapper
Interface SchemeGroupsToRoleTransformerService

All Known Implementing Classes:
DefaultSchemeGroupsToRoleTransformerService

public interface SchemeGroupsToRoleTransformerService

Service to do validation that passes through to a SchemeGroupsToRolesTransformer.


Method Summary
 SchemeTransformResults doTransform(com.opensymphony.user.User currentUser, java.util.List schemes, java.util.Set regularExpressionRoleMappings, ErrorCollection errorCollection)
           
 java.util.Collection getGroupsWithGlobalUsePermission(java.util.Collection groups)
          Accepts a Collection of group names and returns a sub-Collection containing the groups that have been granted the global Permissions.USE permission.
 java.util.Collection getGroupsWithoutGlobalUsePermission(java.util.Collection groups)
          Accepts a Collection of group names and returns a sub-Collection containing the groups that have NOT been granted the global Permissions.USE permission.
 boolean isAnyGroupGrantedGlobalUsePermission(java.util.Collection groups)
          Determines whether one or more of the supplied group names matches a group that's been granted the global Permissions.USE permission
 boolean isGroupGrantedGlobalUsePermission(java.lang.String groupName)
          Determines whether supplied group name matches a group that's been granted the global Permissions.USE permission
 void persistTransformationResults(com.opensymphony.user.User currentUser, SchemeTransformResults schemeTransformResults, ErrorCollection errorCollection)
           
 

Method Detail

doTransform

SchemeTransformResults doTransform(com.opensymphony.user.User currentUser,
                                   java.util.List schemes,
                                   java.util.Set regularExpressionRoleMappings,
                                   ErrorCollection errorCollection)

persistTransformationResults

void persistTransformationResults(com.opensymphony.user.User currentUser,
                                  SchemeTransformResults schemeTransformResults,
                                  ErrorCollection errorCollection)

getGroupsWithGlobalUsePermission

java.util.Collection getGroupsWithGlobalUsePermission(java.util.Collection groups)
Accepts a Collection of group names and returns a sub-Collection containing the groups that have been granted the global Permissions.USE permission.

Parameters:
groups - a Collection of group names (not null, may be empty)
Returns:
a Collection of group names that is a subset of the argument collection, containing only those groups with the USE permission

getGroupsWithoutGlobalUsePermission

java.util.Collection getGroupsWithoutGlobalUsePermission(java.util.Collection groups)
Accepts a Collection of group names and returns a sub-Collection containing the groups that have NOT been granted the global Permissions.USE permission.

Parameters:
groups - a Collection of group names (not null, may be empty)
Returns:
a Collection of group names that is a subset of the argument collection, containing only those groups without the USE permission

isGroupGrantedGlobalUsePermission

boolean isGroupGrantedGlobalUsePermission(java.lang.String groupName)
Determines whether supplied group name matches a group that's been granted the global Permissions.USE permission

Parameters:
groupName - a group name
Returns:
true if the group specified by the name has been granted the USE permission, false otherwise

isAnyGroupGrantedGlobalUsePermission

boolean isAnyGroupGrantedGlobalUsePermission(java.util.Collection groups)
Determines whether one or more of the supplied group names matches a group that's been granted the global Permissions.USE permission

Parameters:
groups - a Collection of group names (not null, may be empty)
Returns:
true if the Collection contains the name of a group that has the USE permission, false otherwise


Copyright © 2002-2010 Atlassian. All Rights Reserved.