Package org.opends.server.types
Class Modification
- java.lang.Object
-
- org.opends.server.types.Modification
-
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class Modification extends Object
This class defines a data structure for storing and interacting with a modification that may be requested of an entry in the Directory Server.
-
-
Constructor Summary
Constructors Constructor Description Modification(ModificationType modificationType, Attribute attribute)Creates a new modification with the provided information.Modification(ModificationType modificationType, Attribute attribute, boolean isInternal)Creates a new modification with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Indicates whether the provided object is equal to this modification.AttributegetAttribute()Retrieves the attribute for this modification.ModificationTypegetModificationType()Retrieves the modification type for this modification.inthashCode()Retrieves the hash code for this modification.booleanisInternal()Indicates whether this is modification was created by internal processing and should not be subject to no-user-modification and related checks.voidsetAttribute(Attribute attribute)Specifies the attribute for this modification.voidsetInternal(boolean isInternal)Specifies whether this modification was created by internal processing and should not be subject to no-user-modification and related checks.voidsetModificationType(ModificationType modificationType)Specifies the modification type for this modification.StringtoString()Retrieves a one-line string representation of this modification.
-
-
-
Constructor Detail
-
Modification
public Modification(ModificationType modificationType, Attribute attribute)
Creates a new modification with the provided information.- Parameters:
modificationType- The modification type for this modification.attribute- The attribute for this modification.
-
Modification
public Modification(ModificationType modificationType, Attribute attribute, boolean isInternal)
Creates a new modification with the provided information.- Parameters:
modificationType- The modification type for this modification.attribute- The attribute for this modification.isInternal- Indicates whether this is an internal modification and therefore should not be subject to no-user-modification and related checks.
-
-
Method Detail
-
getModificationType
public ModificationType getModificationType()
Retrieves the modification type for this modification.- Returns:
- The modification type for this modification.
-
setModificationType
@PublicAPI(stability=PRIVATE, mayInstantiate=false, mayExtend=false, mayInvoke=false) public void setModificationType(ModificationType modificationType)
Specifies the modification type for this modification.- Parameters:
modificationType- The modification type for this modification.
-
getAttribute
public Attribute getAttribute()
Retrieves the attribute for this modification.- Returns:
- The attribute for this modification.
-
setAttribute
@PublicAPI(stability=PRIVATE, mayInstantiate=false, mayExtend=false, mayInvoke=false) public void setAttribute(Attribute attribute)
Specifies the attribute for this modification.- Parameters:
attribute- The attribute for this modification.
-
isInternal
public boolean isInternal()
Indicates whether this is modification was created by internal processing and should not be subject to no-user-modification and related checks.- Returns:
trueif this is an internal modification, orfalseif not.
-
setInternal
public void setInternal(boolean isInternal)
Specifies whether this modification was created by internal processing and should not be subject to no-user-modification and related checks.- Parameters:
isInternal- Specifies whether this modification was created by internal processing and should not be subject to no-user-modification and related checks.
-
equals
public boolean equals(Object o)
Indicates whether the provided object is equal to this modification. It will only be considered equal if the object is a modification with the same modification type and an attribute that is equal to this modification.
-
hashCode
public int hashCode()
Retrieves the hash code for this modification. The hash code returned will be the hash code for the attribute included in this modification.
-
-