Class ProcessSchemePolicyChangeSet
- java.lang.Object
-
- com.sodius.oslc.server.process.scheme.ProcessSchemePolicyChangeSet
-
public class ProcessSchemePolicyChangeSet extends Object
Encapsulates the changes made to aProcessSchemePolicy
.- Since:
- 3.9.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessSchemePolicyChangeSet.ValueChange
Encapsulates the current and/or the previous value of a policy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<ProcessSchemePolicyStore.PolicyKey,ProcessSchemePolicyChangeSet.ValueChange>
getChanges()
Gets the changes made.String
getNewScheme()
Gets the new scheme.String
getOldScheme()
Gets the old scheme.Collection<String>
getProjectAreas()
Gets the impacted project areas.static ProcessSchemePolicyChangeSet
of(String oldScheme, String newScheme, Map<ProcessSchemePolicyStore.PolicyKey,String> policiesToRemove, Map<ProcessSchemePolicyStore.PolicyKey,String> policiesToAdd, Collection<String> projectAreas)
Constructs an instance given a map of policies to add and remove.
-
-
-
Method Detail
-
of
public static ProcessSchemePolicyChangeSet of(String oldScheme, String newScheme, Map<ProcessSchemePolicyStore.PolicyKey,String> policiesToRemove, Map<ProcessSchemePolicyStore.PolicyKey,String> policiesToAdd, Collection<String> projectAreas)
Constructs an instance given a map of policies to add and remove.- Parameters:
oldScheme
- the previous scheme.newScheme
- the current scheme.policiesToRemove
- the policies to remove.policiesToAdd
- the policies to add.projectAreas
- the affected project areas.- Returns:
- the corresponding instance.
-
getOldScheme
public String getOldScheme()
Gets the old scheme.- Returns:
- the old scheme.
-
getNewScheme
public String getNewScheme()
Gets the new scheme.- Returns:
- the new scheme.
-
getProjectAreas
public Collection<String> getProjectAreas()
Gets the impacted project areas.- Returns:
- the impacted project areas.
-
getChanges
public Map<ProcessSchemePolicyStore.PolicyKey,ProcessSchemePolicyChangeSet.ValueChange> getChanges()
Gets the changes made.- Returns:
- the changes made.
-
-