public abstract class AbstractContentImpl extends java.lang.Object implements IContent
Modifier and Type | Field and Description |
---|---|
OCPolicyComponent |
ocPolicyComponent
This is Event stuff.
|
Constructor and Description |
---|
AbstractContentImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ContentResult> |
bulkEnhancedCreateObjects(java.lang.String ticket,
java.util.List<EnhancedCompleteObject> objects)
Attempts to create new enhanced objects in the system, and returns the results.
|
java.util.List<ContentResult> |
bulkEnhancedCreateObjects(java.lang.String ticket,
java.util.List<EnhancedCompleteObject> objects,
java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
Attempts to create new enhanced objects in the system, and returns the results.
|
abstract ContentResult |
doEnhancedCreateObject(java.lang.String ticket,
EnhancedCompleteObject object) |
abstract ContentResult |
doEnhancedDeleteObject(java.lang.String ticket,
java.lang.String id,
boolean allVersions,
boolean forceDelete) |
abstract ContentResult |
doEnhancedUpdateObject(java.lang.String ticket,
java.lang.String id,
EnhancedCompleteObject object,
boolean newVersion,
boolean majorVersion) |
abstract OpenContentObject |
doUpdateObject(java.lang.String ticket,
OpenContentObject oco) |
ContentResult |
enhancedCreateObject(java.lang.String ticket,
EnhancedCompleteObject object)
Attempts to create a new enhanced object in the system, and returns the result
expects an objectName property to be set in the object's properties
|
ContentResult |
enhancedCreateObject(java.lang.String ticket,
EnhancedCompleteObject object,
java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
Attempts to create a new enhanced object in the system, and returns the result
expects an objectName property to be set in the object's properties
|
ContentResult |
enhancedDeleteObject(java.lang.String ticket,
java.lang.String id,
boolean allVersions,
boolean forceDelete)
Retrieves document content and properties
|
ContentResult |
enhancedDeleteObject(java.lang.String ticket,
java.lang.String id,
boolean allVersions,
boolean forceDelete,
java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
Delete the object specified by id
|
ContentResult |
enhancedUpdateObject(java.lang.String ticket,
java.lang.String id,
EnhancedCompleteObject object,
boolean newVersion,
boolean majorVersion)
Updates existing document object in the repository.
|
ContentResult |
enhancedUpdateObject(java.lang.String ticket,
java.lang.String id,
EnhancedCompleteObject object,
boolean newVersion,
boolean majorVersion,
java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
Updates existing document object in the repository.
|
java.net.URL |
generatePresignedUrl(java.lang.String ticket,
java.lang.String objectId,
java.lang.String[] fileExtensions,
boolean download,
boolean inline)
Returns a presigned url to requested content
|
OpenContentObject |
getObject(java.lang.String ticket,
java.lang.String id)
Obtain object by passing its unique id
|
void |
setOcPolicyComponent(OCPolicyComponent ocPolicyComponent) |
OpenContentObject |
updateObject(java.lang.String ticket,
OpenContentObject oco)
Updates the object with the same ID as the id provided on the new object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRelation, applyAspect, cancelCheckout, checkin, checkin, checkin, checkout, copyDocument, createObject, deleteObjects, enhancedGetObject, enhancedGetObjectByPath, enhancedGetPathByFolderId, enhancedGetProperties, getAppliedAspects, getContent, getLockOwner, getObjectByPath, getObjectByPath, getObjectByVersion, getPermissionsRequest, link, lockDocument, moveObject, removeRelation, unlockDocument, updateObject, updateObjects
public OCPolicyComponent ocPolicyComponent
public abstract ContentResult doEnhancedCreateObject(java.lang.String ticket, EnhancedCompleteObject object)
public abstract ContentResult doEnhancedUpdateObject(java.lang.String ticket, java.lang.String id, EnhancedCompleteObject object, boolean newVersion, boolean majorVersion)
public abstract OpenContentObject doUpdateObject(java.lang.String ticket, OpenContentObject oco)
public abstract ContentResult doEnhancedDeleteObject(java.lang.String ticket, java.lang.String id, boolean allVersions, boolean forceDelete)
public ContentResult enhancedCreateObject(java.lang.String ticket, EnhancedCompleteObject object)
IContent
enhancedCreateObject
in interface IContent
ticket
- String representing the session's ticketobject
- EnhancedCompleteObject object to create in the systempublic ContentResult enhancedCreateObject(java.lang.String ticket, EnhancedCompleteObject object, java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
IContent
enhancedCreateObject
in interface IContent
ticket
- String representing the session's ticketobject
- EnhancedCompleteObject object to create in the systemadditionalEventParams
- HashMappublic java.util.List<ContentResult> bulkEnhancedCreateObjects(java.lang.String ticket, java.util.List<EnhancedCompleteObject> objects)
IContent
bulkEnhancedCreateObjects
in interface IContent
ticket
- - String representing the session's ticket.objects
- - List of EnhancedCompleteObject objects to create in the system.public java.util.List<ContentResult> bulkEnhancedCreateObjects(java.lang.String ticket, java.util.List<EnhancedCompleteObject> objects, java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
IContent
bulkEnhancedCreateObjects
in interface IContent
ticket
- - String representing the session's ticket.objects
- - List of EnhancedCompleteObject objects to create in the system.additionalEventParams
- - HashMappublic ContentResult enhancedUpdateObject(java.lang.String ticket, java.lang.String id, EnhancedCompleteObject object, boolean newVersion, boolean majorVersion)
IContent
enhancedUpdateObject
in interface IContent
ticket
- String representing the session's ticketid
- ID of the object to updateobject
- an EnhancedCompleteObject
newVersion
- true if the update will be saved to a new version, otherwise false.majorVersion
- true if the update will be saved to a major version, otherwise false.public ContentResult enhancedUpdateObject(java.lang.String ticket, java.lang.String id, EnhancedCompleteObject object, boolean newVersion, boolean majorVersion, java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
IContent
enhancedUpdateObject
in interface IContent
ticket
- String representing the session's ticketid
- ID of the object to updateobject
- an EnhancedCompleteObject
newVersion
- true if the update will be saved to a new version, otherwise false.majorVersion
- true if the update will be saved to a major version, otherwise false.public OpenContentObject updateObject(java.lang.String ticket, OpenContentObject oco)
IContent
updateObject
in interface IContent
oco
- - The modified Objectpublic ContentResult enhancedDeleteObject(java.lang.String ticket, java.lang.String id, boolean allVersions, boolean forceDelete)
IContent
enhancedDeleteObject
in interface IContent
ticket
- String representing the session's ticketid
- ID of the object to getpublic ContentResult enhancedDeleteObject(java.lang.String ticket, java.lang.String id, boolean allVersions, boolean forceDelete, java.util.HashMap<java.lang.String,java.lang.Object> additionalEventParams)
IContent
enhancedDeleteObject
in interface IContent
ticket
- String representing the session's ticketid
- ID of the object to deleteallVersions
- true to delete all versions of the object defined by id, otherwise falseforceDelete
- currently only implemented for Alfresco, otherwise falseadditionalEventParams
- HashMapContentResult
error
returns true if method failed, otherwise falsepublic OpenContentObject getObject(java.lang.String ticket, java.lang.String id)
IContent
public void setOcPolicyComponent(OCPolicyComponent ocPolicyComponent)
public java.net.URL generatePresignedUrl(java.lang.String ticket, java.lang.String objectId, java.lang.String[] fileExtensions, boolean download, boolean inline)
IContent
generatePresignedUrl
in interface IContent
download
- - if set to true, will set the content-disposition header to 'attachment' so signal downloadinline
- - if set to true, will set the content-disposition header to 'inline' so that files are shown inline