Class PropertyReadResult
- java.lang.Object
-
- com.hybris.cockpitng.dataaccess.services.PropertyReadResult
-
- All Implemented Interfaces:
java.io.Serializable
public class PropertyReadResult extends java.lang.Object implements java.io.SerializableTransport object defining a result od property read - contains information about property read status and it's value (if read ended successfully).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intREAD_STATUS_ERRORAn error occurred while processing property expressionstatic intREAD_STATUS_RESTRICTEDProperty read could not be executed because of read restrictionsstatic intREAD_STATUS_SUCCESSProperty read ended successfully
-
Constructor Summary
Constructors Constructor Description PropertyReadResult(int status)Constructor for failed property readPropertyReadResult(java.lang.Object value)Constructor for successful read
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatus()Gets property read status<T extends java.io.Serializable>
TgetValue()booleanisRestricted()booleanisSuccessful()
-
-
-
Field Detail
-
READ_STATUS_SUCCESS
public static final int READ_STATUS_SUCCESS
Property read ended successfully- See Also:
- Constant Field Values
-
READ_STATUS_RESTRICTED
public static final int READ_STATUS_RESTRICTED
Property read could not be executed because of read restrictions- See Also:
- Constant Field Values
-
READ_STATUS_ERROR
public static final int READ_STATUS_ERROR
An error occurred while processing property expression- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyReadResult
public PropertyReadResult(int status)
Constructor for failed property read- Parameters:
status- read status describing failure reason- See Also:
READ_STATUS_RESTRICTED,READ_STATUS_ERROR
-
PropertyReadResult
public PropertyReadResult(java.lang.Object value)
Constructor for successful read- Parameters:
value- property value- See Also:
READ_STATUS_SUCCESS
-
-
Method Detail
-
getStatus
public int getStatus()
Gets property read status- Returns:
- status of property read
- See Also:
READ_STATUS_RESTRICTED,READ_STATUS_SUCCESS,READ_STATUS_ERROR
-
getValue
public <T extends java.io.Serializable> T getValue()
-
isSuccessful
public boolean isSuccessful()
-
isRestricted
public boolean isRestricted()
-
-