Package org.forgerock.am.cts.api.tokens
Class TokenModifications
java.lang.Object
org.forgerock.am.cts.api.tokens.TokenModifications
Describes the possible modifications that can be applied as part of the
CTSPersistentStore
patch operation.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Contains equivalent values for the ModificationType values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a modification to this token modification set.Returns a map of the set of modifications listed under this modification type.Returns a map of all the modifications in this object.
-
Constructor Details
-
TokenModifications
public TokenModifications()Construct a new TokenModifications.
-
-
Method Details
-
addModifications
public void addModifications(TokenModifications.TokenModificationType type, Map<CoreTokenField, Object> entry) Add a modification to this token modification set.- Parameters:
type
- The type of modification to make.entry
- The set of changes to make of this modification type.
-
getModificationOfType
public Map<CoreTokenField,Object> getModificationOfType(TokenModifications.TokenModificationType type) Returns a map of the set of modifications listed under this modification type.- Parameters:
type
- The type of modification to perform.- Returns:
- The map of modifications listed under that type.
-
getModifications
Returns a map of all the modifications in this object.- Returns:
- The full map of modifications.
-