Class ProcessSchemePolicyChangeSet
java.lang.Object
com.sodius.oslc.server.process.scheme.ProcessSchemePolicyChangeSet
Encapsulates the changes made to a
ProcessSchemePolicy.- Since:
- 3.9.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEncapsulates the current and/or the previous value of a policy. -
Method Summary
Modifier and TypeMethodDescriptionGets the changes made.Gets the new scheme.Gets the old scheme.Gets the impacted project areas.static ProcessSchemePolicyChangeSetof(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 Details
-
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
Gets the old scheme.- Returns:
- the old scheme.
-
getNewScheme
Gets the new scheme.- Returns:
- the new scheme.
-
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.
-