public interface FileManager extends Remote
Modifier and Type | Method and Description |
---|---|
boolean |
checkNameValidity(long parentId,
String name)
Checks to see if the proposed name is a valid object name
in the target folder.
|
Item[] |
copy(long[] items,
NamedValue[] workflowParams,
NamedValueSet[] attrs)
Copies items.
|
Item |
createDocument(NamedValue[] docDef,
NamedValue[] workflowParams,
AttributeRequest[] attributes)
Creates a new Document.
|
Item |
createDocumentDefinition(NamedValue[] def,
AttributeRequest[] attributes)
Creates a new DocumentDefinition Item, which can be used later to create a
Document Item.
|
Item[] |
createDocumentDefinitions(NamedValueSet[] defs,
AttributeRequest[] attributes)
Creates set of new DocumentDefinition Items, which can be used later to
create Document Items.
|
Item[] |
createDocuments(NamedValueSet[] docDefs,
NamedValue[] workflowParams,
AttributeRequest[] attributes)
Creates a set of new Documents.
|
Item |
createFolder(long destFolderId,
NamedValue[] attributes,
AttributeRequest[] attrrequest)
Creates a new FOLDER Item.
|
Item[] |
createFolders(long[] destFolders,
NamedValueSet[] attributes,
AttributeRequest[] attrrequest)
Creates a set of folders.
|
Item[] |
createLinks(long folderId,
NamedValueSet[] linkDefs,
AttributeRequest[] attributes)
Creates a set of new Links.
|
void |
delete(long[] items,
NamedValue[] workflowParams,
NamedValueSet[] attrs)
Deletes items.
|
boolean |
exists(String absolutePath)
Checks to see if an object exists at the given absolute path.
|
boolean |
existsRelative(long folderId,
String relativePath)
Checks to see if an object exists at the given relative path, relative
to the given Folder.
|
boolean |
folderLinksExist(String path)
Returns true if the given absolute path contains any LINK items.
|
Item[] |
getMostRecentDocuments(NamedValue[] options,
AttributeRequest[] attributes)
Returns the most recent documents for the current user
If the primary or secondary sort attributes are specified
but the corresponding sort directions are not specified,
the sorting defaults to ascending order.
|
NamedValueSet[] |
getNameConflictResolutionOptions(long[] sourceItems,
long[] conflictItems,
NamedValueSet[] defs)
Deprecated.
the conflict resolution options are now returned along
with the exception thrown in case of operation like
move or copy. The info is present on the information
of exception FDK_ITEM_ALREADY_EXISTS mapped to key
EXCEPTION_INFO_CONFLICT_RESOLUTION_OPTIONS.
|
NamedValue[] |
getSupportedCharsetNames()
Returns a list of supported character sets.
|
String[] |
getSupportedCharsets()
Returns the list of supported character sets
|
NamedValue[] |
getSupportedLanguageNames()
Returns a list of supported languages.
|
String[] |
getSupportedLanguages()
Returns the list of supported languages
|
String[] |
listAutoFolderingActionSpecifications()
Returns the list of registered auto folder creation specification names.
|
Item[] |
listFolder(long folderId,
NamedValue[] options,
AttributeRequest[] attributes)
Returns the items of a folder and returns the requested attributes that
apply to each item.
|
Item[] |
move(long[] items,
NamedValue[] workflowParams,
NamedValueSet[] attrs)
Moves items.
|
Item |
resolvePath(String path,
AttributeRequest[] attributes)
Resolves a path, returning an Item that represents a PublicObject.
|
Item |
resolveRelativePath(long folderId,
String path,
AttributeRequest[] attributes)
Resolves a relative path from a Folder, returning an Item that represents
a PublicObject.
|
Item[] |
uncompress(long[] items,
AttributeRequest[] attributes)
Uncompresses the items refered to by
items . |
Item |
updateDocument(long docId,
NamedValue[] docDef,
AttributeRequest[] attributes)
Updates a Document.
|
Item[] |
updateDocuments(long[] docIds,
NamedValueSet[] docDefs,
AttributeRequest[] attributes)
Updates multiple Documents.
|
Item |
updateFolder(long folderId,
NamedValue[] attrs,
AttributeRequest[] attributes)
Updates a Folder.
|
Item |
updateLink(long linkId,
NamedValue[] attrs,
AttributeRequest[] attributes)
Updates a Link.
|
boolean checkNameValidity(long parentId, String name) throws FdkException
This checks only for any invalid characters present in the proposed name.
name
- The proposed name of the new objectparentId
- The parent folder's ID.FdkException
- if the operation fails.boolean exists(String absolutePath) throws FdkException
absolutePath
- the absolute path to check.FdkException
- if the operation fails.boolean existsRelative(long folderId, String relativePath) throws FdkException
folderId
- the Folder that the path is relative to.relativePath
- the relative path to check.FdkException
- if the operation fails.Item resolvePath(String path, AttributeRequest[] attributes) throws FdkException
The returned Item will be one of the following types: Document, Link, Folder.
path
- the fully-qualified absolute path to resolve.attributes
- requested attributes for the resolved object, or null.FdkException
- if the operation failsItem resolveRelativePath(long folderId, String path, AttributeRequest[] attributes) throws FdkException
The returned Item will be one of the following types: Document, Link, Folder.
folderId
- the ID of the folder from which to resolve the path.path
- the relative path; it must not start with "/".attributes
- requested attributes for the resolved object, or null.FdkException
- if the operation fails.Item[] listFolder(long folderId, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
Each Item in the returned Item array will be of one of the following types: Document, Link, Folder.
If the primary or secondary sort attributes are specified but the corresponding sort directions are not specified, the sorting defaults to ascending order. The sorting order is ascending if the sort direction is explicitly set to TRUE and descending if the sort direction is set to FALSE.
Sort attribute names must be defined in the Attributes class and have data types that implement the Comparable interface.
folderId
- the ID of the folder to list.options
- Options on the retrieved list. Valid options are:
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item[] createFolders(long[] destFolders, NamedValueSet[] attributes, AttributeRequest[] attrrequest) throws FdkException
destFolders
- the destination folder IDs.attributes
- the attributes to set for each new folder.
must include one or more of the following Attributes:
Options.CATEGORY_DEFINITION
, NamedValue[]}
attrrequest
- requested attributes for each item, or null.FdkException
- if the operation fails.Item createFolder(long destFolderId, NamedValue[] attributes, AttributeRequest[] attrrequest) throws FdkException
destFolderId
- destination FOLDER ID into which the new FOLDER will
be placedattributes
- attributes and options for this operation:
Options.CATEGORY_DEFINITION
, NamedValue[]}
attrrequest
- requested attributes for the created FOLDER, or null.FdkException
- if the operation failsItem[] copy(long[] items, NamedValue[] workflowParams, NamedValueSet[] attrs) throws FdkException
Note: if workflow is enabled and the copy operation is workflow enabled, then a CopyRequest is created.
Use RequestManager.listRequests
to find any created Requests.
items
- The IDs of the items to be copied.workflowParams
- The parameters(name/value) used to start workflowattrs
- The attributes specified for each item.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.RECORD_DEFINITION
, NamedValue[]}
FdkException
- if the operation fails.Item[] move(long[] items, NamedValue[] workflowParams, NamedValueSet[] attrs) throws FdkException
Note: If the operation is workflow-enabled, then a Request representing this move operation is created.
items
- The IDs of the items to be moved.workflowParams
- The parameters(name/value) used to start workflowattrs
- The attributes specified for each item.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.RECORD_DEFINITION
, NamedValue[]}
FdkException
- if the operation fails.void delete(long[] items, NamedValue[] workflowParams, NamedValueSet[] attrs) throws FdkException
If workflow is enabled and the delete operation is workflow enabled, then a DeleteRequest is created.
items
- the item IDs to be deleted.workflowParams
- The parameters(name/value) used to start workflowattrs
- The attributes specified for each item.FdkException
- if the operation fails.Item createDocumentDefinition(NamedValue[] def, AttributeRequest[] attributes) throws FdkException
def
- the attributes to set:
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.VERSION_ON_CATEGORY_OPERATION
, Boolean}
attributes
- requested attributes for the returned Item, or nullFdkException
- if the operation fails.Item[] createDocumentDefinitions(NamedValueSet[] defs, AttributeRequest[] attributes) throws FdkException
defs
- attributes to set; each row represents one definition.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.VERSION_ON_CATEGORY_OPERATION
, Boolean}
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item createDocument(NamedValue[] docDef, NamedValue[] workflowParams, AttributeRequest[] attributes) throws FdkException
If workflow is enabled and the createDocument operation is workflow enabled then a CreateDocumentRequest is created.
Use RequestManager.listRequests
to find any created requests.
docDef
- the attributes to set.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.VERSION_ON_CATEGORY_OPERATION
, Boolean}
Options.RECORD_DEFINITION
, NamedValue[]}
workflowParams
- The parameters(name/value) used to start workflowattributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item[] createDocuments(NamedValueSet[] docDefs, NamedValue[] workflowParams, AttributeRequest[] attributes) throws FdkException
If workflow is enabled and the createDocument operation is workflow enabled then a CreateDocumentRequest is created.
Use RequestManager.listRequests
to find any created requests.
docDefs
- the attributes to set.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.VERSION_ON_CATEGORY_OPERATION
, Boolean}
Options.RECORD_DEFINITION
, NamedValue[]}
workflowParams
- The parameters(name/value) used to start workflowattributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item[] createLinks(long folderId, NamedValueSet[] linkDefs, AttributeRequest[] attributes) throws FdkException
folderId
- the id of the destination folder for the new links.linkDefs
- the attributes to set.
Options.CATEGORY_DEFINITION
, NamedValue[]}
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item updateLink(long linkId, NamedValue[] attrs, AttributeRequest[] attributes) throws FdkException
linkId
- the id of the Link to update.attrs
- the attributes to update.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.REMOVE_CATEGORY_ID
, Long}
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.boolean folderLinksExist(String path) throws FdkException
path
- the absolute path to test.FdkException
- if the operation fails.Item updateFolder(long folderId, NamedValue[] attrs, AttributeRequest[] attributes) throws FdkException
folderId
- the id of the document to update.attrs
- the attributes to update.
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.REMOVE_CATEGORY_ID
, Long}
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item updateDocument(long docId, NamedValue[] docDef, AttributeRequest[] attributes) throws FdkException
docId
- the id of the document to update.docDef
- the attributes to update.
Options.USE_SAVED_DEFINITION
, Long}
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.VERSION_ON_CATEGORY_OPERATION
, Boolean}
Options.REMOVE_CATEGORY_ID
, Long}
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item[] updateDocuments(long[] docIds, NamedValueSet[] docDefs, AttributeRequest[] attributes) throws FdkException
docIds
- the ids of the documents to update.docDefs
- the attributes to update, specified for each item.
Options.USE_SAVED_DEFINITION
, Long}
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.VERSION_ON_CATEGORY_OPERATION
, Boolean}
Options.REMOVE_CATEGORY_ID
, Long}
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.String[] getSupportedLanguages() throws FdkException
FdkException
- if the operation fails.String[] getSupportedCharsets() throws FdkException
FdkException
- if the operation fails.NamedValue[] getSupportedCharsetNames() throws FdkException
FdkException
- if the operation fails.NamedValue[] getSupportedLanguageNames() throws FdkException
FdkException
- if the operation fails.NamedValueSet[] getNameConflictResolutionOptions(long[] sourceItems, long[] conflictItems, NamedValueSet[] defs) throws FdkException
If an operation for the set of given objs would fail because of a name conflict, this method determines which options could be passed to a subsequent call to the operation that would allow it to succeed.
sourceItems
- the items that are being operated on.conflictItems
- the name-conflicting items for each source item.defs
- the spec for the operation on the source items.
(note that the DESTFOLDER option is required.)FdkException
- if the operation failsItem[] getMostRecentDocuments(NamedValue[] options, AttributeRequest[] attributes) throws FdkException
If the primary or secondary sort attributes are specified but the corresponding sort directions are not specified, the sorting defaults to ascending order. The sorting order is ascending if the sort direction is explicitly set to TRUE and descending if the sort direction is set to FALSE.
Sort attribute names must be defined in the Attributes class and have data types that implement the Comparable interface.
options
- Options on the retrieved list. Valid options are:
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item[] uncompress(long[] items, AttributeRequest[] attributes) throws FdkException
items
.items
- the item IDs to be uncompressed.attributes
- the attributes to be populated for items returned.FdkException
- if the operation fails.String[] listAutoFolderingActionSpecifications() throws FdkException
createDocument()
to let the system create a folder structure.FdkException
- if the operation fails.Copyright © 2023. All rights reserved.