public interface IExtendedContent
Modifier and Type | Method and Description |
---|---|
ExtendedContentResult |
addRendition(java.lang.String ticket,
java.lang.String objectId,
EnhancedObjectContent rendition)
Deprecated.
Use
IRendition instead |
void |
changeType(java.lang.String ticket,
java.lang.String objectId,
java.lang.String newType)
Changes the type of an object
NOTE: May not be able to change type as will.
|
java.lang.String |
copyObject(java.lang.String ticket,
java.lang.String objectId,
java.lang.String destFolderPath)
Copy a given object with specified ID to a specified folder path.
|
java.lang.String |
findCurrentVersionId(java.lang.String ticket,
java.lang.String chronId)
Given a chronId, find the CURRENT version of the object and return its objectId
|
java.lang.String |
findFirstVersionId(java.lang.String ticket,
java.lang.String objectId)
Given an objectId, find the first version of the object
|
java.lang.String |
findLatestVersionId(java.lang.String ticket,
java.lang.String chronId)
Given a chronId, find the LATEST version of the object and return its objectId
|
java.lang.String |
getAcl(java.lang.String ticket,
java.lang.String objectId)
Return the object ID of the ACL for a given document ID.
|
java.lang.String |
getAclName(java.lang.String ticket,
java.lang.String objectId)
Return the name of the ACL for a given document ID.
|
ExtendedContentResult |
getAllSubtypes(java.lang.String ticket,
java.lang.String parentTypeName)
Returns the object type and all of its subtypes within the repository.
|
ExtendedContentResult |
getAllVersions(java.lang.String ticket,
java.lang.String objectId)
Returns all versions of an object
|
java.util.Map<java.lang.String,java.lang.String> |
getAvailableThumbnails(java.lang.String ticket,
java.lang.String objectId,
java.lang.String def)
Get a list of available thumbnails for a content item (meaning thumbnails that have been generated)
|
ExtendedContentResult |
getChildByName(java.lang.String ticket,
java.lang.String parentId,
java.lang.String objectName)
Deprecated.
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getChildFolders(java.lang.String ticket,
java.lang.String id)
Returns all children folders contained in the given object, only returns direct children.
|
ExtendedContentResult |
getChildren(java.lang.String ticket,
java.lang.String objectId)
Deprecated.
|
java.util.List<OpenContentObject> |
getChildren(java.lang.String ticket,
java.lang.String objectId,
java.lang.String[] mimetypeFilters)
Returns all children objects (documents/folders) contained in the given object, only returns direct children and
those that match the mimetype supplied.
|
java.util.List<OpenContentObject> |
getChildren(java.lang.String ticket,
java.lang.String objectId,
java.lang.String[] mimetypeFilters,
java.lang.Boolean includeRenditionable)
Returns all children objects (documents/folders) contained in the given object, only returns direct children and
those that match the mimetype supplied.
|
ObjectContentInfo |
getContentInfo(java.lang.String ticket,
java.lang.String objectId)
Returns the
ObjectContentInfo object for the given object. |
java.lang.String |
getContentPath(java.lang.String objectId,
java.lang.String contentType)
Returns the full filepath of the document's content.
|
ExtendedContentResult |
getObjectPath(java.lang.String ticket,
java.lang.String objectId)
Returns the path to given objectId
|
ExtendedContentResult |
getParents(java.lang.String ticket,
java.lang.String objectId)
Returns all the parents of the passed in objectId
|
ExtendedContentResult |
getRelatedChildren(java.lang.String ticket,
java.lang.String objectId,
java.lang.String relationName)
Returns all the children of the passed in objectId with the passed in relation
|
ExtendedContentResult |
getRelatedParents(java.lang.String ticket,
java.lang.String objectId,
java.lang.String relationName)
Returns all the parents of the passed in objectId with the passed in relation
|
EnhancedObjectContent |
getThumbnail(java.lang.String ticket,
java.lang.String objectId,
java.lang.String thumbnailName)
Get a thumbnail of a given object that is represented by a thumbnail name (e.g.
|
java.lang.String |
getUUID(java.lang.String ticket,
java.lang.String objectId)
Given an object id, return the unique identifier for that object.
|
boolean |
hasRelations(java.lang.String ticket,
java.lang.String objectId,
java.lang.String relationName,
boolean parent)
Returns true if an object with objectId has either a parent or child
relationship of relationName.
|
boolean |
isContainer(java.lang.String ticket,
java.lang.String objectId)
Return whether or not the object related to the ticket is a container or
not
|
ExtendedContentResult |
removeRendition(java.lang.String ticket,
java.lang.String objectId,
java.lang.String mimeType)
Deprecated.
Use
IRendition instead |
java.lang.String |
resolveVersion(java.lang.String ticket,
java.lang.String objectId,
java.lang.String label)
Given an objectId (not necessarily the version we are looking for) find the version of the document that is labeled with the label
that is passed in.
|
boolean |
setAcl(java.lang.String ticket,
java.lang.String aclId,
java.lang.String objectId)
Set the ACL for a given document.
|
java.lang.String copyObject(java.lang.String ticket, java.lang.String objectId, java.lang.String destFolderPath)
ticket
- an authentication ticketobjectId
- the object ID to create a copy ofdestFolderPath
- location to copy the object tojava.lang.String getAcl(java.lang.String ticket, java.lang.String objectId)
ticket
- an authentication ticketobjectId
- the object ID of a document you wish to get the ACL forjava.lang.String getAclName(java.lang.String ticket, java.lang.String objectId)
ticket
- an authentication ticketobjectId
- the object ID of a document you wish to get the ACL forboolean setAcl(java.lang.String ticket, java.lang.String aclId, java.lang.String objectId)
ticket
- an authentication ticketaclId
- the object ID of the ACL to apply to the documentobjectId
- the object ID of the document to apply the ACL to@Deprecated ExtendedContentResult getChildren(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- ExtendedContentResult
objects
- one object for each childobjectType
- repo specific object typeprops
- metadata for objectjava.util.List<OpenContentObject> getChildren(java.lang.String ticket, java.lang.String objectId, java.lang.String[] mimetypeFilters, java.lang.Boolean includeRenditionable)
ticket
- objectId
- mimetypeFilters
- includeRenditionable
- optional parameter to allow documents which don't but can match filtersExtendedContentResult
objects
- one object for each childobjectType
- repo specific object typeprops
- metadata for objectjava.util.List<OpenContentObject> getChildren(java.lang.String ticket, java.lang.String objectId, java.lang.String[] mimetypeFilters)
getChildren(String, String, String[], Boolean)
is called and defaults includeRenditionable to false.ticket
- objectId
- mimetypeFilters
- ExtendedContentResult
objects
- one object for each childobjectType
- repo specific object typeprops
- metadata for objectjava.util.List<java.util.Map<java.lang.String,java.lang.String>> getChildFolders(java.lang.String ticket, java.lang.String id)
ticket
- objectId
- ObjectContentInfo getContentInfo(java.lang.String ticket, java.lang.String objectId)
ObjectContentInfo
object for the given object. NOTE: This method will not return any content, only info on the formats.
Thumbnail content will NOT be returned.
Only content formats that are known in the mimeType-extension map will be returned.
If the object has more than one format, index 0 on the lists on the ObjectContentInfo
will be the native content property,
while the 2nd-N items will contain renditions.ticket
- Authentication ticketobjectId
- Object Id of the object whose content info is to be retrievedObjectContentInfo
object with info on the known formats of the objectExtendedContentResult getAllVersions(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- ExtendedContentResult.objects
[0] is current version
ExtendedContentResult
objects
- one object for each versionobjectType
- repo specific object typeprops
- metadata for object@Deprecated ExtendedContentResult addRendition(java.lang.String ticket, java.lang.String objectId, EnhancedObjectContent rendition)
IRendition
insteadticket
- objectId
- rendition
- the content and the mimetype of the renditionExtendedContentResult
ExtendedContentResult getParents(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- ExtendedContentResult
objects
- one object for each parentobjectType
- repo specific object typeprops
- metadata for objectExtendedContentResult getAllSubtypes(java.lang.String ticket, java.lang.String parentTypeName)
ticket
- Authentication ticketparentTypeName
- name of the parent typeExtendedContentResult
objects
- one object for object typeobjectType
- repo specific object typeExtendedContentResult getRelatedParents(java.lang.String ticket, java.lang.String objectId, java.lang.String relationName)
ticket
- objectId
- ExtendedContentResult
objects
- one object for each parentobjectType
- repo specific object typeprops
- metadata for objectExtendedContentResult getRelatedChildren(java.lang.String ticket, java.lang.String objectId, java.lang.String relationName)
ticket
- objectId
- ExtendedContentResult
objects
- one object for each child (NOTE: the content of each child should NOT be populated)objectType
- repo specific object typeprops
- metadata for objectExtendedContentResult getObjectPath(java.lang.String ticket, java.lang.String objectId)
ticket
- - session ticketobjectId
- - objectId of a document or folder. (DCTM implementation doesn't support documents and will throw an error)ExtendedContentResult
stringResult
- repository folder path to the given object@Deprecated ExtendedContentResult removeRendition(java.lang.String ticket, java.lang.String objectId, java.lang.String mimeType)
IRendition
insteadticket
- objectId
- mimeType
- ExtendedContentResult
stringResult
- mimeType of the rendition that was sucessfully removedjava.util.Map<java.lang.String,java.lang.String> getAvailableThumbnails(java.lang.String ticket, java.lang.String objectId, java.lang.String def)
ticket
- objectId
- List
- Map of available Types EnhancedObjectContent getThumbnail(java.lang.String ticket, java.lang.String objectId, java.lang.String thumbnailName)
ticket
- objectId
- thumbnailName
- Byte[]
- Byte Array containing the streamed content of the thumbnail imagejava.lang.String resolveVersion(java.lang.String ticket, java.lang.String objectId, java.lang.String label)
ticket
- an authentication ticketobjectId
- any objectId of a document tree to search for a version forlabel
- the "version label" of the document to search the tree for and returnjava.lang.String findFirstVersionId(java.lang.String ticket, java.lang.String objectId)
ticket
- an authentication ticketobjectId
- any objectId of a document tree to search for the first version fornull
if the no
objects with the given ID existjava.lang.String findCurrentVersionId(java.lang.String ticket, java.lang.String chronId)
ticket
- an authentication ticketchronId
- any chronId of a document tree to search for the first version forjava.lang.String findLatestVersionId(java.lang.String ticket, java.lang.String chronId)
ticket
- an authentication ticketchronId
- any chronId of a document tree to search for the first version forboolean hasRelations(java.lang.String ticket, java.lang.String objectId, java.lang.String relationName, boolean parent)
ticket
- String of the authentication ticketobjectId
- String to represent node's objectIdrelationName
- String of the relation to findparent
- boolean - if set to true, find parent relationship, else
find child relationshipjava.lang.String getUUID(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- @Deprecated ExtendedContentResult getChildByName(java.lang.String ticket, java.lang.String parentId, java.lang.String objectName)
objects
array is returned.ticket
- parentId
- objectName
- boolean isContainer(java.lang.String ticket, java.lang.String objectId)
ticket
- an authentication ticketobjectId
- the object ID of a document you wish to get the ACL forvoid changeType(java.lang.String ticket, java.lang.String objectId, java.lang.String newType)
ticket
- an authentication ticketobjectId
- the object ID of a document you wish to change type fornewType
- the OCName of the target typejava.lang.String getContentPath(java.lang.String objectId, java.lang.String contentType)