|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.dynalivery.repository.util.ReportRepository
|
+--com.dynalivery.repository.util.EJBReportRepository
This is an implementation of Dynalivery Report Repository based on Enterprise Java Beans. This will contain code common to all EJB implementations. Variations between EJB servers will be encapsulated as much as possible in classes extending this class such as WebLogicEJBReportRepository
| Fields inherited from class com.dynalivery.repository.util.ReportRepository |
GLOBAL_PROPERTY_BLOB_BUFFER_BYTE_LENGTH,
GLOBAL_PROPERTY_LOGGING,
GLOBAL_PROPERTY_RETRY_DELAY,
GLOBAL_PROPERTY_RETRY_LIMIT,
GLOBAL_PROPERTY_SERVER_PORT,
PROPERTIES_FILENAME |
| Constructor Summary | |
EJBReportRepository(java.util.Properties properties)
construct an EJB-based report repository with the specified properties |
|
| Method Summary | |
BinaryRef |
checkinBinary(BinaryRef binaryRef,
byte[] reportBinary,
FileOptions fileOptions,
java.lang.String comment,
boolean createFolders)
Check a report binary file into the repository. |
BinaryRef |
checkinBinary(BinaryRef binaryRef,
java.io.File binaryFile,
FileOptions fileOptions,
java.lang.String comment,
boolean createFolders,
ProgressReporter progressReporter)
Check a report binary file into the repository. |
OutputRef |
checkinOutput(OutputRef outputRef,
byte[] reportOutput,
OutputOptions outputOptions,
boolean createFolders,
boolean overwrite)
Check a report output file into the repository. |
OutputRef |
checkinOutput(OutputRef outputRef,
java.io.File outputFile,
OutputOptions outputOptions,
boolean createFolders,
boolean overwrite,
ProgressReporter progressReporter)
Check a report output file into the repository. |
boolean |
checkIntegrity()
Perform repository integrity check |
TemplateRef |
checkinTemplate(TemplateRef templateRef,
byte[] templateByteArray,
FileOptions fileOptions,
java.lang.String comment,
boolean validate,
boolean alwaysOverwrite,
boolean createFolders)
Checkin a report design template into the repository. |
TemplateRef |
checkinTemplate(TemplateRef templateRef,
java.io.File templateFile,
FileOptions fileOptions,
java.lang.String comment,
boolean validate,
boolean alwaysOverwrite,
boolean createFolders,
ProgressReporter progressReporter)
Checkin a report design template into the repository. |
byte[] |
checkoutBinary(BinaryRef binaryRef)
Checkout the specified report binary and marks it as checked out by the current user. |
int |
checkoutBinary(BinaryRef binaryRef,
java.io.File outputFile,
ProgressReporter progressReporter)
Checkout the specified report binary and marks it as checked out by the current user. |
byte[] |
checkoutTemplate(TemplateRef templateRef)
Returns the specified report design template and marks it as checked out by the current user. |
int |
checkoutTemplate(TemplateRef templateRef,
java.io.File outputFile,
ProgressReporter progressReporter)
Returns the specified report design template and marks it as checked out by the current user. |
FolderRef |
createFolder(FolderRef parentFolderRef,
java.lang.String folderName,
FolderOptions folderOptions)
Creates a new repository folder |
FolderRef |
createFolder(java.lang.String pathname,
FolderOptions folderOptions)
Creates a new repository folder |
boolean |
currentUserIsAdmin()
Returns true if the current user is a member of the repository admin user group. |
boolean |
currentUserIsMember(java.lang.String ACLString)
Returns true if current user is a member of specified access control list (ACL). |
void |
deleteBinary(BinaryRef binaryRef)
Deletes the specified report binary from the repository. |
void |
deleteExpiredOutputs(ProgressReporter progressReporter)
Deletes all report outputs with an expiration timestamp less than or equal to the current date/time. |
void |
deleteExpiredOutputs(java.sql.Timestamp expirationTimestamp,
ProgressReporter progressReporter)
Deletes all report outputs with an expiration timestamp less than or equal to that specified. |
void |
deleteFolder(FolderRef folderRef,
ProgressReporter progressReporter)
Delete a folder and all associated files. |
void |
deleteMultiple(RepositoryRef[] refs,
ProgressReporter progressReporter)
Delete multiple folders and/or files in one operation. |
void |
deleteOutput(OutputRef outputRef)
Deletes the specified report output from the repository. |
void |
deleteTemplate(TemplateRef templateRef)
Deletes the specified report design template from the repository. |
boolean |
folderExists(FolderRef folderRef)
Tests if folder exists |
FolderRef[] |
getAllNestedFolders(FolderRef folderRef)
Returns a FolderRef array of all nested folders in the specified folder |
FolderRef[] |
getAllTopLevelFolders()
Returns a FolderRef array of all top-level folders in the repository |
TemplateRef[] |
getAncestorTemplates(TemplateRef templateRef)
Returns the ancestors of the specified template |
BinaryRef[] |
getBinariesForTemplate(TemplateRef templateRef)
Returns a BinaryRef array of binaries referred to by the specified template |
byte[] |
getBinary(BinaryRef binaryRef)
Returns the report binary matching the specified reference |
int |
getBinary(BinaryRef binaryRef,
java.io.File outputFile,
ProgressReporter progressReporter)
Returns the report binary matching the specified reference |
RevisionInfo[] |
getBinaryHistory(BinaryRef binaryRef)
Returns the revision history for the specified report binary. |
BinaryProperties |
getBinaryProperties(BinaryRef binaryRef)
Returns the properties for the specified report binary file |
TemplateRef[] |
getChildTemplates(TemplateRef templateRef)
Returns a TemplateRef array for all report design templates which are children of (extend) the specified template. |
java.lang.String |
getCurrentUsername()
Returns the username string as interpreted by the server. |
OutputRef[] |
getExpiredOutputs()
Returns an OutputRef array of all saved report outputs in the repository that have an expiration timestamp less than or equal to the current time. |
OutputRef[] |
getExpiredOutputs(java.sql.Timestamp expirationTimestamp)
Returns an OutputRef array of all saved report outputs in the repository that have an expiration timestamp less than or equal to that specified. |
FolderProperties |
getFolderProperties(FolderRef folderRef)
Get the properties for a folder |
BinaryRef[] |
getNestedBinaries(FolderRef folderRef)
Returns a BinaryRef array for all report binaries in the specified folder |
OutputRef[] |
getNestedOutputs(FolderRef folderRef)
Returns an OutputRef array of saved report outputs in the specified folder. |
TemplateRef[] |
getNestedTemplates(FolderRef folderRef)
Returns a TemplateRef array for all report design templates in the specified folder. |
byte[] |
getOutput(OutputRef outputRef)
Returns the report output matching the specified reference. |
int |
getOutput(OutputRef outputRef,
java.io.File outputFile,
ProgressReporter progressReporter)
Returns the report output matching the specified reference. |
OutputProperties |
getOutputProperties(OutputRef outputRef)
Returns the the report output properties matching the specified reference |
Version |
getServerVersion()
Returns the server Version object |
Statistics |
getStatistics()
Returns the Statistics object for the repository |
byte[] |
getTemplate(TemplateRef templateRef)
Returns the specified report design template |
int |
getTemplate(TemplateRef templateRef,
java.io.File outputFile,
ProgressReporter progressReporter)
Returns the specified report design template |
byte[] |
getTemplateForExecution(TemplateRef templateRef)
Returns the specified report design template for execution. |
int |
getTemplateForExecution(TemplateRef templateRef,
java.io.File outputFile,
ProgressReporter progressReporter)
Returns the specified report design template for execution. |
RevisionInfo[] |
getTemplateHistory(TemplateRef templateRef)
Returns the revision history for the specified template. |
TemplateProperties |
getTemplateProperties(TemplateRef templateRef)
Returns the properties for the specified report design template |
TemplateRef[] |
getTemplatesForBinary(BinaryRef binaryRef)
Returns a TemplateRef array for templates which refer to the specified binary file |
boolean |
isSecurityEnabled()
Returns true if security is enabled on the server. |
void |
logout()
Logs out of the report repository. |
void |
modifyBinaryOptions(BinaryRef binaryRef,
FileOptions fileOptions)
Modifies the properties for the specified report binary. |
void |
modifyFolderOptions(FolderRef folderRef,
FolderOptions folderOptions)
Modify the properties for a project. |
void |
modifyOutputOptions(OutputRef outputRef,
OutputOptions outputOptions)
Modifies the properties for the specified report output. |
void |
modifyTemplateOptions(TemplateRef templateRef,
FileOptions fileOptions)
Modifies the properties for the specified report design template. |
BinaryRef |
moveBinary(BinaryRef binaryRef,
FolderRef destinationFolderRef)
Move the specified binary |
FolderRef |
moveFolder(FolderRef folderRef,
FolderRef destinationFolderRef)
Move the specified folder |
OutputRef |
moveOutput(OutputRef outputRef,
FolderRef destinationFolderRef)
Move the specified binary |
TemplateRef |
moveTemplate(TemplateRef templateRef,
FolderRef destinationFolderRef)
Move the specified report design template |
BinaryRef |
renameBinary(BinaryRef binaryRef,
java.lang.String newFilename)
Rename the specified binary |
FolderRef |
renameFolder(FolderRef folderRef,
java.lang.String newFolderName)
Rename the specified folder |
OutputRef |
renameOutput(OutputRef outputRef,
java.lang.String newFilename)
Rename the specified report output |
TemplateRef |
renameTemplate(TemplateRef templateRef,
java.lang.String newFilename)
Rename the specified report design template |
void |
setBLOBBufferByteLength(int blobBufferByteLength)
Set the BLOB buffer byte length |
void |
setBLOBTestMode(boolean blobTestMode)
Enables/disable BLOB test mode |
void |
sleepForRetry()
|
| Methods inherited from class com.dynalivery.repository.util.ReportRepository |
checkinBinary,
checkinOutput,
checkinTemplate,
checkoutBinary,
checkoutTemplate,
createRepository,
createRepository,
createRepository,
deleteExpiredOutputs,
deleteExpiredOutputs,
deleteFolder,
deleteMultiple,
getAppServerVendorString,
getBinary,
getClientVersion,
getOutput,
getServerName,
getTemplate,
getTemplateForExecution,
getUsername,
login,
login,
readProperties,
setLogging,
writeProperties |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public EJBReportRepository(java.util.Properties properties)
| Method Detail |
public FolderRef[] getAllTopLevelFolders()
public FolderRef[] getAllNestedFolders(FolderRef folderRef)
throws RepositorySecurityException,
InvalidPathnameException
folderRef - the repository folder reference
public FolderRef createFolder(java.lang.String pathname,
FolderOptions folderOptions)
throws RepositorySecurityException,
DuplicateObjectException,
InvalidPathnameException,
InvalidParameterException
pathname - the repository pathname for the folder to be createdfolderOptions - the FolderOptions object which describes the new folder to be createdpublic void sleepForRetry()
public FolderRef createFolder(FolderRef parentFolderRef,
java.lang.String folderName,
FolderOptions folderOptions)
throws RepositorySecurityException,
DuplicateObjectException,
InvalidPathnameException,
InvalidParameterException
parentFolderRef - the parent FolderRef if not a top-level folderfolderName - the folder name StringfolderOptions - the FolderOptions object which describes the new folder to be created
public void deleteFolder(FolderRef folderRef,
ProgressReporter progressReporter)
throws OperationCanceledException,
RepositorySecurityException,
InvalidPathnameException,
PinnedFileException
folderRef - the repository folder referenceprogressReporter - an optional ProgressReporter object to report the operation progress
public void deleteMultiple(RepositoryRef[] refs,
ProgressReporter progressReporter)
throws OperationCanceledException,
RepositorySecurityException,
InvalidPathnameException,
PinnedFileException
refs - the RepositoryRef array of repository object referencesprogressReporter - an optional ProgressReporter object to report the operation progress
public boolean folderExists(FolderRef folderRef)
throws RepositorySecurityException
folderRef - the repository folder reference
public FolderProperties getFolderProperties(FolderRef folderRef)
throws RepositorySecurityException,
InvalidPathnameException
folderRef - the repository folder reference
public void modifyFolderOptions(FolderRef folderRef,
FolderOptions folderOptions)
throws RepositorySecurityException,
InvalidPathnameException,
InvalidParameterException
folderRef - the repository folder referencefolderOptions - the modified FolderOptions for the folder
public FolderRef moveFolder(FolderRef folderRef,
FolderRef destinationFolderRef)
throws RepositorySecurityException,
DuplicateObjectException,
InvalidPathnameException,
InvalidOperationException
folderRef - the repository folder referencedestinationFolderRef - the folder to receive the specified folder
public FolderRef renameFolder(FolderRef folderRef,
java.lang.String newFolderName)
throws RepositorySecurityException,
DuplicateObjectException,
InvalidPathnameException,
InvalidParameterException
folderRef - the repository folder referencenewFolderName - the new folder name String
public TemplateRef[] getNestedTemplates(FolderRef folderRef)
throws RepositorySecurityException,
InvalidPathnameException
folderRef - the repository folder reference
public TemplateRef checkinTemplate(TemplateRef templateRef,
byte[] templateByteArray,
FileOptions fileOptions,
java.lang.String comment,
boolean validate,
boolean alwaysOverwrite,
boolean createFolders)
throws RepositorySecurityException,
NotCheckedOutException,
ValidationException,
MissingParentException,
InvalidPathnameException,
InvalidParameterException
templateRef - the TemplateRef object which uniquely identifies the report templatetemplateByteArray - entire design template in a byte arrayfileOptions - the FileOptions for this templatecomment - optional comment string describing this checkinvalidate - true if template should be validated firstalwaysOverwrite - true if template should be overwritten when even validation failscreateFolders - if true, any missing folders in the pathname will be created
public TemplateRef checkinTemplate(TemplateRef templateRef,
java.io.File templateFile,
FileOptions fileOptions,
java.lang.String comment,
boolean validate,
boolean alwaysOverwrite,
boolean createFolders,
ProgressReporter progressReporter)
throws OperationCanceledException,
java.io.IOException,
ValidationException,
MissingParentException,
NotCheckedOutException,
RepositorySecurityException,
InvalidPathnameException,
InvalidParameterException
templateRef - the TemplateRef object which uniquely identifies the report templatetemplateFile - the report template FilefileOptions - the FileOptions for this templatecomment - optional comment string describing this checkinvalidate - true if template should be validated firstalwaysOverwrite - true if template should be overwritten when even validation failscreateFolders - if true, any missing folders in the pathname will be createdprogressReporter - an optional ProgressReporter object to report the operation progress
public byte[] checkoutTemplate(TemplateRef templateRef)
throws IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException,
AlreadyCheckedOutException
templateRef - the TemplateRef object which uniquely identifies the report template
public int checkoutTemplate(TemplateRef templateRef,
java.io.File outputFile,
ProgressReporter progressReporter)
throws OperationCanceledException,
java.io.IOException,
IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException,
AlreadyCheckedOutException
templateRef - the TemplateRef object which uniquely identifies the report templateoutputFile - the File to which the data should be written
public TemplateRef[] getAncestorTemplates(TemplateRef templateRef)
throws RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report template
public byte[] getTemplate(TemplateRef templateRef)
throws IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report template
public int getTemplate(TemplateRef templateRef,
java.io.File outputFile,
ProgressReporter progressReporter)
throws OperationCanceledException,
java.io.IOException,
IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report templateoutputFile - the File to which the data should be writtenprogressReporter - an optional ProgressReporter object to report the operation progress
public byte[] getTemplateForExecution(TemplateRef templateRef)
throws IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report template
public int getTemplateForExecution(TemplateRef templateRef,
java.io.File outputFile,
ProgressReporter progressReporter)
throws OperationCanceledException,
java.io.IOException,
IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report templateoutputFile - the File to which the data should be writtenprogressReporter - an optional ProgressReporter object to report the operation progress
public void deleteTemplate(TemplateRef templateRef)
throws RepositorySecurityException,
InvalidPathnameException,
PinnedFileException
templateRef - the TemplateRef object which uniquely identifies the report template
public TemplateProperties getTemplateProperties(TemplateRef templateRef)
throws RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report template
public void modifyTemplateOptions(TemplateRef templateRef,
FileOptions fileOptions)
throws RepositorySecurityException,
InvalidPathnameException,
InvalidParameterException
templateRef - the TemplateRef object which uniquely identifies the report templatefileOptions - the modified FileOptions for the template
public TemplateRef moveTemplate(TemplateRef templateRef,
FolderRef destinationFolderRef)
throws InvalidPathnameException,
DuplicateObjectException,
RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report templatedestinationFolderRef - the folder to received the specified file
public TemplateRef renameTemplate(TemplateRef templateRef,
java.lang.String newFilename)
throws InvalidPathnameException,
DuplicateObjectException,
RepositorySecurityException,
InvalidParameterException
templateRef - the TemplateRef object which uniquely identifies the report templatenewFilename - the new filename String
public TemplateRef[] getChildTemplates(TemplateRef templateRef)
throws RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report template
public RevisionInfo[] getTemplateHistory(TemplateRef templateRef)
throws RepositorySecurityException,
InvalidPathnameException
templateRef - the TemplateRef object which uniquely identifies the report template
public BinaryRef[] getNestedBinaries(FolderRef folderRef)
throws RepositorySecurityException,
InvalidPathnameException
folderRef - the repository folder reference
public BinaryRef checkinBinary(BinaryRef binaryRef,
byte[] reportBinary,
FileOptions fileOptions,
java.lang.String comment,
boolean createFolders)
throws RepositorySecurityException,
NotCheckedOutException,
InvalidPathnameException,
InvalidParameterException
binaryRef - the BinaryRef object which uniquely identifies the report binary filereportBinary - the entire report binary file as a byte arrayfileOptions - the FileOptions for this report binary filecomment - optional comment string describing this checkincreateFolders - if true, any missing folders in the pathname will be created
public BinaryRef checkinBinary(BinaryRef binaryRef,
java.io.File binaryFile,
FileOptions fileOptions,
java.lang.String comment,
boolean createFolders,
ProgressReporter progressReporter)
throws OperationCanceledException,
java.io.IOException,
NotCheckedOutException,
RepositorySecurityException,
InvalidPathnameException,
InvalidParameterException
binaryRef - the BinaryRef object which uniquely identifies the report binary filebinaryFile - the report binary FilefileOptions - the FileOptions for this report binary filecomment - optional comment string describing this checkincreateFolders - if true, any missing folders in the pathname will be createdprogressReporter - an optional ProgressReporter object to report the operation progress
public byte[] checkoutBinary(BinaryRef binaryRef)
throws IncompleteBLOBException,
RepositorySecurityException,
InvalidPathnameException,
AlreadyCheckedOutException
binaryRef - the BinaryRef object which uniquely identifies the report binary file