|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.portalbeans.categories.DisplayCategoryManager
PortletCategoryManager class.
The DisplayCategoryManager is used to manage
display categories. This class is a singleton. It
manages all the module display categories for each site and for the system.
| Field Summary | |
static String |
ALL_CUSTOM_CATEGORIES
Deprecated. |
static String |
ALL_SYSTEM_CATEGORIES
Deprecated. |
protected static String |
OTHER_CATEGORY
Deprecated. |
static String |
OTHER_CATEGORY_IN_SITE
Deprecated. |
static String |
OTHER_CATEGORY_IN_SYSTEM
Deprecated. |
| Method Summary | |
boolean |
addCategoryToPage(String catID,
String pageID,
String siteID)
Deprecated. Places the category on the specified page. |
boolean |
changeCategoryOfModule(String modID,
String catID,
String siteID)
Deprecated. Places the module in the specified category in the given site. |
boolean |
changeCategoryOfModuleInServer(String modID,
String catID)
Deprecated. Places the module in the specified category in the server console. |
DisplayCategory |
createCategory(String title,
String friendlyID,
String desc)
Deprecated. as of version 4.0, replaced by DisplayCategoryManager.createCategoryInSite(String, String, String, String) |
DisplayCategory |
createCategoryInServer(String title,
String desc)
Deprecated. Creates and persistifies a new system category with the given title and description. |
DisplayCategory |
createCategoryInSite(String title,
String desc,
String siteID)
Deprecated. Creates and persistifies a new category with the given title and description in the specified site. |
DisplayCategory |
createCategoryInSite(String title,
String desc,
String siteID,
String friendlyID)
Deprecated. Creates and persistifies a new category with the given title and description in the specified site. |
DisplayCategory |
createCategoryInSiteNew(String title,
String desc,
String siteID,
String friendlyID)
Deprecated. |
protected DisplayCategory |
createCustomCategoryWithUID(String UID,
String title,
String desc,
String siteID,
String friendlyID,
Date createdDate)
Deprecated. |
void |
deleteCategory(String catID)
Deprecated. Deletes the display category with the given UID. |
Enumeration |
getAllCategories()
Deprecated. as of version 4.0, replaced by DisplayCategoryManager.listCategoriesInSite(String) |
DisplayCategory |
getCategoryByID(String catFriendlyID)
Deprecated. as of version 4.0 as friendly IDs are no longer used for most applications, No replacement. |
DisplayCategory |
getCategoryByModuleID(String modID,
String siteID)
Deprecated. Returns the display category that contains the module with the specified ID. |
DisplayCategory |
getCategoryByTitle(String title)
Deprecated. as of version 4.0, replaced by DisplayCategoryManager.getCategoryByTitle(String, String) |
DisplayCategory |
getCategoryByTitle(String title,
String siteID)
Deprecated. Returns the display category with the specified title in the given site. |
DisplayCategory |
getCategoryByTitleNew(String title,
String siteID)
Deprecated. |
DisplayCategory |
getCategoryByUID(String catID)
Deprecated. Returns the display category with the specified UID. |
DisplayCategory |
getCategoryInServerByModuleID(String modID)
Deprecated. Returns the display category in the server console that contains the specified module. |
DisplayCategory |
getCategoryInServerByTitle(String title)
Deprecated. Returns the system display category with the given title. |
boolean |
getDescriptorIsLoaded()
Deprecated. as of version 4.0, No Replacement |
boolean |
getDisplayAllCategoriesOnPage(String pageID,
String siteID)
Deprecated. Returns true if all display categories are shown on the
specified page. |
static DisplayCategoryManager |
getInstance()
Deprecated. Returns the single instance of the DisplayCategoryManager. |
OtherCategory |
getOtherCategoryForServer()
Deprecated. Returns the other category for the system. |
OtherCategory |
getOtherCategoryForSite(String siteID)
Deprecated. Returns the other category for the given
site. |
OtherCategory |
getOtherCategoryForSite(String siteID,
boolean isCustom)
Deprecated. Returns the specified other category for the given
site. |
protected static PortalBean |
getPortalBean(com.vignette.portal.portlet.management.external.Portlet portlet)
Deprecated. |
protected static com.vignette.portal.portlet.management.external.Portlet |
getPortlet(String moduleID)
Deprecated. |
protected com.vignette.portal.portlet.management.external.PortletCategory |
getPortletCategory(String UID)
Deprecated. |
Collection |
getSupportedUIDTypes()
Deprecated. Returns a collection of the UID Types that this manager supports. |
boolean |
isCategoryOnPage(String catID,
String pageID,
String siteID)
Deprecated. Indicates whether the given page contains the given category. |
boolean |
isModuleInCategory(String modID,
String catID,
String siteID)
Deprecated. Indicates whether the given module is in the given category on the given site, regardless of whether the site is using system or custom display categories. |
boolean |
isModuleInCategoryInServer(String modID,
String catID)
Deprecated. Indicates whether the given module is in the given category in the server console. |
Iterator |
listCategoriesInServer()
Deprecated. Returns an Iterator over all system display categories except the Other category. |
Iterator |
listCategoriesInSite(String siteID)
Deprecated. Returns an Iterator over the categories on a given site that it is currently set to use. |
Iterator |
listCategoriesInSiteNew(String siteID)
Deprecated. |
Iterator |
listCategoriesOnPage(String pageID,
String siteID)
Deprecated. Returns an Iterator over all categories that the site will display on the given page. |
Iterator |
listCustomCategoriesInSite(String siteID)
Deprecated. Returns an Iterator over all custom categories on the given site except the Other category regardless of whether the site is using system or custom categories. |
Iterator |
listModulesInCategory(String catID)
Deprecated. Returns an iterator over all the modules in the category. |
void |
loadDescriptorFromServer()
Deprecated. as of version 7.0, Use new Portlet Categories API |
void |
removeAllCategoriesFromPage(String pageID,
String siteID)
Deprecated. Removes all display categories from the given page and site. |
boolean |
removeCategoryFromPage(String catID,
String pageID,
String siteID)
Deprecated. Removes the display category from the page. |
void |
save()
Deprecated. Saves all display categories to persistent storage. |
void |
save(String catID)
Deprecated. |
void |
setDescriptorIsLoaded(String value)
Deprecated. as of version 4.0, No Replacement |
void |
setDisplayAllCategoriesOnPage(String pageID,
String siteID,
boolean displayAll)
Deprecated. Determines whether to display all categories collectively from the specified page. |
void |
upgradeTo7_0()
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.epicentric.uid.internal.UniquelyIdentifiableManager |
deleteObjectFromUID, getObjectFromUID |
| Methods inherited from interface com.epicentric.common.listgenerator.ListGenerator |
getList, getList |
| Field Detail |
protected static final String OTHER_CATEGORY
public static final String OTHER_CATEGORY_IN_SITE
public static final String OTHER_CATEGORY_IN_SYSTEM
public static final String ALL_CUSTOM_CATEGORIES
public static final String ALL_SYSTEM_CATEGORIES
| Method Detail |
public void upgradeTo7_0()
protected com.vignette.portal.portlet.management.external.PortletCategory getPortletCategory(String UID)
protected static com.vignette.portal.portlet.management.external.Portlet getPortlet(String moduleID)
protected static PortalBean getPortalBean(com.vignette.portal.portlet.management.external.Portlet portlet)
public boolean addCategoryToPage(String catID,
String pageID,
String siteID)
false if the category does not exist or is already on the
page.catID - the UID of the category to be added to the pagepageID - the UID of the page that the category is to be added tositeID - the UID of the site that this page is ontrue if the category was successfully added to the
page
public boolean changeCategoryOfModule(String modID,
String catID,
String siteID)
false
if the category does not exist.modID - the UID of the module which is being moved to a new
display categorycatID - the UID of the new display category to which the module
will belongsiteID - the UID of the site in which this category belongstrue if module now belongs to specified category
public boolean changeCategoryOfModuleInServer(String modID,
String catID)
false if the category does not exist.modID - the UID of the module which is being moved to a new
display categorycatID - the UID of the new display category to which the module
will belongtrue if module now belongs to specified category
public DisplayCategory createCategory(String title,
String friendlyID,
String desc)
throws CategoryStoreException
DisplayCategoryManager.createCategoryInSite(String, String, String, String)
null if not successful. Duplicate
titles are not allowed.
If this method is called it is assumed that a category should be created in the system repository.
title - a String representing the title of the display category to
be createdfriendlyID - a String representing the friendlyID of the display category to
be createddesc - a String representing a description of the types of modules
in the display category to be created
public DisplayCategory createCategoryInServer(String title,
String desc)
throws CategoryStoreException
title - a String representing the title of the system category to
be createddesc - a String that provides a description of what modules are
contained by the category to be created
public DisplayCategory createCategoryInSite(String title,
String desc,
String siteID)
throws CategoryStoreException
title - a String representing the title of the display category to
be createddesc - a String representing a description of the types of modules
in the display category to be createdsiteID - the UID of the site in which the display category should
be created
public DisplayCategory createCategoryInSite(String title,
String desc,
String siteID,
String friendlyID)
throws CategoryStoreException
title - a String representing the title of the display category to
be createddesc - a String representing a description of the types of modules
in the display category to be createdsiteID - the UID of the site in which the display category should
be createdfriendlyID - a String representing a friendlyID of the display
category to be created
public DisplayCategory createCategoryInSiteNew(String title,
String desc,
String siteID,
String friendlyID)
throws CategoryStoreException
protected DisplayCategory createCustomCategoryWithUID(String UID,
String title,
String desc,
String siteID,
String friendlyID,
Date createdDate)
throws CategoryStoreException
public void deleteCategory(String catID)
catID - the UID of the display category to be deletedpublic Enumeration getAllCategories()
DisplayCategoryManager.listCategoriesInSite(String)
public DisplayCategory getCategoryByID(String catFriendlyID)
catID - the friendly ID of the display category to be returned
public DisplayCategory getCategoryByModuleID(String modID,
String siteID)
modID - the UID of the module that is contained by the category to
be returnedsiteID - the UID of the site that contains the display category to
be returnedpublic DisplayCategory getCategoryByTitle(String title)
DisplayCategoryManager.getCategoryByTitle(String, String)
title - a string specifying the title of the category to be
returned
public DisplayCategory getCategoryByTitle(String title,
String siteID)
title - a string specifying the title of the category to be
returnedsiteID - the UID of the site that contains this categorynull if no such display category exists
public DisplayCategory getCategoryByTitleNew(String title,
String siteID)
public DisplayCategory getCategoryByUID(String catID)
null if no category exists with the specified UID.catID - the UID of the display category to be returnednull
if no such category existspublic DisplayCategory getCategoryInServerByModuleID(String modID)
null if no system display
category contains the specified module.modID - the UID of the modulepublic DisplayCategory getCategoryInServerByTitle(String title)
null if no system display category has the specified title.title - a string representing the title of the display categorypublic boolean getDescriptorIsLoaded()
true if the descriptor has been loaded from the
metastore. This class no longer uses the metastore to keep track of
whether the descriptor has been loaded. The functionality of this
method is in effect handled by
com.epicentric.components.PortalServicesComponent#init0()false
public boolean getDisplayAllCategoriesOnPage(String pageID,
String siteID)
true if all display categories are shown on the
specified page.pageID - the UID of the page that the categories will be displayed
onsiteID - the UID of the site on which the page is being modifiedtrue if all categories will be displayed on the
specified pagepublic static DisplayCategoryManager getInstance()
public OtherCategory getOtherCategoryForSite(String siteID)
other category for the given
site. This will be the Other Category that belongs to the set of categories
that the site is currently using. In other words this method will return either
the system other category or this site's custom other category depending on
whether the site is using system or custom categories.siteID - the UID of the site
public OtherCategory getOtherCategoryForSite(String siteID,
boolean isCustom)
other category for the given
site.siteID - the UID of the siteisCustom - if true, will return the custom Other Category for
this site, otherwise will return the system Other Category.DisplayCategoryManager.getOtherCategoryForSite(String siteID)public OtherCategory getOtherCategoryForServer()
public Collection getSupportedUIDTypes()
getSupportedUIDTypes in interface com.epicentric.uid.internal.UniquelyIdentifiableManager
public boolean isCategoryOnPage(String catID,
String pageID,
String siteID)
catID - the UID of the category that is being testedpageID - the UID of the page that may contain the display categorysiteID - the UID of the site that this page is ontrue if the category is contained on the page.
public boolean isModuleInCategory(String modID,
String catID,
String siteID)
modID - the UID of the module that is being testedcatID - the UID of the category that may contain the modulesiteID - the UID of the site that the category is ontrue if the module is contained in the display
category
public boolean isModuleInCategoryInServer(String modID,
String catID)
modID - the UID of the module that is being testedcatID - the UID of the category that may contain the moduletrue if the module is contained in the display
categorypublic Iterator listCategoriesInServer()
public Iterator listCategoriesInSite(String siteID)
siteID - the UID of the site for which all categories are to be
foundpublic Iterator listCategoriesInSiteNew(String siteID)
public Iterator listCategoriesOnPage(String pageID,
String siteID)
pageID - the UID of the page for which the categories are to be
foundsiteID - the UID of the site for which the categories are to be
foundpublic Iterator listCustomCategoriesInSite(String siteID)
siteID - the UID of the site for which all categories are to be
foundpublic Iterator listModulesInCategory(String catID)
uniquely identifiable items.catID - the UID of the category containing the modules to be
returned
public void loadDescriptorFromServer()
throws CategoryDescriptorException
public void removeAllCategoriesFromPage(String pageID,
String siteID)
false.pageID - the UID of the page from which to remove the categoriessiteID - the UID of the site from which to remove the categories
public boolean removeCategoryFromPage(String catID,
String pageID,
String siteID)
catID - the UID of the category to be removedpageID - the UID of the page from which the category should be
removedtrue if page was modified (in other words, if page
used to contain the category and no longer does)
public void save()
throws CategoryStoreException
public void save(String catID)
throws CategoryStoreException
public void setDescriptorIsLoaded(String value)
true, it indicates that the categories in this system have
ever been initialized on this server from the Category Descriptor
file. This class no longer uses the metastore to keep track of whether
the descriptor has been loaded. The functionality of this method is
handled by
com.epicentric.components.PortalServicesComponent#init0()value - the value to be stored in the metastore
public void setDisplayAllCategoriesOnPage(String pageID,
String siteID,
boolean displayAll)
pageID - the UID of the page that the categoroes are to be
displayed onsiteID - the UID of the site on which the page is being modifieddisplayAll - true if all categories should be
displayed on the specified page
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||