public class JaloOnlyItemHelper extends Object implements JaloOnlyItem, Serializable
JaloOnlyItem interface.| Constructor and Description |
|---|
JaloOnlyItemHelper(PK pk,
Item item,
ComposedType type,
Date creationTime,
Date modifiedTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCollectionProperty(SessionContext ctx,
String qualifier,
Collection elements,
Class<? extends Collection> collectionClass) |
void |
addToCollectionProperty(SessionContext ctx,
String qualifier,
Object element,
Class<? extends Collection> collectionClass) |
Object |
doGetAttribute(SessionContext ctx,
String attrQualifier)
Implements in-memory attributes backed by a
Map. |
void |
doSetAttribute(SessionContext ctx,
String attrQualifier,
Object value)
Implements in-memory attributes backed by a
Map. |
<T> T |
getProperty(SessionContext ctx,
String qualifier) |
<T> T |
getProperty(SessionContext ctx,
String qualifier,
T defaultValue) |
boolean |
getPropertyBoolean(SessionContext ctx,
String qualifier,
boolean defaultValue) |
<T extends Collection> |
getPropertyCollection(SessionContext ctx,
String qualifier,
T defaultValue) |
double |
getPropertyDouble(SessionContext ctx,
String qualifier,
double defaultValue) |
int |
getPropertyInt(SessionContext ctx,
String qualifier,
int defaultValue) |
long |
getPropertyLong(SessionContext ctx,
String qualifier,
long defaultValue) |
void |
markModified() |
void |
markModified(Date date) |
ComposedType |
provideComposedType()
Should provide the composed type of this item.
|
Date |
provideCreationTime()
Should provide a fixed creation time for this item.
|
Date |
provideModificationTime()
Should provide a modification time for this item.
|
PK |
providePK()
Should provide a fixed PK for this item.
|
void |
removeCollectionProperty(SessionContext ctx,
String qualifier) |
void |
removeFromCollectionProperty(SessionContext ctx,
String qualifier,
Collection elements) |
void |
removeFromCollectionProperty(SessionContext ctx,
String qualifier,
Object element) |
void |
removeJaloOnly()
Called when a jalo only item is removed.
|
void |
setCreationTime(Date date) |
<T> void |
setProperty(SessionContext ctx,
String qualifier,
T newValue) |
void |
setPropertyCollection(SessionContext ctx,
String qualifier,
Collection newValue,
Class<? extends Collection> collectionClass) |
public JaloOnlyItemHelper(PK pk, Item item, ComposedType type, Date creationTime, Date modifiedTime)
public final ComposedType provideComposedType()
JaloOnlyItemprovideComposedType in interface JaloOnlyItempublic final Date provideCreationTime()
JaloOnlyItemprovideCreationTime in interface JaloOnlyItempublic void setCreationTime(Date date)
public final Date provideModificationTime()
JaloOnlyItemprovideModificationTime in interface JaloOnlyItempublic final PK providePK()
JaloOnlyItemprovidePK in interface JaloOnlyItempublic void removeJaloOnly()
throws ConsistencyCheckException
JaloOnlyItemremoveJaloOnly in interface JaloOnlyItemConsistencyCheckException - to signal that this item removal failedpublic Object doGetAttribute(SessionContext ctx, String attrQualifier) throws JaloInvalidParameterException, JaloSecurityException
Map.doGetAttribute in interface JaloOnlyItemctx - the session contextattrQualifier - the qualifier of the requested attributeJaloInvalidParameterException - in case no value could be read for this attributeJaloSecurityExceptionpublic void doSetAttribute(SessionContext ctx, String attrQualifier, Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
Map.doSetAttribute in interface JaloOnlyItemctx - the session contextattrQualifier - the qualifier of the requested attributevalue - the new attribute valueJaloInvalidParameterException - in case the value could not be written for this attributeJaloSecurityException - in case the session user is not allowed to write this attributeJaloBusinessException - in case any other error occuredpublic void markModified()
public void markModified(Date date)
public <T> T getProperty(SessionContext ctx, String qualifier)
public <T> T getProperty(SessionContext ctx, String qualifier, T defaultValue)
public <T> void setProperty(SessionContext ctx, String qualifier, T newValue)
public <T extends Collection> T getPropertyCollection(SessionContext ctx, String qualifier, T defaultValue)
public void setPropertyCollection(SessionContext ctx, String qualifier, Collection newValue, Class<? extends Collection> collectionClass)
public void addToCollectionProperty(SessionContext ctx, String qualifier, Object element, Class<? extends Collection> collectionClass)
public void addToCollectionProperty(SessionContext ctx, String qualifier, Collection elements, Class<? extends Collection> collectionClass)
public void removeFromCollectionProperty(SessionContext ctx, String qualifier, Object element)
public void removeFromCollectionProperty(SessionContext ctx, String qualifier, Collection elements)
public void removeCollectionProperty(SessionContext ctx, String qualifier)
public int getPropertyInt(SessionContext ctx, String qualifier, int defaultValue)
public long getPropertyLong(SessionContext ctx, String qualifier, long defaultValue)
public double getPropertyDouble(SessionContext ctx, String qualifier, double defaultValue)
public boolean getPropertyBoolean(SessionContext ctx, String qualifier, boolean defaultValue)
Copyright © 2017 SAP SE. All Rights Reserved.