*** This class provides Binary Compatibility only, not Source Compatibility ***
Class DAVFolder
java.lang.Object
com.sas.services.information.metadata.dav.DAVEntity
com.sas.services.information.metadata.dav.DAVFolder
- All Implemented Interfaces:
AttributesInterface,DAVEntityInterface,DAVFolderInterface,Serializable
- Direct Known Subclasses:
DAVPackage,DAVPerson,DAVPersonalrepository,DAVProfile,DAVRemarks
@SASScope("ALL")
@BinaryCompatibilityOnly
public class DAVFolder
extends DAVEntity
implements DAVFolderInterface
DAVFolder represents a collection in a DAV Store. DAVEntity provides the common functionality
and DAVFolder only the folder specific characteristics.
- Since:
- 1.0
- See Also:
-
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
ConstructorsConstructorDescriptionDAVFolder(RepositoryData entity) Creates a new DAVFolder from the information in the entityDAVFolder(RepositoryInterface repos, String reposId) Creates a new DAVFolder for the entity with a repository idreposIdin the repositoryreposDAVFolder(String url, Map properties) Creates a new DAVFolder from the url and a property map -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(DAVEntityInterface anItem) Add an entity to a foldercreateFolder(String name) Create a folder (always relative to some foldercreateFolder(String name, String contentClass) Create a folder (always relative to some foldercreateItem(String name) Create an item (always relative to some foldercreateItem(String name, String contentClass) Create an item (always relative to some folder)CollectionGet a list of the entites in this foldergetItem(String name) Get an item in a folder by nameMapgetItems()Get the internal list of items.voidrefresh()Refresh this entity.voidrefresh(DAVFolderInterface entity) Refresh this entity from the parameter.protected voidsetItems(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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.metadata.dav.AttributesInterface
addAttribute, addAttributes, deleteAttribute, deleteAttributes, getAttribute, getAttributes, setAttribute, setAttributesMethods 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
-
Constructor Details
-
DAVFolder
Creates a new DAVFolder for the entity with a repository idreposIdin the repositoryrepos -
DAVFolder
public DAVFolder(String url, Map properties) Creates a new DAVFolder from the url and a property map -
DAVFolder
public DAVFolder(RepositoryData entity) Creates a new DAVFolder from the information in the entity
-
-
Method Details
-
getItem
Get an item in a folder by name- Specified by:
getItemin interfaceDAVFolderInterface- Parameters:
name- The name of the item to be retrieved- Returns:
- DAVEntityInterface The item to be returned
-
addEntity
Add an entity to a folder- Specified by:
addEntityin interfaceDAVFolderInterface- Parameters:
anItem- The item to be added to the folder- Throws:
ServiceExceptionRemoteException
-
createItem
public DAVItemInterface createItem(String name, String contentClass) throws ServiceException, RemoteException Create an item (always relative to some folder)- Specified by:
createItemin interfaceDAVFolderInterface- Parameters:
name- The name of the new itemcontentClass- The type of item to create- Returns:
- DAVItemInterface The newly created item within the folder
- Throws:
ServiceExceptionRemoteException
-
createItem
Create an item (always relative to some folder- Specified by:
createItemin interfaceDAVFolderInterface- Parameters:
name- The name of the new item- Returns:
- DAVItemInterface The newly created item within the folder
- Throws:
ServiceExceptionRemoteException
-
createFolder
Create a folder (always relative to some folder- Specified by:
createFolderin interfaceDAVFolderInterface- Parameters:
name- The name of the new folder- Returns:
- DAVItemInterface The newly created folder within the folder
- Throws:
ServiceException- If a server error occurs.RemoteException- In the event of remote object failure.
-
createFolder
public DAVFolderInterface createFolder(String name, String contentClass) throws ServiceException, RemoteException Create a folder (always relative to some folder- Specified by:
createFolderin interfaceDAVFolderInterface- Parameters:
name- The name of the new foldercontentClass- The type of folder to create- Returns:
- DAVItemInterface The newly created folder within the folder
- Throws:
ServiceException- If a server error occurs.RemoteException- In the event of remote object failure.
-
refresh
public void refresh()Refresh this entity. This means getting a fresh copy from the repository- Specified by:
refreshin interfaceDAVEntityInterface- Overrides:
refreshin classDAVEntity
-
refresh
Refresh this entity from the parameter.- Specified by:
refreshin interfaceDAVFolderInterface- Parameters:
entity- A DAVEntity from which to obtain the latest properties
-
getEntities
public Collection getEntities()Get a list of the entites in this folder- Specified by:
getEntitiesin interfaceDAVFolderInterface- Returns:
- Collection (of DAVEntityInterface) The items in the folder
-
getItems
public Map getItems()Get the internal list of items.- Specified by:
getItemsin interfaceDAVFolderInterface- Returns:
- Map (names to DAVEntityInterface) Items in the folder
-
setItems
protected void setItems(Map items) Set the internal list of items.- Parameters:
items- The internal list of items for the folder
-