|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.metadata.dav.DAVItem
@SASScope(value="ALL") @BinaryCompatibilityOnly public class DAVItem
DAVItem represents a non-collection resource in a DAV Store. DAVEntity provides the common functionality and DAVItem only the resource specific characteristics (eg. content manipulation).
| Field Summary |
|---|
| Fields inherited from class com.sas.services.information.metadata.dav.DAVEntity |
|---|
_acl, _descAttribute, _fullUrl, _name, _nameAttribute, _objectClass, _properties, _repos, _reposId, _resource, _schemaProperties, aclList, content, hasBeenFetched, LOCAL, STORE, UNSET |
| Constructor Summary | |
|---|---|
DAVItem(com.sas.services.information.RepositoryData entity)
Creates a new DAVFolder from the information in the entity |
|
DAVItem(RepositoryInterface repos,
java.lang.String reposId)
Creates a new DAVItem for the entity with a repository id reposId
in the repository repos |
|
DAVItem(java.lang.String url,
java.util.Map properties)
Creates a new DAVItem from the url and a property map |
|
| Method Summary | |
|---|---|
void |
checkin()
Check in the item |
void |
checkout()
Check out the item |
void |
clearLocalLists()
Clear local lists as for DAVEntity and then reset the contentsStatus for this resource to reflect the fact that the content is the same as in the DAV store |
protected void |
finalize()
|
int |
getContentLength()
Get the length of the content |
java.io.InputStream |
getContents()
Get the contents of the item. |
byte[] |
getContentsAsBytes()
Get the contents of the item as a byte array |
int |
getContentsStatus()
Returns the status of the contents in the item |
java.lang.String |
getContentType()
Get the content type for the item. |
boolean |
hasContentsUpdates()
Does this item have any new content that should be updated/persisted ? |
boolean |
isUpdatePending()
Are there any updates pending for this entity. |
void |
setContents(byte[] contents)
Set the contents of the item. |
void |
setContents(java.io.InputStream contents)
Set the contents of the item from an input stream. |
void |
setContentsfromStore(DAVResourceInterface r)
Set the contents of the item from store |
void |
setContentsStatus(int contentsStatus)
Set the content status field. |
void |
setContentType(java.lang.String contentType)
Sets the content type for the item. |
java.lang.String |
toString()
|
void |
uncheckout()
Uncheckout the item |
| Methods inherited from class com.sas.services.information.metadata.dav.DAVEntity |
|---|
addAccessControlEntry, addAttribute, addAttributes, addUpdateMultiple, addUpdateSingle, commitUpdates, copy, delete, deleteAttribute, deleteAttributes, fetchEntity, getAccessControlList, getACL, getAttribute, getAttributes, getCreateDate, getDAVResource, getDescription, getFolder, getGUID, getModifyDate, getName, getObjectClass, getProperties, getRemarksKeys, getRemoveUpdates, getReposId, getRepository, getSetUpdates, getType, getUpdateableACL, getUrl, getURL, isCollection, isDeleted, move, refresh, refresh, removeAccessControlEntry, setAccessControls, setACL, setAttribute, setAttributes, setContentClass, setDeleted, setDescription, setGUID, setName, setRemarksKeys, setReposId, setRepository, update |
| 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, 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 |
| Constructor Detail |
|---|
public DAVItem(RepositoryInterface repos,
java.lang.String reposId)
reposId
in the repository repos
public DAVItem(java.lang.String url,
java.util.Map properties)
public DAVItem(com.sas.services.information.RepositoryData entity)
| Method Detail |
|---|
public void setContentType(java.lang.String contentType)
setContentType in interface DAVItemInterfacecontentType - A string that represents the media type for the itempublic java.lang.String getContentType()
getContentType in interface DAVItemInterface
public java.io.InputStream getContents()
throws java.rmi.RemoteException
getContents in interface DAVItemInterfacejava.rmi.RemoteException - in the case of network failurepublic void setContents(byte[] contents)
setContents in interface DAVItemInterfacecontents - A byte array that represents the item's contentpublic void setContents(java.io.InputStream contents)
InputStreamAdapter
setContents in interface DAVItemInterfacecontents - An input stream containing the contentspublic void setContentsfromStore(DAVResourceInterface r)
setContentsfromStore in interface DAVItemInterfacer - A byte array that represents the item's contentpublic int getContentLength()
getContentLength in interface DAVItemInterfacepublic byte[] getContentsAsBytes()
getContentsAsBytes in interface DAVItemInterfacepublic java.lang.String toString()
toString in class DAVEntitypublic void clearLocalLists()
clearLocalLists in class DAVEntitypublic boolean hasContentsUpdates()
hasContentsUpdates in interface DAVItemInterface
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setContentsStatus(int contentsStatus)
DAVItemInterface
setContentsStatus in interface DAVItemInterfacecontentsStatus - The content status to be setpublic int getContentsStatus()
getContentsStatus in interface DAVItemInterfacepublic boolean isUpdatePending()
isUpdatePending in interface DAVEntityInterfaceisUpdatePending in class DAVEntity
public void checkout()
throws java.rmi.RemoteException
checkout in interface DAVItemInterfacejava.rmi.RemoteException
public void checkin()
throws java.rmi.RemoteException
checkin in interface DAVItemInterfacejava.rmi.RemoteException
public void uncheckout()
throws java.rmi.RemoteException
uncheckout in interface DAVItemInterfacejava.rmi.RemoteException
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||