|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.openadmin.client.dto.Entity
public class Entity
Generic DTO for a domain object. Each property of the domain object is represented by the 'properties' instance variable which allows for further display metadata to be stored.
Property},
Serialized Form| Constructor Summary | |
|---|---|
Entity()
|
|
| Method Summary | |
|---|---|
void |
addProperty(Property property)
|
void |
addValidationError(String fieldName,
String errorOrErrorKey)
Adds a single validation error to this entity. |
boolean |
equals(Object o)
|
Property |
findProperty(String name)
|
Boolean |
getActive()
|
Boolean |
getDeleted()
|
Boolean |
getInactive()
|
Boolean |
getLocked()
|
String |
getLockedBy()
|
String |
getLockedDate()
|
Map<String,Property> |
getPMap()
|
Property[] |
getProperties()
|
String[] |
getType()
|
String[][] |
getValidationErrors()
The validation errors returned here are all 2-element arrays. |
int |
hashCode()
|
boolean |
isDirty()
|
boolean |
isMultiPartAvailableOnThread()
|
boolean |
isValidationFailure()
|
void |
mergeProperties(String prefix,
Entity entity)
|
void |
setActive(Boolean active)
|
void |
setDeleted(Boolean deleted)
|
void |
setDirty(boolean dirty)
|
void |
setInactive(Boolean inactive)
|
void |
setLocked(Boolean locked)
|
void |
setLockedBy(String lockedBy)
|
void |
setLockedDate(String lockedDate)
|
void |
setMultiPartAvailableOnThread(boolean multiPartAvailableOnThread)
|
void |
setProperties(Property[] properties)
|
void |
setType(String[] type)
|
void |
setValidationErrors(String[][] validationErrors)
Completely reset the validation errors for this Entity. |
void |
setValidationFailure(boolean validationFailure)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Entity()
| Method Detail |
|---|
public String[] getType()
public void setType(String[] type)
public Map<String,Property> getPMap()
public Property[] getProperties()
public void setProperties(Property[] properties)
public void mergeProperties(String prefix,
Entity entity)
public Property findProperty(String name)
public void addProperty(Property property)
public void addValidationError(String fieldName,
String errorOrErrorKey)
fieldName - - the field that is in error. This works on top-level properties (like a 'manufacturer' field on a
Product entity) but can also work on properties gleaned from a related entity (like
'defaultSku.weight.weightUnitOfMeasure' on a Product entity)errorOrErrorKey - - the error message to present to a user. Could be the actual error message or a key to a
property in messages.properties to support different localespublic boolean isDirty()
public void setDirty(boolean dirty)
public boolean isMultiPartAvailableOnThread()
public void setMultiPartAvailableOnThread(boolean multiPartAvailableOnThread)
public boolean isValidationFailure()
public void setValidationFailure(boolean validationFailure)
public String[][] getValidationErrors()
public void setValidationErrors(String[][] validationErrors)
addValidationError(String, String).
validationErrors - addValidationError(String, String)public Boolean getActive()
public void setActive(Boolean active)
public Boolean getDeleted()
public void setDeleted(Boolean deleted)
public Boolean getInactive()
public void setInactive(Boolean inactive)
public Boolean getLocked()
public void setLocked(Boolean locked)
public String getLockedBy()
public void setLockedBy(String lockedBy)
public String getLockedDate()
public void setLockedDate(String lockedDate)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||