Class ObjectValueContainer
java.lang.Object
de.hybris.platform.cockpit.services.values.ObjectValueContainer
- All Implemented Interfaces:
Cloneable
Holds a set of property values for a specified object described by a
object type and its
descriptors.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassEncapsulates a single property value. -
Constructor Summary
ConstructorsConstructorDescriptionObjectValueContainer(ObjectType type, Object object) ObjectValueContainer(ObjectType type, Object object, Set<PropertyDescriptor> descriptorsToLoad, Set<String> languagesToLoad, ObjectValueLazyLoader lazyLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(PropertyDescriptor propertyDescriptor, String languageIso, Object originalValue) clone()Returns modified value holders.Returns the object which this container holds values for.getType()Returns the object type of the associated object.getValue(PropertyDescriptor propertyDescriptor, String languageIso) booleanbooleanhasProperty(PropertyDescriptor propertyDescriptor) booleanhasProperty(PropertyDescriptor propertyDescriptor, String language) booleanbooleanvoidbooleanvoidvoidvoidvoidsetValidated(boolean validated) voidstored()toString()void
-
Constructor Details
-
ObjectValueContainer
-
ObjectValueContainer
public ObjectValueContainer(ObjectType type, Object object, Set<PropertyDescriptor> descriptorsToLoad, Set<String> languagesToLoad, ObjectValueLazyLoader lazyLoader)
-
-
Method Details
-
addToIgnoredValidationConstraints
-
addValue
public ObjectValueContainer.ObjectValueHolder addValue(PropertyDescriptor propertyDescriptor, String languageIso, Object originalValue) -
getModifiedValues
Returns modified value holders. The returned collection consists of loadedObjectValueContainer.ObjectValueHolders.- Returns:
- Set of
ObjectValueContainer.ObjectValueHolder
-
getAllValues
-
getConflicts
-
getIgnoredValidationConstraints
-
getObject
Returns the object which this container holds values for. -
getPropertyDescriptors
-
getType
Returns the object type of the associated object. -
getValue
public ObjectValueContainer.ObjectValueHolder getValue(PropertyDescriptor propertyDescriptor, String languageIso) -
hasConflicts
public boolean hasConflicts() -
hasProperty
-
hasProperty
-
isModified
public boolean isModified() -
isValidated
public boolean isValidated() -
removeFromIgnoredValidationConstraints
-
removeValue
-
resetIgnoredValidationConstraints
public void resetIgnoredValidationConstraints() -
setObject
-
setValidated
public void setValidated(boolean validated) -
stored
public void stored() -
toString
-
unmodifyAll
public void unmodifyAll() -
clone
-
resetModifiedFlag
public void resetModifiedFlag()
-