|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.netuix.application.manager.persistence.jdbc.DesktopDefinitionManagerImpl
Field Summary | |
protected static Debug |
debug
|
Constructor Summary | |
DesktopDefinitionManagerImpl()
|
Method Summary | |
DesktopDefinition |
createDesktopDefinition(CustomizationContext customizationContext,
DesktopDefinition desktopDefinition)
Creates new desktop definition. |
DesktopDefinition |
createDesktopDefinition(CustomizationContext customizationContext,
DesktopView desktopView,
String webapp)
Create new desktop definition in the persistent store from the given view .The view
is typically constructed via the XmlDisassembler . |
void |
deleteDesktopDefinition(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId)
Delete the DesktopDefinition of the supplied desktop definition identifier. |
void |
deleteDesktopDefinitionWithCascade(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId)
Delete the DesktopDefinition of the supplied desktop definition id and
all desktop instances associated with this definition. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
DesktopDefinition |
getDesktopDefinition(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId)
Getter for returning a single DesktopDefinition object given a supplied desktop
definition identifier. |
DesktopDefinition[] |
getDesktopDefinitions(CustomizationContext customizationContext,
String webapp)
Getter for returning a list of all DesktopDefinitions scoped to the supplied webapp. |
DesktopView |
getDesktopView(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId)
Getter for returning an immutable deep copy of a DesktopView. |
void |
setSessionContext(SessionContext sessionContext)
|
void |
updateDesktopDefinition(CustomizationContext customizationContext,
DesktopDefinition desktopDefinition)
Update the persistent store for the supplied DesktopDefinition . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Debug debug
Constructor Detail |
public DesktopDefinitionManagerImpl()
Method Detail |
public void ejbCreate() throws CreateException, RemoteException
CreateException
RemoteException
public void ejbActivate() throws EJBException, RemoteException
ejbActivate
in interface SessionBean
EJBException
RemoteException
public void ejbPassivate() throws EJBException, RemoteException
ejbPassivate
in interface SessionBean
EJBException
RemoteException
public void ejbRemove() throws EJBException, RemoteException
ejbRemove
in interface SessionBean
EJBException
RemoteException
public void setSessionContext(SessionContext sessionContext) throws EJBException, RemoteException
setSessionContext
in interface SessionBean
EJBException
RemoteException
public DesktopView getDesktopView(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId)
IDesktopDefinitionManager
Getter for returning an immutable deep copy of a DesktopView. The DesktopView
object, unlike the DesktopDefinition
or the DesktopInstance
objects
contains a full set of references to all child shells, pages, books and so on. The
DesktopView
object however is immutable.
getDesktopView
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIddesktopDefinitionId
- the unique desktopDefinitionId.
public DesktopDefinition[] getDesktopDefinitions(CustomizationContext customizationContext, String webapp) throws RemoteException
IDesktopDefinitionManager
Getter for returning a list of all DesktopDefinitions
scoped to the supplied webapp.
getDesktopDefinitions
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIdwebapp
- the web application these desktop definitions are scoped to.
DesktopDefinition
objects if they exist, otherwise, an empty iterator.
RemoteException
public DesktopDefinition getDesktopDefinition(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId) throws RemoteException
IDesktopDefinitionManager
Getter for returning a single DesktopDefinition
object given a supplied desktop
definition identifier.
getDesktopDefinition
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIddesktopDefinitionId
- the unique desktop definition identifier.
DesktopDefinition
object fully populated and internationalized, otherwise,
null>/code> if the object does not exist.
RemoteException
- See Also:
DesktopDefinition
public void deleteDesktopDefinition(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId) throws RemoteException, ObjectNotFoundException, ObjectInUseException, NotEntitledException
IDesktopDefinitionManager
Delete the DesktopDefinition
of the supplied desktop definition identifier.
deleteDesktopDefinition
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIddesktopDefinitionId
- the unique desktop definition identifier of the desktop to delete.
NotEntitledException
- if the caller does not have the required permissions to delete this object.
ObjectInUseException
- if this desktop definition is currently being used by desktop (user) instances.
ObjectNotFoundException
- if there is no DesktopDefinition associated with desktopDefinitionId.
RemoteException
public void deleteDesktopDefinitionWithCascade(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId) throws RemoteException, ObjectNotFoundException, NotEntitledException
IDesktopDefinitionManager
Delete the DesktopDefinition
of the supplied desktop definition id and
all desktop instances associated with this definition.
deleteDesktopDefinitionWithCascade
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIddesktopDefinitionId
- the unique desktop definition identifier of the desktop to delete.
ObjectNotFoundException
- if there is no DesktopDefinition associated with desktopDefinitionId.
NotEntitledException
- if the caller does not have the required permissions to delete this object.
RemoteException
public void updateDesktopDefinition(CustomizationContext customizationContext, DesktopDefinition desktopDefinition) throws RemoteException, ObjectNotFoundException, NotEntitledException
IDesktopDefinitionManager
Update the persistent store for the supplied DesktopDefinition
. All attributes of the DesktopDefinition
are updated in persistent store.
updateDesktopDefinition
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIddesktopDefinition
- the object containing the new data for the desktop definition.
NotEntitledException
- if the caller does not have the required permissions to delete this object.
ObjectNotFoundException
- the DesktopDefinitionId
RemoteException
public DesktopDefinition createDesktopDefinition(CustomizationContext customizationContext, DesktopDefinition desktopDefinition) throws RemoteException, MissingDataException, ObjectNotFoundException, NotEntitledException, DuplicateObjectException
IDesktopDefinitionManager
Creates new desktop definition. Creates a new desktop definition in the persistent store. This definition may be used to create desktop instance later on.
createDesktopDefinition
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceIddesktopDefinition
- the desktop definition object containing all the required data.
DuplicateObjectException
- if the portalPath and desktopPath combination already exist in the database
NotEntitledException
- if the caller does not have the required permissions to delete this object.
MissingDataException
- if some vital information is missing from the DesktopDefinition.
RemoteException
ObjectNotFoundException
public DesktopDefinition createDesktopDefinition(CustomizationContext customizationContext, DesktopView desktopView, String webapp) throws RemoteException, NotEntitledException, com.bea.netuix.application.transform.disassembler.view.ViewDisassemblerException, DuplicateObjectException, DuplicateDefinitionException
IDesktopDefinitionManager
Create new desktop definition in the persistent store from the given view
.The view
is typically constructed via the XmlDisassembler
.
createDesktopDefinition
in interface IDesktopDefinitionManager
customizationContext
- customization information such as prefered locales, username and request, and most
importantly disassemblerTemplateAction.desktopView
- desktop view that has all the necessary information to create a desktop definition.webapp
- the name of the webapp
NotEntitledException
- If the caller does not have the required permissions to create a desktop definition.
DuplicateDefinitionException
- if a book or page with the same definition label already exist in the database.
DuplicateObjectException
- if the portalPath and desktopPath combination already exist in the database
com.bea.netuix.application.transform.disassembler.view.ViewDisassemblerException
- If unable to disassemble the given desktop view desktopView
.
typically caused by some bad markup names in the view.
RemoteException
CustomizationContext.setDisassemblerTemplateAction(int)
,
XmlDisassembler
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |