|
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 FormField Summary | |
protected java.lang.String |
contentHome
The JNDI home name of the content object to access. |
protected java.lang.String |
schemaHome
The JNDI home name of the schema object to access. |
Fields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty |
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. |
javax.ejb.EJBHome |
getContentHome()
Get the ContentHome to use for getting Content. |
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()
Deprecated. No longer needed (use getEnvironmentProperty) |
Schema |
getSchema(java.lang.String scope)
Get the content schema with the given name. |
javax.ejb.EJBHome |
getSchemaHome()
Get the SchemaHome to use for getting Schemas. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.lang.String contentHome
This will null if the ejb/ContentHome environment setting should be used.
protected transient java.lang.String schemaHome
This will null if the ejb/SchemaHome environment setting should be used.
Constructor Detail |
public ContentManagerImpl() throws javax.ejb.CreateException
javax.ejb.CreateException
- thrown on an errorMethod Detail |
public void ejbCreate() throws javax.ejb.CreateException
This will pull information from the bean's environment.
ejbCreate
in class SessionImpl
javax.ejb.EJBException
- thrown on an error.javax.ejb.CreateException
- thrown on an error.public void ejbPostCreate() throws javax.ejb.CreateException, javax.ejb.EJBException
This delagates to the super class.
ejbPostCreate
in class SessionImpl
javax.ejb.EJBException
- thrown on an error.javax.ejb.CreateException
- thrown on an error.public void ejbActivate() throws javax.ejb.EJBException
ejbActivate
in class SessionImpl
javax.ejb.EJBException
- thrown on an error.public void ejbPassivate() throws javax.ejb.EJBException
ejbPassivate
in class SessionImpl
javax.ejb.EJBException
- thrown on an error.public void ejbRemove() throws javax.ejb.EJBException
ejbRemove
in class SessionImpl
javax.ejb.EJBException
- thrown on an error.public void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException
setSessionContext
in class SessionImpl
javax.ejb.EJBException
- thrown on an error.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.
java.rmi.RemoteException
- thrown on an error.getContentHome()
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.
java.rmi.RemoteException
- thrown on an error.public Schema getSchema(java.lang.String scope) throws java.rmi.RemoteException
java.rmi.RemoteException
- thrown on an error.getAllSchemas()
public java.util.Enumeration getAllSchemas() throws java.rmi.RemoteException
This will delagate to a SchemaHome object.
java.rmi.RemoteException
- thrown on an error.getSchemaHome()
public javax.ejb.EJBHome getContentHome() throws javax.naming.NamingException, java.rmi.RemoteException
If contentHome
is null, this will use ejb/ContentHome
environment setting. Otherwise, it will use the value of contentHome
as the JNDI name of the ContentHome object to use.
java.rmi.RemoteException
- thrown on a communications error.javax.naming.NamingException
- thrown if either ejb/ContentHome or contentHome
cannot be found.public javax.ejb.EJBHome getSchemaHome() throws javax.naming.NamingException, java.rmi.RemoteException
If schemaHome
is null, this will use ejb/SchemaHome
environment setting. Otherwise, it will use the value of schemaHome
as the JNDI name of the SchemaHome object to use.
java.rmi.RemoteException
- thrown on a communications error.javax.naming.NamingException
- thrown if either ejb/SchemaHome or schemaHome
cannot be found.public javax.ejb.EJBHome lookupHome(java.lang.String name) throws javax.naming.NamingException
javax.naming.NamingException
- thrown on an error finding the named object.public boolean verifyHome(javax.ejb.EJBHome home, java.lang.Class cl) throws java.rmi.RemoteException
home
- the ejb homecl
- the desired EJBObject interface class.java.rmi.RemoteException
- thrown if we cannot get the EJB metadata.public javax.naming.Context getJNDIContext() throws javax.naming.NamingException
The bean will use this to look up environment values.
.javax.naming.NamingException
- 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 |