Package de.hybris.platform.persistence
Class ItemEJBImpl
- java.lang.Object
-
- de.hybris.platform.core.BridgeImplementation
-
- de.hybris.platform.persistence.ItemEJBImpl
-
- All Implemented Interfaces:
Item.ItemImpl,BridgeInterface,ExposesPermissionFacade,java.io.Serializable
- Direct Known Subclasses:
ExtensibleItemEJBImpl
public abstract class ItemEJBImpl extends BridgeImplementation implements Item.ItemImpl
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedItemEJBImpl(Tenant tenant, ItemRemote remoteObject)constructors used to create a Item with a remote or with a primary key.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddPermission(PK principalPK, PK rightPK, boolean negative)intcheckItemPermission(PK princpalPK, PK rightPK)voidclearPermission(PK principalPK, PK rightPK)protected CachegetCache()ComposedTypegetComposedType()java.util.DategetCreationTime()longgetHJMPTS()java.lang.ClassgetJaloObjectClass()returns the class of the jalo object that implements this bridge interface.java.util.DategetModificationTime()ItemgetOwner(SessionContext ctx)ItemPermissionFacadegetPermissionFacade()java.util.MapgetPermissionMap(java.util.List userRights)PKgetPK()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.CollectiongetPrincipalPermissions(PK principalPK, boolean negative)protected ItemRemotegetRemote()java.util.CollectiongetRestrictedPrincipals()JaloSessiongetSession()PKgetTypeKey()voidinvalidateLocalCaches()protected booleanisHandlingOwnerAsReferenceSupported()voidremove(SessionContext ctx)protected abstract voidremoveInternal(SessionContext ctx)voidsetComposedType(ComposedType type)voidsetCreationTime(java.util.Date time)voidsetModificationTime(java.util.Date timestamp)voidsetOwner(SessionContext ctx, Item item)voidsetPermissionMap(java.util.List<UserRight> userRights, java.util.Map<Principal,java.util.List<java.lang.Boolean>> permissionMap)voidsetRemote(ItemRemote remote)java.lang.Objectunwrap(java.lang.Object object)ItemPropertyValueunwrapToRef(Item item)java.lang.Objectwrap(java.lang.Object object)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.jalo.Item.ItemImpl
isLocalCachingSupported
-
-
-
-
Constructor Detail
-
ItemEJBImpl
protected ItemEJBImpl(Tenant tenant, ItemRemote remoteObject)
constructors used to create a Item with a remote or with a primary key.
-
-
Method Detail
-
getPermissionFacade
public ItemPermissionFacade getPermissionFacade()
- Specified by:
getPermissionFacadein interfaceExposesPermissionFacade
-
getJaloObjectClass
public java.lang.Class getJaloObjectClass()
Description copied from interface:BridgeInterfacereturns the class of the jalo object that implements this bridge interface.- Specified by:
getJaloObjectClassin interfaceBridgeInterface- Returns:
- the Class object
-
getHJMPTS
public long getHJMPTS()
- Specified by:
getHJMPTSin interfaceItem.ItemImpl
-
setRemote
public void setRemote(ItemRemote remote)
-
getPK
public 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.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.
- Specified by:
getPKin interfaceItem.ItemImpl
-
invalidateLocalCaches
public void invalidateLocalCaches()
- Specified by:
invalidateLocalCachesin interfaceItem.ItemImpl
-
getTypeKey
public PK getTypeKey()
- Specified by:
getTypeKeyin interfaceItem.ItemImpl
-
getCreationTime
public java.util.Date getCreationTime()
- Specified by:
getCreationTimein interfaceItem.ItemImpl
-
setCreationTime
public void setCreationTime(java.util.Date time)
- Specified by:
setCreationTimein interfaceItem.ItemImpl
-
getModificationTime
public java.util.Date getModificationTime()
- Specified by:
getModificationTimein interfaceItem.ItemImpl
-
setModificationTime
public void setModificationTime(java.util.Date timestamp)
- Specified by:
setModificationTimein interfaceItem.ItemImpl
-
getSession
public JaloSession getSession()
-
remove
public final void remove(SessionContext ctx) throws ConsistencyCheckException
- Specified by:
removein interfaceItem.ItemImpl- Throws:
ConsistencyCheckException
-
removeInternal
protected abstract void removeInternal(SessionContext ctx) throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
getComposedType
public ComposedType getComposedType()
- Specified by:
getComposedTypein interfaceItem.ItemImpl
-
setComposedType
public void setComposedType(ComposedType type) throws JaloInvalidParameterException
- Specified by:
setComposedTypein interfaceItem.ItemImpl- Throws:
JaloInvalidParameterException
-
getOwner
public Item getOwner(SessionContext ctx)
- Specified by:
getOwnerin interfaceItem.ItemImpl
-
setOwner
public void setOwner(SessionContext ctx, Item item) throws ConsistencyCheckException
- Specified by:
setOwnerin interfaceItem.ItemImpl- Throws:
ConsistencyCheckException
-
isHandlingOwnerAsReferenceSupported
protected boolean isHandlingOwnerAsReferenceSupported()
-
getRemote
protected ItemRemote getRemote()
-
checkItemPermission
public int checkItemPermission(PK princpalPK, PK rightPK)
- Specified by:
checkItemPermissionin interfaceItem.ItemImpl
-
getRestrictedPrincipals
public java.util.Collection getRestrictedPrincipals()
- Specified by:
getRestrictedPrincipalsin interfaceItem.ItemImpl
-
getPrincipalPermissions
public java.util.Collection getPrincipalPermissions(PK principalPK, boolean negative)
- Specified by:
getPrincipalPermissionsin interfaceItem.ItemImpl
-
getPermissionMap
public java.util.Map getPermissionMap(java.util.List userRights)
- Specified by:
getPermissionMapin interfaceItem.ItemImpl
-
setPermissionMap
public void setPermissionMap(java.util.List<UserRight> userRights, java.util.Map<Principal,java.util.List<java.lang.Boolean>> permissionMap) throws JaloSecurityException
- Specified by:
setPermissionMapin interfaceItem.ItemImpl- Throws:
JaloSecurityException
-
addPermission
public void addPermission(PK principalPK, PK rightPK, boolean negative)
- Specified by:
addPermissionin interfaceItem.ItemImpl
-
clearPermission
public void clearPermission(PK principalPK, PK rightPK)
- Specified by:
clearPermissionin interfaceItem.ItemImpl
-
wrap
public java.lang.Object wrap(java.lang.Object object)
-
unwrap
public java.lang.Object unwrap(java.lang.Object object)
-
unwrapToRef
public ItemPropertyValue unwrapToRef(Item item)
-
getCache
protected final Cache getCache()
-
-