|
© 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.PortalDefinitionManagerImpl
PortalDefinitionManagerImpl
Field Summary | |
protected static Debug |
debug
|
Constructor Summary | |
PortalDefinitionManagerImpl()
|
Method Summary | |
PortalDefinition |
createPortalDefinition(CustomizationContext customizationContext,
PortalDefinition pd)
Creates a persistant version of a PortalDefinition
from the provided PortalDefinition . |
int |
deletePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Deletes all (including localized) versions of a PortalDefinition. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
DefinitionCount |
getDefinitionCount(CustomizationContext customizationContext,
boolean _public)
Return a count of all the definitions in the system. |
int |
getDesktopDefinitionCount(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Returns the number of DesktopDefinition s under
portal portalPath . |
PortalPath[] |
getDesktopDefinitionPortals(CustomizationContext customizationContext,
DesktopPath desktopPath,
String webapp)
Returns all the PortalPath s that a
DesktopDefinition is a part of. |
DesktopDefinition[] |
getDesktopDefinitions(CustomizationContext customizationContext,
PortalPath portalPath,
int begin,
int end,
String webapp)
Returns DesktopDefinition s in the begin
and end range under the portal portalPath .
|
DesktopView[] |
getDesktopViews(CustomizationContext customizationContext,
PortalPath portalPath,
int begin,
int end,
String webapp)
Returns DesktopView s in the begin and
end range under the portal portalPath . |
PortalDefinition |
getPortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Returns a PortalDefinition corresponding to a
PortalPath . |
int |
getPortalDefinitionCount(CustomizationContext customizationContext,
String webapp)
Returns the number of portals. |
PortalDefinition[] |
getPortalDefinitions(CustomizationContext customizationContext,
PortalPath[] portalPaths,
String webapp)
Returns an array of PortalDefinition s corresponding
to an array of PortalPath s. |
PortalView |
getPortalDefinitionView(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Returns a PortalView corresponding to a
PortalPath . |
PortalView[] |
getPortalDefinitionViews(CustomizationContext customizationContext,
PortalPath[] portalPaths,
String webapp)
Returns an array of PortalView s corresponding
to an array of PortalPath s. |
PortalPath[] |
getPortalPaths(CustomizationContext customizationContext,
int begin,
int end,
String webapp)
Returns an array of PortalPath s in the
begin and end range. |
String[] |
getPortalWebApps(CustomizationContext customizationContext)
Return a set of portal webapps that are customizable. |
void |
setSessionContext(SessionContext sessionContext)
|
void |
updatePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
PortalDefinition newPd)
Updates a locale specific version of a PortalDefinition based on a new PortalDefinition. |
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 PortalDefinitionManagerImpl()
Method Detail |
public void setSessionContext(SessionContext sessionContext) throws EJBException
setSessionContext
in interface SessionBean
EJBException
public void ejbCreate() throws CreateException, RemoteException
CreateException
RemoteException
public void ejbRemove() throws EJBException
ejbRemove
in interface SessionBean
EJBException
public void ejbActivate() throws EJBException
ejbActivate
in interface SessionBean
EJBException
public void ejbPassivate() throws EJBException
ejbPassivate
in interface SessionBean
EJBException
public String[] getPortalWebApps(CustomizationContext customizationContext) throws RemoteException
IPortalDefinitionManager
Return a set of portal webapps that are customizable. Customizable webapps are webapps with customization element set to true in the netuix-config.xml file, and have at least on of the following: .shell files.
getPortalWebApps
in interface IPortalDefinitionManager
customizationContext
-
RemoteException
public DefinitionCount getDefinitionCount(CustomizationContext customizationContext, boolean _public) throws RemoteException
IPortalDefinitionManager
Return a count of all the definitions in the system.
getDefinitionCount
in interface IPortalDefinitionManager
customizationContext
- _public
- if true only return public definitions
RemoteException
public int getPortalDefinitionCount(CustomizationContext customizationContext, String webapp) throws RemoteException
getPortalDefinitionCount
in interface IPortalDefinitionManager
webapp
- web application these desktop definitions are scoped to.
RemoteException
public PortalDefinition getPortalDefinition(CustomizationContext customizationContext, PortalPath portalPath, String webapp) throws RemoteException, ObjectNotFoundException
PortalDefinition
corresponding to a
PortalPath
.
getPortalDefinition
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPath
- PortalPath
webapp
- web application these desktop definitions are scoped to.
PortalDefinition
ObjectNotFoundException
- if no portal is found
RemoteException
public PortalView getPortalDefinitionView(CustomizationContext customizationContext, PortalPath portalPath, String webapp) throws RemoteException, ObjectNotFoundException
PortalView
corresponding to a
PortalPath
.
getPortalDefinitionView
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPath
- PortalPath
webapp
- web application these desktop definitions are scoped to.
PortalView
ObjectNotFoundException
- if no category definition is found
RemoteException
public PortalPath[] getPortalPaths(CustomizationContext customizationContext, int begin, int end, String webapp) throws RemoteException
PortalPath
s in the
begin
and end
range. If fewer portals
than (begin-end) exist then the former number of portals is
returned. If no definitions are found an empty array is returned.PortalPath
s in a consistent
order.
getPortalPaths
in interface IPortalDefinitionManager
customizationContext
- customization informationbegin
- begin indexend
- end indexwebapp
- web application these desktop definitions are scoped to.
PortalPath
s
RemoteException
public PortalDefinition[] getPortalDefinitions(CustomizationContext customizationContext, PortalPath[] portalPaths, String webapp) throws RemoteException, ObjectNotFoundException
PortalDefinition
s corresponding
to an array of PortalPath
s.
getPortalDefinitions
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPaths
- array of PortalPath
swebapp
- web application these desktop definitions are scoped to.
PortalDefinition
s
ObjectNotFoundException
- if portal for any key does not exist
RemoteException
public PortalView[] getPortalDefinitionViews(CustomizationContext customizationContext, PortalPath[] portalPaths, String webapp) throws RemoteException, ObjectNotFoundException
PortalView
s corresponding
to an array of PortalPath
s.
getPortalDefinitionViews
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPaths
- array of PortalPath
swebapp
- web application these desktop definitions are scoped to.
PortalView
s
ObjectNotFoundException
- if portal for any key does not exist
RemoteException
public int getDesktopDefinitionCount(CustomizationContext customizationContext, PortalPath portalPath, String webapp) throws RemoteException
DesktopDefinition
s under
portal
portalPath
.
getDesktopDefinitionCount
in interface IPortalDefinitionManager
portalPath
- PortalPath
webapp
- web application these desktop definitions are scoped to.
PortletDefinition
s under portal
represented by portalPath
RemoteException
public DesktopDefinition[] getDesktopDefinitions(CustomizationContext customizationContext, PortalPath portalPath, int begin, int end, String webapp) throws RemoteException
DesktopDefinition
s in the begin
and end
range under the portal portalPath
.
If fewer DesktopDefinition
s than (begin-end) exist
then the former number is returned. If no definitions are
found an empty array is returned.DesktopDefinition
s.DesktopDefinition
s in a consistent
order.
getDesktopDefinitions
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPath
- PortalPath
begin
- begin indexend
- end indexwebapp
- web application these desktop definitions are scoped to.
DesktopDefinition
s
RemoteException
public DesktopView[] getDesktopViews(CustomizationContext customizationContext, PortalPath portalPath, int begin, int end, String webapp) throws RemoteException, ObjectNotFoundException
DesktopView
s in the begin
and
end
range under the portal portalPath
. If fewer
views than (begin-end) exist then the former number of views is returned.
If no views are found an empty array is returned.DesktopDefinition
s.DesktopView
s in a consistent
order.
getDesktopViews
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPath
- PortalPath
begin
- begin indexend
- end indexwebapp
- web application these desktop definitions are scoped to.
DesktopView
s
RemoteException
ObjectNotFoundException
public PortalPath[] getDesktopDefinitionPortals(CustomizationContext customizationContext, DesktopPath desktopPath, String webapp) throws RemoteException
PortalPath
s that a
DesktopDefinition
is a part of. Returns an empty array
if the latter is noncategorized.
getDesktopDefinitionPortals
in interface IPortalDefinitionManager
desktopPath
- DesktopPath
webapp
- web application these desktop definitions are scoped to.
PortalPath
s
RemoteException
public PortalDefinition createPortalDefinition(CustomizationContext customizationContext, PortalDefinition pd) throws RemoteException, NotEntitledException, MissingDataException, DuplicateObjectException
PortalDefinition
from the provided PortalDefinition
.
createPortalDefinition
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localespd
- PortalDefinition
PortalDefinition
NotEntitledException
- if caller does not have permission for this
operation
MissingDataException
- if data required to create a portal is
missing
DuplicateObjectException
- if this or another webapp already has a portal with the same partial path
RemoteException
public int deletePortalDefinition(CustomizationContext customizationContext, PortalPath portalPath, String webapp) throws RemoteException, NotEntitledException
deletePortalDefinition
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPath
- PortalPath for PortalDefinition to be removedwebapp
- web application these desktop definitions are scoped to.
NotEntitledException
- if caller does not have permission for this
operation
RemoteException
public void updatePortalDefinition(CustomizationContext customizationContext, PortalPath portalPath, PortalDefinition newPd) throws RemoteException, ObjectNotFoundException, ObjectInUseException, NotEntitledException, MissingDataException
updatePortalDefinition
in interface IPortalDefinitionManager
customizationContext
- customization information such as prefered
localesportalPath
- PortalPath to PortalDefinition to be updatednewPd
- new PortalDefinition
ObjectNotFoundException
- if portal does not exist
NotEntitledException
- if caller does not have permission for this
operation
MissingDataException
- if data required to update a portal is
missing
RemoteException
ObjectInUseException
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |