public class DocumentOM extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
DocumentOM.IGenericDocument
IGenericDocument Interface for document content.
|
| Constructor and Description |
|---|
DocumentOM()
Constructor of DocumentOM.
|
DocumentOM(SessionInfo sessionInfo)
Constructor for DocumentOM.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createFolder(String path,
String folderName,
String description,
String securityClass,
boolean isPrivate,
DOCUMENTTYPES contentType,
boolean overwrite)
Creates folder in the given path.
|
void |
deleteDocuments(List<String> docNames,
List<String> docPaths,
List<DOCUMENTTYPES> docTypes,
List<DOCUMENTFILETYPES> fileTypes)
Deletes documents in the given path.
|
boolean |
doesDocumentExist(String fileName,
DOCUMENTTYPES docType,
DOCUMENTFILETYPES docFileType)
Method Check whether document is exist or not.
|
boolean |
doesFolderExist(String folderName)
check whether Folder exist or not.
|
String |
downloadCustomDocumentContent(String sPath,
String sFileName)
Method helps to download Custom Document Content.
|
List<FMDocumentFileTypeDetail> |
enumDocumentFileTypes(DOCUMENTTYPES docType)
Gets the List of applicable document file types for the given enum document type.
|
List<FMDocumentFileTypeDetail> |
enumDocumentFileTypes(DOCUMENTTYPES docType,
DOCUMENTSUBTYPE docSubType)
Gets the List of applicable document file types for the given enum document type.
|
List<FMDocument> |
enumDocuments(String path,
DOCUMENTTYPES docType,
DOCUMENTFILETYPES fileType,
ENUMSHOWPRIVATEDOCS showPrivateDocs)
Gets the documents from the given path.
|
List<FMDocumentTypeDetail> |
enumDocumentTypes(DOCUMENTSUBTYPE docSubType)
Gets the List of applicable document types for the given enum document sub type.
|
List<FMDocumentTypeDetail> |
enumDocumentTypesFromCache(DOCUMENTSUBTYPE docSubType)
Get DocumentType from Cache.
|
byte[] |
getDocumentContent(String sPath,
String docName,
DOCUMENTTYPES docType,
DOCUMENTFILETYPES fileType)
Gets the document content.
|
FMDocument |
getDocumentInfo(String sPath,
String docName,
DOCUMENTTYPES docType,
DOCUMENTFILETYPES fileType)
Gets the document defination.
|
protected void |
initialize()
Service get initialized.
|
List<FMDocument> |
parseTaskItems(String appName,
byte[] taskItemsString)
Get the tasks from the task list.
|
void |
saveDocumentContent(FMDocument documentDetails,
DocumentOM.IGenericDocument documentContent,
boolean bOverwrite)
Saves the documents.
|
public DocumentOM()
public DocumentOM(SessionInfo sessionInfo) throws HFMException
sessionInfo - session informationHFMExceptionprotected void initialize()
throws HFMException
HFMExceptionpublic List<FMDocument> enumDocuments(String path, DOCUMENTTYPES docType, DOCUMENTFILETYPES fileType, ENUMSHOWPRIVATEDOCS showPrivateDocs) throws HFMException
path - - path to which documents to be retrieveddocType - - document typefileType - - document file typeshowPrivateDocs - - flag to retrieve private documents or notHFMException - - Error retrieving documentspublic void createFolder(String path, String folderName, String description, String securityClass, boolean isPrivate, DOCUMENTTYPES contentType, boolean overwrite) throws HFMException
path - pathfolderName - Folder namedescription - Folder descriptionsecurityClass - Security classisPrivate - Is a private foldercontentType - Content type of the folder (i.e. Webform, Grid, ...)overwrite - Overwrite if existHFMException - Error while creating folderpublic byte[] getDocumentContent(String sPath, String docName, DOCUMENTTYPES docType, DOCUMENTFILETYPES fileType) throws HFMException
sPath - - path to the documentdocName - - document namedocType - - document typefileType - - document file typeHFMException - - Error reading document contentpublic List<FMDocument> parseTaskItems(String appName, byte[] taskItemsString) throws HFMException
appName - application nametaskItemsString - document content for the tasklistHFMException - Error reading document contentpublic FMDocument getDocumentInfo(String sPath, String docName, DOCUMENTTYPES docType, DOCUMENTFILETYPES fileType) throws HFMException
sPath - - path to the documentdocName - - document namedocType - - document typefileType - - document file typeHFMException - - Error reading document contentpublic void saveDocumentContent(FMDocument documentDetails, DocumentOM.IGenericDocument documentContent, boolean bOverwrite) throws HFMException
documentDetails - document detailsdocumentContent - generic document contentbOverwrite - overwrite if existHFMException - ERROR SAVING DOCUMENTpublic List<FMDocumentFileTypeDetail> enumDocumentFileTypes(DOCUMENTTYPES docType) throws HFMException
docType - enum document typeHFMException - ERROR_RETRIVING_DOCUMENTFILETYPESpublic void deleteDocuments(List<String> docNames, List<String> docPaths, List<DOCUMENTTYPES> docTypes, List<DOCUMENTFILETYPES> fileTypes) throws HFMException
docNames - List of document namesdocPaths - List of paths of the documentsdocTypes - List of document types of the documentsfileTypes - List of document file types of the documentsHFMException - Error while deleting folderpublic boolean doesDocumentExist(String fileName, DOCUMENTTYPES docType, DOCUMENTFILETYPES docFileType) throws HFMException
fileName - file namedocType - Document TypedocFileType - Document File TypeHFMExceptionpublic boolean doesFolderExist(String folderName) throws HFMException
folderName - folder nameHFMExceptionpublic List<FMDocumentTypeDetail> enumDocumentTypesFromCache(DOCUMENTSUBTYPE docSubType) throws HFMException
docSubType - document sub typeHFMExceptionpublic String downloadCustomDocumentContent(String sPath, String sFileName) throws HFMException
sPath - documnet pathsFileName - document nameHFMExceptionpublic List<FMDocumentFileTypeDetail> enumDocumentFileTypes(DOCUMENTTYPES docType, DOCUMENTSUBTYPE docSubType) throws HFMException
docType - enum document typedocSubType - enum document file typeHFMException - ERROR_RETRIVING_DOCUMENTFILETYPESpublic List<FMDocumentTypeDetail> enumDocumentTypes(DOCUMENTSUBTYPE docSubType) throws HFMException
docSubType - document sub typeHFMExceptionCopyright 2007, 2026, Oracle. All rights reserved.