public abstract class ItemEJBImpl extends BridgeImplementation implements Item.ItemImpl
| Modifier | Constructor and Description |
|---|---|
protected |
ItemEJBImpl(Tenant tenant,
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() |
protected Cache |
getCache() |
ComposedType |
getComposedType() |
java.util.Date |
getCreationTime() |
long |
getHJMPTS() |
java.lang.Class |
getJaloObjectClass()
returns the class of the jalo object that implements this bridge interface.
|
java.util.Date |
getModificationTime() |
Item |
getOwner(SessionContext ctx) |
ItemPermissionFacade |
getPermissionFacade() |
java.util.Map |
getPermissionMap(java.util.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. |
java.util.Collection |
getPrincipalPermissions(PK principalPK,
boolean negative) |
protected ItemRemote |
getRemote() |
java.util.Collection |
getRestrictedPrincipals() |
JaloSession |
getSession() |
PK |
getTypeKey() |
void |
invalidateLocalCaches() |
abstract void |
remove(SessionContext ctx) |
void |
setComposedType(ComposedType type) |
void |
setCreationTime(java.util.Date time) |
void |
setModificationTime(java.util.Date timestamp) |
void |
setOwner(SessionContext ctx,
Item item) |
void |
setPermissionMap(java.util.List<UserRight> userRights,
java.util.Map<Principal,java.util.List<java.lang.Boolean>> permissionMap) |
void |
setRemote(ItemRemote remote) |
java.lang.Object |
unwrap(java.lang.Object object) |
ItemPropertyValue |
unwrapToRef(Item item) |
java.lang.Object |
wrap(java.lang.Object object) |
protected ItemEJBImpl(Tenant tenant, ItemRemote remoteObject)
public ItemPermissionFacade getPermissionFacade()
getPermissionFacade in interface ExposesPermissionFacadepublic java.lang.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()
invalidateLocalCaches in interface Item.ItemImplpublic PK getTypeKey()
getTypeKey in interface Item.ItemImplpublic void clearRemote()
clearRemote in interface Item.ItemImplpublic java.util.Date getCreationTime()
getCreationTime in interface Item.ItemImplpublic void setCreationTime(java.util.Date time)
setCreationTime in interface Item.ItemImplpublic java.util.Date getModificationTime()
getModificationTime in interface Item.ItemImplpublic void setModificationTime(java.util.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.ItemImplConsistencyCheckExceptionprotected ItemRemote getRemote()
public int checkItemPermission(PK princpalPK, PK rightPK)
checkItemPermission in interface Item.ItemImplpublic java.util.Collection getRestrictedPrincipals()
getRestrictedPrincipals in interface Item.ItemImplpublic java.util.Collection getPrincipalPermissions(PK principalPK, boolean negative)
getPrincipalPermissions in interface Item.ItemImplpublic java.util.Map getPermissionMap(java.util.List userRights)
getPermissionMap in interface Item.ItemImplpublic void setPermissionMap(java.util.List<UserRight> userRights, java.util.Map<Principal,java.util.List<java.lang.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.ItemImplpublic java.lang.Object wrap(java.lang.Object object)
public java.lang.Object unwrap(java.lang.Object object)
public ItemPropertyValue unwrapToRef(Item item)
protected final Cache getCache()
Copyright © 2018 SAP SE. All Rights Reserved.