|
© 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.PortletCategoryManagerImpl
PortletCategoryManagerImpl
Field Summary | |
protected static Debug |
debug
|
Constructor Summary | |
PortletCategoryManagerImpl()
|
Method Summary | |
void |
addPortletDefinition(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
PortletDefinitionId pdId)
Adds a PortletDefinitionId to a portlet category. |
PortletCategoryDefinition |
createCategory(CustomizationContext customizationContext,
PortletCategoryDefinition pcd)
Creates a persistant version of a PortletCategoryDefinition
from the provided PortletCategoryDefinition . |
PortletCategoryDefinition |
createRootCategory(CustomizationContext customizationContext,
PortletCategoryDefinition root)
Creates and returns a ROOT category |
int |
deleteCategory(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Removes all (including localized) versions of a category. |
void |
deletePortletDefinition(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
PortletDefinitionId pdId)
Deletes a PortletDefinitionId from a portlet category. |
int |
deletePortletDefinitions(CustomizationContext customizationContext,
PortletDefinitionId pdId)
Deletes a PortletDefinitionId from all portlet categories. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
PortletCategoryDefinitionId[] |
getAncestorIds(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns an array of PortletCategoryDefinitionId s that
represent the ancestors of a category starting with the parent
category and ending with the root. |
PortletCategoryDefinition[] |
getAncestors(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns an array of PortletCategoryDefinition s that
represent the ancestors of a category starting with the parent
category and ending with the root. |
PortletCategoryDefinition[] |
getCategories(CustomizationContext customizationContext,
PortletCategoryDefinitionId[] pcdId)
Returns an array of PortletCategoryDefinition s corresponding
to an array of PortletCategoryDefinitionId s. |
PortletCategoryDefinition |
getCategory(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns a PortletCategoryDefinition corresponding to a
PortletCategoryDefinitionId . |
int |
getCategoryCount(CustomizationContext customizationContext,
String webAppName)
Returns the number of categories recursively starting with the root category. |
PortletCategoryDefinitionId[] |
getCategoryIds(CustomizationContext customizationContext,
int begin,
int end,
String webAppName)
Returns an array of PorletCategoryDefinitionId s in the
begin and end range. |
PortletCategoryView |
getCategoryView(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns a PortletCategoryView corresponding to a
PortletCategoryDefinitionId . |
PortletCategoryView[] |
getCategoryViews(CustomizationContext customizationContext,
PortletCategoryDefinitionId[] pcdId)
Returns an array of PortletCategoryView s corresponding
to an array of PortletCategoryDefinitionId s. |
int |
getNonCategorizedPortletDefinitionCount(CustomizationContext customizationContext,
String webAppName)
Returns the number of PortletDefinition s that are
not included under any category. |
PortletDefinitionId[] |
getNonCategorizedPortletDefinitionIds(CustomizationContext customizationContext,
int begin,
int end,
String webAppName)
Returns noncategorized PortletDefinitionId s in the
begin and end range. |
PortletDefinition[] |
getNonCategorizedPortletDefinitions(CustomizationContext customizationContext,
int begin,
int end,
String webAppName)
Returns noncategorized PortletDefinition s in the
begin and end range. |
PortletView[] |
getNonCategorizedPortletViews(CustomizationContext customizationContext,
int begin,
int end,
String webAppName)
Returns noncategorized PortletView s in the
begin and end range. |
PortletCategoryDefinitionId[] |
getPortletDefinitionCategories(CustomizationContext customizationContext,
PortletDefinitionId pdId)
Returns all the PortletCategoryDefinition s that a
PortletDefinition is a part of. |
int |
getPortletDefinitionCount(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns the number of PortletDefinition s under category
pcdId . |
PortletDefinition[] |
getPortletDefinitions(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns PortletDefinition s in the begin
and end range under the category pcdId .
|
PortletView[] |
getPortletViews(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns PortletView s in the begin and
end range under the category pcdId . |
PortletCategoryDefinition |
getRootCategory(CustomizationContext customizationContext,
String webAppName)
Returns root of the PortletCategory hierarchy. |
PortletCategoryDefinition[] |
getSiblingCategories(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns an array of PorletCategoryDefinition s for
sibling categories of the category represented by pcdId in
the begin and end range.If fewer categories
than (begin-end) exist then the former number of categories is
returned. |
int |
getSiblingCategoryCount(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns the number of categories at the same level as a category. |
PortletCategoryDefinitionId[] |
getSiblingCategoryIds(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns an array of PorletCategoryDefinitionId s for
sibling categories of the category represented by pcdId in
the begin and end range. |
PortletCategoryView[] |
getSiblingCategoryViews(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns an array of PorletCategoryView s for
sibling categories of the category represented by pcdId in
the begin and end range.If fewer categories
than (begin-end) exist then the former number of categories is
returned. |
PortletCategoryDefinition[] |
getSubCategories(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns an array of PorletCategoryDefinition s for
subcategories of the category represented by pcdId in the
begin and end range.If fewer categories
than (begin-end) exist then the former number of categories is
returned. |
int |
getSubCategoryCount(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId)
Returns the number of immediate categories under category pcdId . |
PortletCategoryDefinitionId[] |
getSubCategoryIds(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
int begin,
int end)
Returns an array of PorletCategoryDefinitionId s for
subcategories of the category represented by pcdId in the
begin and end range. |
void |
moveCategory(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
PortletCategoryDefinitionId newParentId)
Moves a category under a new parent. |
void |
setSessionContext(SessionContext sessionContext)
|
void |
updateCategory(CustomizationContext customizationContext,
PortletCategoryDefinitionId pcdId,
PortletCategoryDefinition newPcd)
Updates a locale specific version of a category based on a new PortletCategoryDefinition . |
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 PortletCategoryManagerImpl()
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 PortletCategoryDefinition createRootCategory(CustomizationContext customizationContext, PortletCategoryDefinition root) throws MissingDataException, NotEntitledException
createRootCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localesroot
- PortletCategoryDefinition for ROOT category
MissingDataException
- if some data is missing
NotEntitledException
- if caller does not have permission for this
operationpublic PortletCategoryDefinition getRootCategory(CustomizationContext customizationContext, String webAppName) throws ObjectNotFoundException
getRootCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localeswebAppName
- the name of the webapp as defined in the config.xml
PortletCategoryDefinition
.
ObjectNotFoundException
- if the root category does not existpublic int getCategoryCount(CustomizationContext customizationContext, String webAppName)
getCategoryCount
in interface IPortletCategoryManager
webAppName
- the name of the webapp as defined in the config.xml
public PortletCategoryDefinition getCategory(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId) throws ObjectNotFoundException
PortletCategoryDefinition
corresponding to a
PortletCategoryDefinitionId
.
getCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
PortletCategoryDefinition
ObjectNotFoundException
- if no category definition is foundpublic PortletCategoryView getCategoryView(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId) throws ObjectNotFoundException
PortletCategoryView
corresponding to a
PortletCategoryDefinitionId
.PortletCategoryDefinitionId
in the category hierarchy the larger the size of the returned
PortletCategoryView
object is going to be. An example of
such a degenerative case would be to call this method for the root
category in which case all category definitions and all portlet
definitions that are categorized will be returned.
getCategoryView
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
PortletCategoryView
ObjectNotFoundException
- if no category definition is foundpublic PortletCategoryDefinitionId[] getCategoryIds(CustomizationContext customizationContext, int begin, int end, String webAppName)
PorletCategoryDefinitionId
s in the
begin
and end
range. If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletCategoryDefinitionId
s in a consistent
order.
getCategoryIds
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localesbegin
- begin indexend
- end indexwebAppName
- as defined in the config.xml
PortletCategoryDefinitionId
spublic PortletCategoryDefinition[] getCategories(CustomizationContext customizationContext, PortletCategoryDefinitionId[] pcdId) throws ObjectNotFoundException
PortletCategoryDefinition
s corresponding
to an array of PortletCategoryDefinitionId
s.
getCategories
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- array of PortletCategoryDefinitionId
s
PortletCategoryDefinition
s
ObjectNotFoundException
- if category for any key does not existpublic PortletCategoryView[] getCategoryViews(CustomizationContext customizationContext, PortletCategoryDefinitionId[] pcdId) throws ObjectNotFoundException
PortletCategoryView
s corresponding
to an array of PortletCategoryDefinitionId
s.PortletCategoryDefinition
s in the
method argument are parents or children of one another duplicated data
will get returned in the PortletCategoryView
objects.
getCategoryViews
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- array of PortletCategoryDefinitionId
s
PortletCategoryView
s
ObjectNotFoundException
- if category for any key does not existnote for caveat
public PortletCategoryDefinitionId[] getAncestorIds(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId) throws ObjectNotFoundException
PortletCategoryDefinitionId
s that
represent the ancestors of a category starting with the parent
category and ending with the root.
getAncestorIds
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
PortletCategoryDefinitionId
s
ObjectNotFoundException
- if category does not existpublic PortletCategoryDefinition[] getAncestors(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId) throws ObjectNotFoundException
PortletCategoryDefinition
s that
represent the ancestors of a category starting with the parent
category and ending with the root.
getAncestors
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
PortletCategoryDefinition
s
ObjectNotFoundException
- if category does not existpublic int getSubCategoryCount(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId)
pcdId
.
getSubCategoryCount
in interface IPortletCategoryManager
pcdId
- PortletCategoryDefinitionId
pcdId
public PortletCategoryDefinitionId[] getSubCategoryIds(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end)
PorletCategoryDefinitionId
s for
subcategories of the category represented by pcdId
in the
begin
and end
range. If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletCategoryDefinitionId
s in a consistent
order.
getSubCategoryIds
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletCategoryDefinitionId
spublic PortletCategoryDefinition[] getSubCategories(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end) throws ObjectNotFoundException
PorletCategoryDefinition
s for
subcategories of the category represented by pcdId
in the
begin
and end
range.If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletCategoryDefinition
s in a consistent
order.
getSubCategories
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletCategoryDefinition
s
ObjectNotFoundException
- if category does not existpublic int getSiblingCategoryCount(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId)
getSiblingCategoryCount
in interface IPortletCategoryManager
pcdId
- PortletCategoryDefinitionId
pcdId
public PortletCategoryDefinitionId[] getSiblingCategoryIds(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end)
PorletCategoryDefinitionId
s for
sibling categories of the category represented by pcdId
in
the begin
and end
range. If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletCategoryDefinitionId
s in a consistent
order.
getSiblingCategoryIds
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletCategoryDefinitionId
spublic PortletCategoryDefinition[] getSiblingCategories(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end) throws ObjectNotFoundException
PorletCategoryDefinition
s for
sibling categories of the category represented by pcdId
in
the begin
and end
range.If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletCategoryDefinition
s in a consistent
order.
getSiblingCategories
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletCategoryDefinition
s
ObjectNotFoundException
- if category does not existpublic PortletCategoryView[] getSiblingCategoryViews(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end) throws ObjectNotFoundException
PorletCategoryView
s for
sibling categories of the category represented by pcdId
in
the begin
and end
range.If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletCategoryDefinition
s in a consistent
order.
getSiblingCategoryViews
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletCategoryDefinition
s
ObjectNotFoundException
- if category does not existnote for caveat
public int getPortletDefinitionCount(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId)
PortletDefinition
s under category
pcdId
.
getPortletDefinitionCount
in interface IPortletCategoryManager
pcdId
- PortletCategoryDefinitionId
PortletDefinition
s under category
pcdId
public PortletDefinition[] getPortletDefinitions(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end)
PortletDefinition
s in the begin
and end
range under the category pcdId
.
If fewer PortletDefinition
s than (begin-end) exist
then the former number is returned. If no definitions are
found an empty array is returned.PortletDefinition
s.PortletDefinition
s in a consistent
order.
getPortletDefinitions
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletDefinition
spublic PortletView[] getPortletViews(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, int begin, int end) throws ObjectNotFoundException
PortletView
s in the begin
and
end
range under the category pcdId
. 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.PortletDefinition
s.PortletView
s in a consistent
order.
getPortletViews
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
begin
- begin indexend
- end index
PortletView
s
ObjectNotFoundException
note for caveat
public void addPortletDefinition(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, PortletDefinitionId pdId) throws NotEntitledException
PortletDefinitionId
to a portlet category.
addPortletDefinition
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
pdId
- PortletDefinitionId
NotEntitledException
- is caller does not have permission for this
operationpublic void deletePortletDefinition(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, PortletDefinitionId pdId) throws NotEntitledException
PortletDefinitionId
from a portlet category.
deletePortletDefinition
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
pdId
- PortletDefinitionId
NotEntitledException
- if caller does not have permission for this
operationpublic int deletePortletDefinitions(CustomizationContext customizationContext, PortletDefinitionId pdId) throws RemoteException, NotEntitledException
PortletDefinitionId
from all portlet categories.
deletePortletDefinitions
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespdId
- PortletDefinitionId
PortletDefinitions
deleted
NotEntitledException
- if caller does not have permission for this
operation
RemoteException
public PortletCategoryDefinitionId[] getPortletDefinitionCategories(CustomizationContext customizationContext, PortletDefinitionId pdId)
PortletCategoryDefinition
s that a
PortletDefinition
is a part of. Returns an empty array
if the latter is noncategorized.
getPortletDefinitionCategories
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespdId
- PortletDefinitionId
PortletCategoryDefinitionId
spublic int getNonCategorizedPortletDefinitionCount(CustomizationContext customizationContext, String webAppName)
PortletDefinition
s that are
not included under any category.
getNonCategorizedPortletDefinitionCount
in interface IPortletCategoryManager
webAppName
- the web app name as defined in the config.xml
PortletDefinition
spublic PortletDefinitionId[] getNonCategorizedPortletDefinitionIds(CustomizationContext customizationContext, int begin, int end, String webAppName)
PortletDefinitionId
s in the
begin
and end
range. If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletDefinitionId
s.PortletDefinition
s in a consistent
order.
getNonCategorizedPortletDefinitionIds
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localesbegin
- begin indexend
- end indexwebAppName
- the web app name as defined in the config.xml
PortletDefinitionId
spublic PortletDefinition[] getNonCategorizedPortletDefinitions(CustomizationContext customizationContext, int begin, int end, String webAppName)
PortletDefinition
s in the
begin
and end
range. If fewer categories
than (begin-end) exist then the former number of categories is
returned. If no definitions are found an empty array is returned.PortletDefinition
s.PortletDefinition
s in a consistent
order.
getNonCategorizedPortletDefinitions
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localesbegin
- begin indexend
- end indexwebAppName
- the web app name as defined in the config.xml
PortletDefinition
spublic PortletView[] getNonCategorizedPortletViews(CustomizationContext customizationContext, int begin, int end, String webAppName)
PortletView
s in the
begin
and end
range. If fewer categories
than (begin-end) exist then the former number of category views is
returned. If no definitions are found an empty array is returned.PortletDefinition
s.PortletView
s in a consistent
order.
getNonCategorizedPortletViews
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localesbegin
- begin indexend
- end indexwebAppName
- the web app name as defined in the config.xml
PortletView
spublic PortletCategoryDefinition createCategory(CustomizationContext customizationContext, PortletCategoryDefinition pcd) throws NotEntitledException, MissingDataException
PortletCategoryDefinition
from the provided PortletCategoryDefinition
.
createCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcd
- PortletCategoryDefinition
PortletCategoryDefinition
NotEntitledException
- if caller does not have permission for this
operation
MissingDataException
- if data required to create a category is
missingpublic int deleteCategory(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId) throws NotEntitledException
deleteCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- category to be removed
NotEntitledException
- if caller does not have permission for this
operationpublic void updateCategory(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, PortletCategoryDefinition newPcd) throws NotEntitledException, MissingDataException, RemoteException, ObjectNotFoundException
PortletCategoryDefinition
.
updateCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PorletCategoryDefinitionId
newPcd
- new PorletCategoryDefinition
NotEntitledException
- if caller does not have permission for this
operation
ObjectNotFoundException
- if category does not exist
MissingDataException
- if data required to update a category is
missing
RemoteException
public void moveCategory(CustomizationContext customizationContext, PortletCategoryDefinitionId pcdId, PortletCategoryDefinitionId newParentId) throws ObjectNotFoundException, NotEntitledException
moveCategory
in interface IPortletCategoryManager
customizationContext
- customization information such as prefered
localespcdId
- PortletCategoryDefinitionId
newParentId
- new parent PortletCategoryDefinitionId
ObjectNotFoundException
- if category does not exist
NotEntitledException
- if caller does not have permission for this
operation
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |