|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.scheme.mapper.SchemeTransformResult
public class SchemeTransformResult
This class represents the result of a single GroupToRole transform as performed by the SchemeGroupsToRolesTransformer
. NOTE: this object is statefull and is NOT threadsafe.
Constructor Summary | |
---|---|
SchemeTransformResult(Scheme originalScheme)
|
Method Summary | |
---|---|
void |
addRoleMappingForGroup(GroupToRoleMapping groupToRoleMapping,
com.atlassian.crowd.embedded.api.Group group)
This creates an association between a groupName and a ProjectRole . |
Collection |
getAssociatedProjects()
Gets all the associated Project 's for the originalScheme. |
Scheme |
getOriginalScheme()
The original scheme that was the template for the transform operation. |
Scheme |
getResultingScheme()
|
Collection |
getRoleToGroupsMappings()
This will return all the RoleToGroupsMapping 's that are defined for this scheme transformation. |
Scheme |
getTransformedScheme()
Gets the resulting Scheme from the transform operation. |
boolean |
originalSchemeTransformed()
|
void |
setAssociatedProjects(Collection projects)
|
void |
setResultingScheme(Scheme resultingScheme)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemeTransformResult(Scheme originalScheme)
Method Detail |
---|
public boolean originalSchemeTransformed()
public Scheme getTransformedScheme()
Scheme
from the transform operation. NOTE: this scheme does not exist within the
persistent store.
public Scheme getOriginalScheme()
public Collection getAssociatedProjects()
Project
's for the originalScheme.
Project
's, empty list if there are none.public void setAssociatedProjects(Collection projects)
public void addRoleMappingForGroup(GroupToRoleMapping groupToRoleMapping, com.atlassian.crowd.embedded.api.Group group)
ProjectRole
. The ProjectRole is defined in the
passed in GroupToRoleMapping
.
groupToRoleMapping
- defineds the ProjectRole
to associate withgroup
- the group to associate withpublic Collection getRoleToGroupsMappings()
RoleToGroupsMapping
's that are defined for this scheme transformation.
Group
objects, and Empty collection if there are no mappings.public Scheme getResultingScheme()
public void setResultingScheme(Scheme resultingScheme)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |