|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibi.broker.api.data.content.ContentObject
ibi.broker.api.data.library.Category
public class Category
TheCategory
class provides a means of categorizing, storing and manipulating report library reports. In addition toCategory
, the other classes involved in the hierarchical organization of report library content areContent
andVersion
whereby Category exists at the top of the hierarchy as the root(i.e., the parent), followed by Content, and then finally nested below that the actual Versions. The code example below shows an implementation of theCategory
class. It is taken from the coding samples packaged with the product in the samples directory. + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Copyright (c) 2004 Information Builders, Inc. All Rights Reserved. + + + + Information Builders offers sample API programs as a heuristic device. + + They are not intended, as is, for production use. Licensed users are + + welcome to alter and extend these samples and deploy them in other + + environments, or alternate configurations, as they see fit. + + Information Builders will support the documented functionality of + + its API classes and methods. However, Information Builders is not + + responsible for functionality or behavior of products built with + + its API unless the documented behavior of its discrete classes and + + methods is different than the actual results. + + + + Redistributions of IBI source code and documentation must be within + + the scope of the Information Builders Software License Agreement. + + + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ public void showLibrary() throws CasterException { //category: top level Category[] categories = contentManager.getAccessibleCategoryInfoListByCaller(); if(categories.length == 0){ System.out.println("Empty library."); return; } System.out.println("Library--"); for(int i=0; i < categories.length; i++) { Category c = categories[i]; printCategoryInfo(c); //Content: second level. Organized by schedule and burst value. Content[] contents = contentManager.getAccessibleContentInfoListByCaller(c); if(contents.length==0) { System.out.println("Empty category"); continue; } for(int j=0; j < contents.length; j++) { printContentInfo(contents[j]); //use getAccessibleContentInfo to get version list. Content c1 =contentManager.getAccessibleContentInfo(contents[j].getId()); Version[] versions = c1.getVersionList(); if(versions== null ||versions.length == 0){ System.out.println("Empty content"); continue; } for(int k=0; k < versions.length; k++) printVersionInfo(versions[k]); } } }
Field Summary |
---|
Fields inherited from class ibi.broker.api.data.content.ContentObject |
---|
id |
Constructor Summary | |
---|---|
Category()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Content[] |
getContentList()
Obtains an Array of report library Content objects that are nested into this category.As the category is the parent of content in the hierarchical scheme, the content list provides access to the actual content for a given instance of category. |
java.lang.String |
getName()
Obtains the name of the category under which report library content and their related version objects will be organized. |
int |
hashCode()
|
boolean |
isCategory()
Assigns a Boolean flag indicating whether or not this category has a category name that the user has specified on the user interface when creating a new schedule for generating the reports into the library. |
boolean |
isMre()
Assigns a Boolean flag indicating whether or not the library report content under this category exists in Managed Reporting. |
void |
setCategory(boolean isCategory)
Obtains a Boolean flag indicating whether or not this category has a category name that the user has specified on the user interface when creating a new schedule for generating the reports into the library. |
void |
setContentList(Content[] contentList)
Assigns an Array of report library Content objects that are nested into this category.As the category is the parent of content in the hierarchical scheme, the content list provides access to the actual content for a given instance of category. |
void |
setMre(boolean isMre)
Obtains a Boolean flag indicating whether or not the library report content under this category exists in Managed Reporting. |
void |
setName(java.lang.String name)
Assigns the name of the category under which report library content and their related version objects will be organized. |
void |
validate(java.lang.String parentName)
Assists in validating arguments |
Methods inherited from class ibi.broker.api.data.content.ContentObject |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Category()
Method Detail |
---|
public void setName(java.lang.String name)
name
- The descriptive name of the category.getName()
public java.lang.String getName()
setName(String)
public Content[] getContentList()
setContentList(Content[])
public void setContentList(Content[] contentList)
contentList
- an array of Content objectsgetContentList()
public boolean isCategory()
setCategory(boolean)
public void setCategory(boolean isCategory)
isCategory
- Boolean flag indicating whether or not category name
is from the user inputisCategory
public boolean isMre()
setMre(boolean)
public void setMre(boolean isMre)
isMre
- Boolean flag indicating whether or not category belongs to
MRE domain.isMre
public void validate(java.lang.String parentName) throws CasterException
parentName
- represented parent of this object.
CasterException
public int hashCode()
hashCode
in class ibi.broker.api.data.content.ContentObject
public boolean equals(java.lang.Object obj)
equals
in class ibi.broker.api.data.content.ContentObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |