|
||||||||||
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.Version
public class Version
TheVersion
class provides a means of organizing (by version) Report Library content, which exists as a result of scheduled distributions to the library. In addition to theVersion
class, other classes involved in the hierarchical organization of Report Library content areCategory
andContent
whereby Category exists at the top of the hierarchy (i.e., the parent), followed by Content, and then finally nested below that the actual Versions. It is important to note that some methods contained in this class involve functions generally owned by the Distribution Server. While the programmer may have the ability through the use of the ReportCaster API to reset actions taken by the Distribution Server, such actions should be done with extreme caution. A code example illustrating the use ofVersion
is below. This is taken from the samples directory packaged with the product. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 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. + + + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ String getLatestReportId(String contentId) throws CasterException { Content content = contentManager.getAccessibleContentInfo(contentId); Version[] versionList = content.getVersionList(); if(versionList==null || versionList.length ==0){ System.out.println("No versioned report available."); return null; } //version is already sorted by number. return versionList[versionList.length-1].getId(); }
Field Summary | |
---|---|
static java.lang.String |
AHTML
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
EXCEL_TEMPLATE
This is one of the valid values of the property format . |
static java.lang.String |
EXL2K_PIVOT
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_ALPHA
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_COM
|
static java.lang.String |
FORMAT_COMMA
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_COMT
This is one of the valid values of the property format . |
static java.lang.String |
FORMAT_DOC
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_EXCEL
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_EXL2K
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_EXL2K_FORMULA
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_EXL97
This is one of the valid values of the property format . |
static java.lang.String |
FORMAT_GIF
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_HTML
This is one of the valid values of the property format . |
static java.lang.String |
FORMAT_PDF
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_PPT
|
static java.lang.String |
FORMAT_PPTX
|
static java.lang.String |
FORMAT_PS
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_TABT
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_WK1
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_WP
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
FORMAT_XML
String constant representing one of the valid formats for versions of content in the Report Library. |
static java.lang.String |
PNG
This is one of the valid values of the property format . |
static java.lang.String |
SVG
This is one of the valid values of the property format . |
Fields inherited from class ibi.broker.api.data.content.ContentObject |
---|
id |
Constructor Summary | |
---|---|
Version()
|
Method Summary | |
---|---|
java.lang.String |
getCompressFormat()
|
long |
getCompressSize()
|
java.util.Calendar |
getCreateDate()
Obtains the creation date for this version of Report Library content. |
java.util.Calendar |
getExpireDate()
Obtains the expiration date for this version of Report Library content. |
java.lang.String |
getFormat()
Obtains the format of this version of Report Library content as a String constant. |
long |
getSize()
Obtains the size of this version of Report Library content. |
int |
getVersionNumber()
Specifies an integer version number to content in ReportCaster's Report Library database. |
void |
setCompressFormat(java.lang.String compressFormat)
|
void |
setCompressSize(long compressSize)
|
void |
setCreateDate(java.util.Calendar createDate)
Assigns the creation date for this version of Report Library content. |
void |
setExpireDate(java.util.Calendar expireDate)
Assigns the expiration date for this version of Report Library content. |
void |
setFormat(java.lang.String format)
Assigns the format of this version of Report Library content as a String constant. |
void |
setSize(long size)
Assigns the size of this version of Report Library content. |
void |
setVersionNumber(int versionNumber)
Assigns an integer version number to the content in ReportCaster's Report Library database. |
void |
validate(java.lang.String parentName)
Assists in validating arguments |
Methods inherited from class ibi.broker.api.data.content.ContentObject |
---|
equals, getId, hashCode, setId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AHTML
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_HTML
format
.
setFormat(String format)
,
Constant Field Valuespublic static final java.lang.String FORMAT_PDF
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_GIF
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_XML
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_PS
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_DOC
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_WP
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_EXCEL
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_EXL2K
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_EXL2K_FORMULA
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String EXL2K_PIVOT
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String EXCEL_TEMPLATE
format
.
setFormat(String format)
,
Constant Field Valuespublic static final java.lang.String FORMAT_EXL97
format
.
setFormat(String format)
,
Constant Field Valuespublic static final java.lang.String FORMAT_WK1
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_ALPHA
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_TABT
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_COMMA
setFormat(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String FORMAT_COMT
format
.
setFormat(String format)
,
Constant Field Valuespublic static final java.lang.String PNG
format
.
setFormat(String format)
,
Constant Field Valuespublic static final java.lang.String SVG
format
.
setFormat(String format)
,
Constant Field Valuespublic static final java.lang.String FORMAT_PPT
public static final java.lang.String FORMAT_PPTX
public static final java.lang.String FORMAT_COM
Constructor Detail |
---|
public Version()
Method Detail |
---|
public void setVersionNumber(int versionNumber)
versionNumber
- The version number as an integer.public int getVersionNumber()
setVersionNumber(int)
public void setCreateDate(java.util.Calendar createDate)
createDate
- The creation date as a Calendar object.public java.util.Calendar getCreateDate()
setCreateDate(Calendar)
public void setExpireDate(java.util.Calendar expireDate)
expireDate
- Calendar object represeneting the expiration date.getExpireDate()
public java.util.Calendar getExpireDate()
setExpireDate(Calendar)
public void setSize(long size)
size
- The size of the report version as a long number.setSize(long)
public long getSize()
setSize(long)
public void setFormat(java.lang.String format)
format
- String constant representing the format.getFormat()
public java.lang.String getFormat()
setFormat(String)
public java.lang.String getCompressFormat()
public void setCompressFormat(java.lang.String compressFormat)
public long getCompressSize()
public void setCompressSize(long compressSize)
public void validate(java.lang.String parentName) throws CasterException
parentName
- represented parent of this object.
CasterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |