public abstract class ItemEJBImpl extends BridgeImplementation implements Item.ItemImpl
| Modifier | Constructor and Description |
|---|---|
protected |
ItemEJBImpl(ItemRemote remoteObject)
constructors used to create a Item with a remote or with a primary key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(PK principalPK,
PK rightPK,
boolean negative) |
int |
checkItemPermission(PK princpalPK,
PK rightPK) |
void |
clearPermission(PK principalPK,
PK rightPK) |
void |
clearRemote() |
ComposedType |
getComposedType() |
Date |
getCreationTime() |
long |
getHJMPTS() |
Class |
getJaloObjectClass()
returns the class of the jalo object that implements this bridge interface.
|
Date |
getModificationTime() |
Item |
getOwner(SessionContext ctx) |
Map |
getPermissionMap(List userRights) |
PK |
getPK()
Gets the primary key of this item.
This pk does not change in the lifetime of an item, so the pk can definitly always cached. |
Collection |
getPrincipalPermissions(PK principalPK,
boolean negative) |
ItemRemote |
getRemote() |
Collection |
getRestrictedPrincipals() |
JaloSession |
getSession() |
PK |
getTypeKey() |
void |
invalidateLocalCaches() |
void |
refreshRemote() |
abstract void |
remove(SessionContext ctx) |
void |
setComposedType(ComposedType type) |
void |
setCreationTime(Date time) |
void |
setModificationTime(Date timestamp) |
void |
setOwner(SessionContext ctx,
Item item) |
void |
setPermissionMap(List<UserRight> userRights,
Map<Principal,List<Boolean>> permissionMap) |
void |
setRemote(ItemRemote remote) |
Object |
unwrap(Object object) |
Object |
wrap(Object object) |
getAbstraction, setAbstractionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAbstraction, setAbstractionprotected ItemEJBImpl(ItemRemote remoteObject)
public Class getJaloObjectClass()
BridgeInterfacegetJaloObjectClass in interface BridgeInterfacepublic long getHJMPTS()
getHJMPTS in interface Item.ItemImplpublic void setRemote(ItemRemote remote)
public PK getPK()
You can be sure that no exception will be thrown if the underlaying EJB is no longer valid.
getPK() is a simple Java method invocation which NEVER hits the database.
getPK in interface Item.ItemImplpublic void invalidateLocalCaches()
public PK getTypeKey()
public void clearRemote()
clearRemote in interface Item.ItemImplpublic Date getCreationTime()
getCreationTime in interface Item.ItemImplpublic void setCreationTime(Date time)
setCreationTime in interface Item.ItemImplpublic Date getModificationTime()
getModificationTime in interface Item.ItemImplpublic void setModificationTime(Date timestamp)
setModificationTime in interface Item.ItemImplpublic JaloSession getSession()
public abstract void remove(SessionContext ctx) throws ConsistencyCheckException
remove in interface Item.ItemImplConsistencyCheckExceptionpublic ComposedType getComposedType()
getComposedType in interface Item.ItemImplpublic void setComposedType(ComposedType type) throws JaloInvalidParameterException
setComposedType in interface Item.ItemImplJaloInvalidParameterExceptionpublic Item getOwner(SessionContext ctx)
getOwner in interface Item.ItemImplpublic void setOwner(SessionContext ctx, Item item) throws ConsistencyCheckException
setOwner in interface Item.ItemImplConsistencyCheckExceptionpublic ItemRemote getRemote()
getRemote in interface BridgeInterfacepublic void refreshRemote()
throws JaloObjectNoLongerValidException
refreshRemote in interface Item.ItemImplJaloObjectNoLongerValidExceptionpublic int checkItemPermission(PK princpalPK, PK rightPK)
checkItemPermission in interface Item.ItemImplpublic Collection getRestrictedPrincipals()
getRestrictedPrincipals in interface Item.ItemImplpublic Collection getPrincipalPermissions(PK principalPK, boolean negative)
getPrincipalPermissions in interface Item.ItemImplpublic Map getPermissionMap(List userRights)
getPermissionMap in interface Item.ItemImplpublic void setPermissionMap(List<UserRight> userRights, Map<Principal,List<Boolean>> permissionMap) throws JaloSecurityException
setPermissionMap in interface Item.ItemImplJaloSecurityExceptionpublic void addPermission(PK principalPK, PK rightPK, boolean negative)
addPermission in interface Item.ItemImplpublic void clearPermission(PK principalPK, PK rightPK)
clearPermission in interface Item.ItemImplCopyright © 2017 SAP SE. All Rights Reserved.