Package org.forgerock.am.cts.api.tokens
Class TokenModifications
- java.lang.Object
-
- org.forgerock.am.cts.api.tokens.TokenModifications
-
public class TokenModifications extends Object
Describes the possible modifications that can be applied as part of theCTSPersistentStore
patch operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenModifications.TokenModificationType
Contains equivalent values for the ModificationType values.
-
Constructor Summary
Constructors Constructor Description TokenModifications()
Construct a new TokenModifications.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addModifications(TokenModifications.TokenModificationType type, Map<CoreTokenField,Object> entry)
Add a modification to this token modification set.Map<CoreTokenField,Object>
getModificationOfType(TokenModifications.TokenModificationType type)
Returns a map of the set of modifications listed under this modification type.Map<TokenModifications.TokenModificationType,Map<CoreTokenField,Object>>
getModifications()
Returns a map of all the modifications in this object.
-
-
-
Method Detail
-
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
public Map<TokenModifications.TokenModificationType,Map<CoreTokenField,Object>> getModifications()
Returns a map of all the modifications in this object.- Returns:
- The full map of modifications.
-
-