|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
| Method Summary | |
void |
checkin()
Check in the item |
void |
checkout()
Check out the item |
int |
getContentLength()
Get the length of the content |
InputStream |
getContents()
Get the contents of the item as an input stream. |
byte[] |
getContentsAsBytes()
Get the contents of the item as a byte array |
int |
getContentsStatus()
Get the content status field. |
String |
getContentType()
Get the content type for the item. |
boolean |
hasContentsUpdates()
Does this item have any new content that should be updated/persisted ? |
void |
setContents(byte[] contents)
Set the contents of the item using a byte array |
void |
setContents(InputStream contents)
Set the contents of the item from an input stream. |
void |
setContentsfromStore(DAVResourceInterface resource)
Set the contents of the item from store |
void |
setContentsStatus(int contentsStatus)
Set the content status field. |
void |
setContentType(String contentType)
Set the content type for the item. |
void |
uncheckout()
Uncheckout the item |
| Methods inherited from interface com.sas.services.information.metadata.dav.DAVEntityInterface |
addAccessControlEntry, copy, delete, getAccessControlList, getACL, getCreateDate, getDAVResource, getDescription, getFolder, getGUID, getModifyDate, getName, getProperties, getRemarksKeys, getRemoveUpdates, getReposId, getRepository, getSetUpdates, getType, getUpdateableACL, getUrl, getURL, isCollection, isDeleted, isUpdatePending, move, refresh, refresh, removeAccessControlEntry, setACL, setContentClass, setDeleted, setDescription, setGUID, setName, setRemarksKeys, setReposId, update |
| Methods inherited from interface com.sas.services.information.metadata.dav.AttributesInterface |
addAttribute, addAttributes, deleteAttribute, deleteAttributes, getAttribute, getAttributes, setAttribute, setAttributes |
| Method Detail |
public void setContentType(String contentType)
contentType - The contentType of the resource (eg. text/plain, image/gif)public String getContentType()
public InputStream getContents()
throws RemoteException
RemoteException - in the case of network failurepublic void setContents(byte[] contents)
contents - The actual contents for the resource as a byte arraypublic void setContents(InputStream contents)
InputStreamAdaptercontents - The content input streampublic int getContentLength()
public byte[] getContentsAsBytes()
public boolean hasContentsUpdates()
public void setContentsfromStore(DAVResourceInterface resource)
resource - A DAV Resource from which the contents of the item will be setpublic void setContentsStatus(int contentsStatus)
contentsStatus - The content status to be setpublic int getContentsStatus()
public void checkout()
throws RemoteException
public void checkin()
throws RemoteException
public void uncheckout()
throws RemoteException
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||