|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.metadata.dav.DAVFolder
public class DAVFolder
DAVFolder represents a collection in a DAV Store. DAVEntity provides the common functionality and DAVFolder only the folder specific characteristics.
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, UNSET |
Constructor Summary | |
---|---|
DAVFolder(com.sas.services.information.RepositoryData entity)
Creates a new DAVFolder from the information in the entity |
|
DAVFolder(RepositoryInterface repos,
java.lang.String reposId)
Creates a new DAVFolder for the entity with a repository id reposId
in the repository repos |
|
DAVFolder(java.lang.String url,
java.util.Map properties)
Creates a new DAVFolder from the url and a property map |
Method Summary | |
---|---|
void |
addEntity(DAVEntityInterface anItem)
Add an entity to a folder |
DAVFolderInterface |
createFolder(java.lang.String name)
Create a folder (always relative to some folder |
DAVFolderInterface |
createFolder(java.lang.String name,
java.lang.String contentClass)
Create a folder (always relative to some folder |
DAVItemInterface |
createItem(java.lang.String name)
Create an item (always relative to some folder |
DAVItemInterface |
createItem(java.lang.String name,
java.lang.String contentClass)
Create an item (always relative to some folder) |
java.util.Collection |
getEntities()
Get a list of the entites in this folder |
DAVEntityInterface |
getItem(java.lang.String name)
Get an item in a folder by name |
java.util.Map |
getItems()
Get the internal list of items. |
void |
refresh()
Refresh this entity. |
void |
refresh(DAVFolderInterface entity)
Refresh this entity from the parameter. |
protected void |
setItems(java.util.Map items)
Set the internal list of items. |
Methods inherited from class com.sas.services.information.metadata.dav.DAVEntity |
---|
addAccessControlEntry, addAttribute, addAttributes, addUpdateMultiple, addUpdateSingle, clearLocalLists, 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, isUpdatePending, move, refresh, removeAccessControlEntry, setAccessControls, setACL, setAttribute, setAttributes, setContentClass, setDeleted, setDescription, setGUID, setName, setRemarksKeys, setReposId, setRepository, toString, 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, isUpdatePending, move, 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 DAVFolder(RepositoryInterface repos, java.lang.String reposId)
reposId
in the repository repos
public DAVFolder(java.lang.String url, java.util.Map properties)
public DAVFolder(com.sas.services.information.RepositoryData entity)
Method Detail |
---|
public DAVEntityInterface getItem(java.lang.String name)
getItem
in interface DAVFolderInterface
name
- The name of the item to be retrieved
public void addEntity(DAVEntityInterface anItem) throws ServiceException, java.rmi.RemoteException
addEntity
in interface DAVFolderInterface
anItem
- The item to be added to the folder
ServiceException
java.rmi.RemoteException
public DAVItemInterface createItem(java.lang.String name, java.lang.String contentClass) throws ServiceException, java.rmi.RemoteException
createItem
in interface DAVFolderInterface
name
- The name of the new itemcontentClass
- The type of item to create
ServiceException
java.rmi.RemoteException
public DAVItemInterface createItem(java.lang.String name) throws ServiceException, java.rmi.RemoteException
createItem
in interface DAVFolderInterface
name
- The name of the new item
ServiceException
java.rmi.RemoteException
public DAVFolderInterface createFolder(java.lang.String name) throws ServiceException, java.rmi.RemoteException
createFolder
in interface DAVFolderInterface
name
- The name of the new folder
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public DAVFolderInterface createFolder(java.lang.String name, java.lang.String contentClass) throws ServiceException, java.rmi.RemoteException
createFolder
in interface DAVFolderInterface
name
- The name of the new foldercontentClass
- The type of folder to create
ServiceException
- If a server error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void refresh()
refresh
in interface DAVEntityInterface
refresh
in class DAVEntity
public void refresh(DAVFolderInterface entity)
refresh
in interface DAVFolderInterface
entity
- A DAVEntity from which to obtain the latest propertiespublic java.util.Collection getEntities()
getEntities
in interface DAVFolderInterface
public java.util.Map getItems()
getItems
in interface DAVFolderInterface
protected void setItems(java.util.Map items)
items
- The internal list of items for the folder
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |