|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.SessionImpl | +--com.beasys.commerce.axiom.content.ContentManagerImpl
An implementation of the ContentManager interface.
This obeys the following EJB environment variables:
ContentManager
,
ContentManagerHome
, Serialized FormFields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx |
Constructor Summary | |
ContentManagerImpl()
Constructor. |
Method Summary | |
void |
ejbActivate()
Called when the bean is activated. |
void |
ejbCreate()
Called when the bean is being created. |
void |
ejbPassivate()
Called when the bean is passivated. |
void |
ejbPostCreate()
Called after the create finishes. |
void |
ejbRemove()
Called when the bean is removed. |
java.util.Enumeration |
getAllSchemas()
Return all the content Schema objects this ContentManager knows about. |
java.util.Enumeration |
getContent(Search params)
Get an Enumeration of Content object that match the seach parameters. |
java.util.Enumeration |
getContent(Search params,
boolean readOnly)
Get an Enumeration of Content object that match the seach parameters. |
java.lang.String |
getDefaultContentHomeName()
Get the default content home name to use. |
java.lang.String |
getDefaultContentSchemaHomeName()
Get the default content schema home name to use. |
javax.naming.Context |
getJNDIContext()
Get the bean Context this should use. |
Schema |
getSchema(java.lang.String scope)
Get the content schema with the given name. |
javax.ejb.EJBHome |
lookupHome(java.lang.String name)
Helper method to lookup a home. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Called when the bean is about to be used. |
boolean |
verifyHome(javax.ejb.EJBHome home,
java.lang.Class cl)
Verify that the specified home is the home for the specified EJBObjects. |
Methods inherited from class com.beasys.commerce.foundation.SessionImpl |
clearRelationalBinding,
clearRelationalBinding,
clearRelationalBinding,
clearRelationalBinding |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ContentManagerImpl() throws javax.ejb.CreateException
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException, java.rmi.RemoteException
This will pull information from the bean's environment.
public void ejbPostCreate() throws javax.ejb.CreateException, java.rmi.RemoteException
This delagates to the super class.
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException
public void setSessionContext(javax.ejb.SessionContext ctx) throws java.rmi.RemoteException
public java.util.Enumeration getContent(Search params) throws java.rmi.RemoteException
This will always delagate the call to a ContentHome.
Subclasses should override to get different behavior.
public java.util.Enumeration getContent(Search params, boolean readOnly) throws java.rmi.RemoteException
This will call getContent(Search)
. Subclasses
should override if they will obey the readOnly flag.
public Schema getSchema(java.lang.String scope) throws java.rmi.RemoteException
getAllSchemas()
public java.util.Enumeration getAllSchemas() throws java.rmi.RemoteException
This will delagate to a SchemaHome object.
public javax.ejb.EJBHome lookupHome(java.lang.String name) throws javax.naming.NamingException
public boolean verifyHome(javax.ejb.EJBHome home, java.lang.Class cl) throws java.rmi.RemoteException
home
- the ejb homecl
- the desired EJBObject interface class.public javax.naming.Context getJNDIContext() throws javax.naming.NamingException
The bean will use this to look up environment values.
.public java.lang.String getDefaultContentHomeName()
ContentHelper.DEF_CONTENT_HOME
public java.lang.String getDefaultContentSchemaHomeName()
ContentHelper.DEF_CONTENT_SCHEMA_HOME
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |