public class OCContentUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDocNameWithExtension(java.lang.String docName,
java.lang.String mimetype)
gets the document name from the object and adds the extension
|
static java.util.Date |
getModifiedDate(java.lang.String ticket,
EnhancedCompleteObject eco,
java.lang.String id)
Gets the modified date from the object
|
static java.util.List<java.lang.String> |
getObjectMimeTypes(java.lang.String ticket,
java.lang.String objectId)
gets the mimetypes for the objectId passed in
|
static boolean |
hasNotBeenModified(EnhancedCompleteObject eco,
long sinceDate)
Checks if the given object has NOT been modified since a prior date.
|
public static java.util.Date getModifiedDate(java.lang.String ticket, EnhancedCompleteObject eco, java.lang.String id)
eco
- is the enhanced complete objectticket
- the ticket from the requestid
- the IDpublic static boolean hasNotBeenModified(EnhancedCompleteObject eco, long sinceDate)
false
if the since date is less than or equal to 0.sinceDate
- the last check dateeco
- the enhanced complete objecttrue
if the object has NOT been modified since the date last checked,
false
otherwisepublic static java.lang.String getDocNameWithExtension(java.lang.String docName, java.lang.String mimetype)
docName
- document namemimetype
- type of documentpublic static java.util.List<java.lang.String> getObjectMimeTypes(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
-