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,Serializable
- Direct Known Subclasses:
ExtensibleItemEJBImpl
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedItemEJBImpl(Tenant tenant, ItemRemote remoteObject) constructors used to create a Item with a remote or with a primary key. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPermission(PK principalPK, PK rightPK, boolean negative) intcheckItemPermission(PK princpalPK, PK rightPK) voidclearPermission(PK principalPK, PK rightPK) protected final CachegetCache()longreturns the class of the jalo object that implements this bridge interface.getOwner(SessionContext ctx) getPermissionMap(List userRights) 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.getPrincipalPermissions(PK principalPK, boolean negative) protected ItemRemotevoidprotected booleanfinal voidremove(SessionContext ctx) protected abstract voidvoidsetComposedType(ComposedType type) voidsetCreationTime(Date time) voidsetModificationTime(Date timestamp) voidsetOwner(SessionContext ctx, Item item) voidvoidsetRemote(ItemRemote remote) unwrapToRef(Item item) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.jalo.Item.ItemImpl
isLocalCachingSupported, isTransactionSupported
-
Constructor Details
-
ItemEJBImpl
constructors used to create a Item with a remote or with a primary key.
-
-
Method Details
-
getPermissionFacade
- Specified by:
getPermissionFacadein interfaceExposesPermissionFacade
-
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
-
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
- Specified by:
getTypeKeyin interfaceItem.ItemImpl
-
getCreationTime
- Specified by:
getCreationTimein interfaceItem.ItemImpl
-
setCreationTime
- Specified by:
setCreationTimein interfaceItem.ItemImpl
-
getModificationTime
- Specified by:
getModificationTimein interfaceItem.ItemImpl
-
setModificationTime
- Specified by:
setModificationTimein interfaceItem.ItemImpl
-
getSession
-
remove
- Specified by:
removein interfaceItem.ItemImpl- Throws:
ConsistencyCheckException
-
removeInternal
- Throws:
ConsistencyCheckException
-
getComposedType
- Specified by:
getComposedTypein interfaceItem.ItemImpl
-
setComposedType
- Specified by:
setComposedTypein interfaceItem.ItemImpl- Throws:
JaloInvalidParameterException
-
getOwner
- Specified by:
getOwnerin interfaceItem.ItemImpl
-
setOwner
- Specified by:
setOwnerin interfaceItem.ItemImpl- Throws:
ConsistencyCheckException
-
isHandlingOwnerAsReferenceSupported
protected boolean isHandlingOwnerAsReferenceSupported() -
getRemote
-
checkItemPermission
- Specified by:
checkItemPermissionin interfaceItem.ItemImpl
-
getRestrictedPrincipals
- Specified by:
getRestrictedPrincipalsin interfaceItem.ItemImpl
-
getPrincipalPermissions
- Specified by:
getPrincipalPermissionsin interfaceItem.ItemImpl
-
getPermissionMap
- Specified by:
getPermissionMapin interfaceItem.ItemImpl
-
setPermissionMap
public void setPermissionMap(List<UserRight> userRights, Map<Principal, List<Boolean>> permissionMap) throws JaloSecurityException- Specified by:
setPermissionMapin interfaceItem.ItemImpl- Throws:
JaloSecurityException
-
addPermission
- Specified by:
addPermissionin interfaceItem.ItemImpl
-
clearPermission
- Specified by:
clearPermissionin interfaceItem.ItemImpl
-
wrap
-
unwrap
-
unwrapToRef
-
getCache
-