*** This class provides Binary Compatibility only, not Source Compatibility ***
Class VirtualFolder
java.lang.Object
com.sas.services.information.metadata.VirtualMetadata
com.sas.services.information.metadata.VirtualFolder
- All Implemented Interfaces:
FolderInterface,MetadataInterface,VirtualFolderInterface,MutableContainerInterface,PublicObjectContainerInterface,PublicObjectInterface,Serializable,Remote
- Direct Known Subclasses:
ServerVirtualFolder
@SASScope("ALL")
@BinaryCompatibilityOnly
public class VirtualFolder
extends VirtualMetadata
implements VirtualFolderInterface, Serializable
An implementation of a virtual folder. Virtual folders are different from normal folder
smart objects in that they do not exist within metadata. Because of this, a virtual folder
cannot be modified. In fact, most of the methods in this implementatation throw an
UnsupportedOperationException.
A virtual folder should only be managed/created within the VirtualFolderManager
class.
- Since:
- 9.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, ProcessorInterface> protected Stringprotected List<PublicObjectInterface> protected Stringprotected List<SearchFilter> protected FolderInterfaceThe parent folder.protected RepositoryInterfaceprotected Searchprotected List<VirtualFolderInterface> Fields inherited from interface com.sas.services.information.metadata.FolderInterface
FOLDER_TYPE_BIPFields inherited from interface com.sas.services.information.metadata.MetadataInterface
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(PublicObjectInterface newChild) Add a child to this container.voidaddItem(MetadataInterface item) Add an item to the folder.addNewItem(String name, String type) Create a new metadata object to add to the folder.voidaddSubfolder(FolderInterface folder) Add an existing folder to this one as a subfolder.voidaddSubfolder(VirtualFolderInterface folder) Adds a nested virtual folder.voiddeleteItem(MetadataInterface item) Delete an item from this folder.voiddeleteSubfolder(String name) Delete a subfolder.getChildAt(int index) Returns a child item at the specified locationintReturns the number of children within this container.List<PublicObjectInterface> Get a List of the children of this container.ListgetChildren(String type) Get a list of children of a specific type.Get the object which contains this object.DateGet the content create date.Returns theContentInfoobject corresponding to the root of the given PathUrl.DateGet the content modification date.StringGet the folder type.StringGet the unique ID of this object.getItem(String name) Get a named item from the folder.getItemByClass(String name, Class itemClass) Get a named item from the folder.getItemByType(String name, String publicType) Get a named item from the folder.List<MetadataInterface> getItems()List all items in the folder.List<MetadataInterface> getItemsByClass(Class itemClass) List the items in the folder that match the Class passed in as a parameter.List<MetadataInterface> getItemsByType(String metadataType) Get a list of items in the folder of a specific type.ListgetItemSublist(int start, int end) Get a sublist of items from this folderListgetItemSublist(int start, int end, String sort) Get a sublist of items from this folder which are sorted.StringgetName()Get the name of this object.protected List<SearchFilter> Return the FolderInterface that contains this object.StringgetPath()Get path of the current folder.Get the SBIP URL.ProcessorInterfacegetProcessorInterface(String interfaceClassName) Get the specified action interface.getPublicTypeItem(String name, String type) Find an item in this Folder with the given name and type.StringGet the repository ID for the item.Get the handle to the repository for this object.Returns the search manager that is used to populate the contents of a virtual folder.getSubfolder(String name) Get a named subfolder.ListGet all the folders immediately below this one in the hiearchy.intGet the total number of items in this folderStringgetType()Get the object type.Get the type descriptor which should have the information from the Type Dictionary in metadata available for the clients.booleanhasDuplicate(String name, String type) Check if there's a duplicate object in this folder with the same name and of the same type.booleanhasDuplicateSubfolder(String name) Check if this folder already has a subfolder with the given name.voidinsertChild(PublicObjectInterface child, int index) Inserts a child into the parent container at the specified index.booleanisEmpty()Returns true if this folder has no subfolders and no member objects.booleanisItemNameUnique(MetadataInterface member) Validate that the name of the metadata object is unique within the Folder.makeSubfolder(String name) Makes a subfolder under the current folder.makeSubfolder(String name, String type) Make a subfolder of a specific type.booleanCheck for too many objects in a folder.newChild(String type, String name) Create a new metadata object and add it to the container.voidrefresh()Refresh the data for this object from the repository.voidremoveChild(PublicObjectInterface child) Remove a child from this container.voidremoveItem(MetadataInterface item) Remove an item from the folder.voidremoveSubfolder(String name) Remove a subfolder from the current folder.voidsetContentCreateDate(Date date) Set the Date that the content folder was created.voidsetContentModifyDate(Date date) Set the date when an object was last added to or removed from this folder.voidsetFolderType(String type) Set the folder type.voidsetRepository(RepositoryInterface repository) Set the repository that this item exists in.voidsetSearchManager(Search search) StringtoString()Methods inherited from class com.sas.services.information.metadata.VirtualMetadata
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addProcessorInterface, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getCreatedBy, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getObjectURI, getParentPath, getParents, getPath, getPaths, getPathUrl, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, versionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getCreatedBy, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isObjectAlive, isReadCompatible, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, versionMethods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getObjectURI
-
Field Details
-
_parentFolder
The parent folder. May be a folder or another virtual folder. -
_repository
-
_searchManager
-
_actionInterfaces
protected Map<String,ProcessorInterface> _actionInterfaces -
_members
-
_subFolders
-
_name
protected String _name -
_id
protected String _id -
_origSearchFilters
-
-
Method Details
-
getIdentifier
Description copied from interface:PublicObjectInterfaceGet the unique ID of this object.- Specified by:
getIdentifierin interfacePublicObjectInterface- Overrides:
getIdentifierin classVirtualMetadata- Returns:
- String
- Throws:
ServiceExceptionRemoteException
-
getReposId
public String getReposId() throws RemoteExceptionDescription copied from interface:MetadataInterfaceGet the repository ID for the item. This should be a string that uniquely identifies the object within this repository.- Specified by:
getReposIdin interfaceMetadataInterface- Overrides:
getReposIdin classVirtualMetadata- Returns:
- The repository identifier for this object.
- Throws:
RemoteException- if an error occurs
-
refresh
Description copied from interface:MetadataInterfaceRefresh the data for this object from the repository.- Specified by:
refreshin interfaceMetadataInterface- Overrides:
refreshin classVirtualMetadata- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getName
public String getName() throws RemoteExceptionDescription copied from interface:PublicObjectInterfaceGet the name of this object.- Specified by:
getNamein interfacePublicObjectInterface- Overrides:
getNamein classVirtualMetadata- Returns:
- String
- Throws:
RemoteException
-
getSearchManager
Description copied from interface:VirtualFolderInterfaceReturns the search manager that is used to populate the contents of a virtual folder.- Specified by:
getSearchManagerin interfaceVirtualFolderInterface- Returns:
- search manager
- Throws:
ServiceExceptionRemoteException
-
setSearchManager
- Throws:
ServiceExceptionRemoteException
-
getOriginalFilters
-
getRepository
Description copied from interface:MetadataInterfaceGet the handle to the repository for this object.- Specified by:
getRepositoryin interfaceMetadataInterface- Overrides:
getRepositoryin classVirtualMetadata- Returns:
- A handle to the repository this item exists in.
- Throws:
RemoteException- if an error occurs
-
setRepository
public void setRepository(RepositoryInterface repository) throws IllegalStateException, RemoteException Description copied from interface:MetadataInterfaceSet the repository that this item exists in.- Specified by:
setRepositoryin interfaceMetadataInterface- Overrides:
setRepositoryin classVirtualMetadata- Parameters:
repository- A handle to the repository for this object.- Throws:
IllegalStateException- If the repository has already been set.RemoteException- if an error occurs
-
getContainer
Description copied from interface:PublicObjectInterfaceGet the object which contains this object.- Specified by:
getContainerin interfacePublicObjectInterface- Overrides:
getContainerin classVirtualMetadata- Returns:
- PublicObjectContainerInterface
- Throws:
ServiceExceptionRemoteException
-
getParent
Description copied from interface:MetadataInterfaceReturn the FolderInterface that contains this object. For objects in the SAS Folder hierarchy, there should be exactly one parent folder.- Specified by:
getParentin interfaceFolderInterface- Specified by:
getParentin interfaceMetadataInterface- Overrides:
getParentin classVirtualMetadata- Returns:
- The FolderInterface that contains this object as a member.
- Throws:
ServiceException- if an error occursRemoteException- if an error occurs
-
getPath
public String getPath() throws RemoteExceptionDescription copied from interface:FolderInterfaceGet path of the current folder. This is the path starting with the Tree just below the Bip Service SoftwareComponent down to this folder, with forward-slash separators.- Specified by:
getPathin interfaceFolderInterface- Returns:
- The path string for this folder.
- Throws:
RemoteException- in the event of remote object failure.
-
getPathUrl
Description copied from interface:PublicObjectInterfaceGet the SBIP URL. This is an object that contains the repository name, the path from a root to the object, the object's name and the object's type. In the SAS Metadata Server, an object is in a rooted Tree if it has a path to a Tree that's associated to a SoftwareComponent with a ClassIdentifier of "E5F27790-2149-11D6-8828-AA0004006D06", and a name of "BIP Service".- Specified by:
getPathUrlin interfacePublicObjectInterface- Overrides:
getPathUrlin classVirtualMetadata- Returns:
- a
PathUrlvalue with the object's location in a rooted tree. If the object isn't in a rooted tree, null is returned. - Throws:
ServiceException- if a repository error occurs.RemoteException- if a remote object error occurs.IllegalStateException
-
getType
public String getType() throws RemoteExceptionDescription copied from interface:MetadataInterfaceGet the object type. Subclasses of Metadata will return a repository-neutral type string. If no subclass exists, Metadata returns the repository-specific type.- Specified by:
getTypein interfaceMetadataInterface- Overrides:
getTypein classVirtualMetadata- Returns:
- A type string for the object.
- Throws:
RemoteException- if an error occurs
-
getTypeDescriptor
Description copied from interface:PublicObjectInterfaceGet the type descriptor which should have the information from the Type Dictionary in metadata available for the clients.- Specified by:
getTypeDescriptorin interfacePublicObjectInterface- Overrides:
getTypeDescriptorin classVirtualMetadata- Returns:
- TypeDescriptorInterface
- Throws:
ServiceExceptionRemoteException
-
getFolderType
Description copied from interface:FolderInterfaceGet the folder type.- Specified by:
getFolderTypein interfaceFolderInterface- Returns:
- A String with the type of folder.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getProcessorInterface
public ProcessorInterface getProcessorInterface(String interfaceClassName) throws ServiceException, RemoteException Description copied from interface:PublicObjectInterfaceGet the specified action interface.- Specified by:
getProcessorInterfacein interfacePublicObjectInterface- Overrides:
getProcessorInterfacein classVirtualMetadata- Parameters:
interfaceClassName-- Returns:
- ProcessorInterface
- Throws:
ServiceExceptionRemoteException
-
getItem
Description copied from interface:FolderInterfaceGet a named item from the folder. With only a name, we can't guarantee that the object coming back will be the one the user wants. Even if we ask for a type, name collisions can occur.- Specified by:
getItemin interfaceFolderInterface- Parameters:
name- The name of the object to return.- Returns:
- A MetadataInterface object matching name.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getPublicTypeItem
public MetadataInterface getPublicTypeItem(String name, String type) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceFind an item in this Folder with the given name and type. This will use search to get the item, so it will always go to the server to find the object. The upside is, it will always get a fresh copy of the object. The downside is, no caching applies. This doesn't populate the folders items, and will always go to the server.- Specified by:
getPublicTypeItemin interfaceFolderInterface- Parameters:
name- The name of the object to find. If null, a null is returned.type- The public type name of the object type. If this is null, a null is returned. If the type is not recognized as a public type, a ServiceException will be thrown- Returns:
- The matching item in this folder, or null if none exists.
- Throws:
ServiceException- if the type is not a public type, or if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemByClass
public MetadataInterface getItemByClass(String name, Class itemClass) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceGet a named item from the folder. It must match both the name and the Class provided. If no Class is provided on the call, the first object matching the name is retuned. If no match is found, null is returned.- Specified by:
getItemByClassin interfaceFolderInterface- Parameters:
name- The name of the object to return.itemClass- The Class of the object to return.- Returns:
- A MetadataInterface object in the folder that matches the name and Class requested.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemByType
public MetadataInterface getItemByType(String name, String publicType) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceGet a named item from the folder. With only a name, we can't guarantee that the object coming back will be the one the user wants. Even if we ask for a type, name collisions can occur.- Specified by:
getItemByTypein interfaceFolderInterface- Parameters:
name- The name of the object to return.publicType- The type of object to return.- Returns:
- A MetadataInterface object that matches the name and type requested, or null if none is found.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItems
Description copied from interface:FolderInterfaceList all items in the folder. These are only the individual items. Subfolders will be returned separately.- Specified by:
getItemsin interfaceFolderInterface- Returns:
- A List of MetadataInterface objects in this folder.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemsByClass
public List<MetadataInterface> getItemsByClass(Class itemClass) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceList the items in the folder that match the Class passed in as a parameter. This Class should be a subclass of MetadataInterface.- Specified by:
getItemsByClassin interfaceFolderInterface- Parameters:
itemClass- The Class used to filter the folder objects to return.- Returns:
- A List of MetadataInterface objects that match the itemClass.
- Throws:
ServiceException- If a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemsByType
public List<MetadataInterface> getItemsByType(String metadataType) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceGet a list of items in the folder of a specific type.- Specified by:
getItemsByTypein interfaceFolderInterface- Parameters:
metadataType- A String that will match the output from the object's getType method.- Returns:
- A List of MetadataInterface objects whose getType() method returns the string specified by metadataType.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
addSubfolder
Description copied from interface:VirtualFolderInterfaceAdds a nested virtual folder.- Specified by:
addSubfolderin interfaceVirtualFolderInterface- Parameters:
folder- a sub or nested virtual folder- Throws:
ServiceExceptionRemoteException
-
getSubfolder
Description copied from interface:FolderInterfaceGet a named subfolder.- Specified by:
getSubfolderin interfaceFolderInterface- Parameters:
name- The name of the folder to return.- Returns:
- A FolderInterface object with the name requested, or null if it doesn't exist.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getSubfolders
Description copied from interface:FolderInterfaceGet all the folders immediately below this one in the hiearchy.- Specified by:
getSubfoldersin interfaceFolderInterface- Returns:
- A List of FolderInterface objects that are members of this folder.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getTotalNumberOfItems
Description copied from interface:FolderInterfaceGet the total number of items in this folder- Specified by:
getTotalNumberOfItemsin interfaceFolderInterface- Returns:
- The number of items in the folder.
- Throws:
RemoteExceptionServiceException
-
hasDuplicate
Description copied from interface:FolderInterfaceCheck if there's a duplicate object in this folder with the same name and of the same type.- Specified by:
hasDuplicatein interfaceFolderInterface- Parameters:
name- The name to check for.type- The type to check for. This should be the value of the PublicType attribute because I can't necessarily instantiate the object if the current user doesn't have ReadMetadata permission on it. I need to construct a filter to do a getCountNoSecurity with.- Returns:
- true if this folder has an object with the given name and type, false otherwise.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
hasDuplicateSubfolder
Description copied from interface:FolderInterfaceCheck if this folder already has a subfolder with the given name.- Specified by:
hasDuplicateSubfolderin interfaceFolderInterface- Parameters:
name- The name of the subfolder to check for.- Returns:
- true if this folder has a subfolder with the given name, false otherwise.
- Throws:
ServiceException- If a metadata server, or other service level error occurs.RemoteException- In the event of remote object failure.
-
isEmpty
Description copied from interface:FolderInterfaceReturns true if this folder has no subfolders and no member objects. This method may return false even if bothFolderInterface.getSubfolders()andFolderInterface.getItems()return empty lists due to objects hidden by access controls.- Specified by:
isEmptyin interfaceFolderInterface- Returns:
- true if this folder has no subfolders and no member objects
- Throws:
ServiceException- If a metadata server, or other service level error occurs.RemoteException- In the event of remote object failure.
-
isItemNameUnique
Description copied from interface:FolderInterfaceValidate that the name of the metadata object is unique within the Folder. The object should already be an item in the folder. If it's not, then the hasDuplicate call should be made. If the member name is unique in the folder, the method returns true. Otherwise it returns false. This method does not validate the name string itself.- Specified by:
isItemNameUniquein interfaceFolderInterface- Parameters:
member- The item to check for a unique name in the folder.- Returns:
- True if the member's name is unique, false otherwise.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
addChild
Description copied from interface:MutableContainerInterfaceAdd a child to this container. For folders, the new child can be a sub folder, or a simple element.- Specified by:
addChildin interfaceMutableContainerInterface- Parameters:
newChild- The new child object to add to this container.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getChildren
Description copied from interface:PublicObjectContainerInterfaceGet a List of the children of this container.- Specified by:
getChildrenin interfacePublicObjectContainerInterface- Returns:
- All child nodes below this container. For folder, this includes subfolders and members.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getChildCount
Description copied from interface:PublicObjectContainerInterfaceReturns the number of children within this container.- Specified by:
getChildCountin interfacePublicObjectContainerInterface- Returns:
- child count
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
toString
public String toString()- Overrides:
toStringin classObject
-
removeChild
Description copied from interface:MutableContainerInterfaceRemove a child from this container. Trying to remove a child and not moving it to another container may be invalid.- Specified by:
removeChildin interfaceMutableContainerInterface- Parameters:
child- The child to remove from this container.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
insertChild
public void insertChild(PublicObjectInterface child, int index) throws ServiceException, RemoteException Description copied from interface:MutableContainerInterfaceInserts a child into the parent container at the specified index.- Specified by:
insertChildin interfaceMutableContainerInterface- Parameters:
child- the new child to add to this containerindex- the index where the child is to be inserted into- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getChildAt
Description copied from interface:PublicObjectContainerInterfaceReturns a child item at the specified location- Specified by:
getChildAtin interfacePublicObjectContainerInterface- Parameters:
index- the index of the child- Returns:
- the child item at the specified index
- Throws:
ServiceExceptionRemoteException
-
getChildren
Description copied from interface:PublicObjectContainerInterfaceGet a list of children of a specific type. The type string should be the unlocalized type, listed as the "Type Abbreviation" in the type dictionary.- Specified by:
getChildrenin interfacePublicObjectContainerInterface- Parameters:
type- The "type abbreviation" which will be used to filter the children returned from the container.- Returns:
- A List of child elements that match the type specified.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
newChild
public PublicObjectInterface newChild(String type, String name) throws ServiceException, RemoteException Description copied from interface:PublicObjectContainerInterfaceCreate a new metadata object and add it to the container.- Specified by:
newChildin interfacePublicObjectContainerInterface- Parameters:
type- The public object type to add to the container.name- The name of the new object- Returns:
- The newly created public object.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object faiure.
-
getItemSublist
Description copied from interface:FolderInterfaceGet a sublist of items from this folder- Specified by:
getItemSublistin interfaceFolderInterface- Parameters:
start- item number to start atend- item number to end at- Returns:
- The sublist of items.
- Throws:
RemoteExceptionServiceException
-
getItemSublist
public List getItemSublist(int start, int end, String sort) throws RemoteException, ServiceException Description copied from interface:FolderInterfaceGet a sublist of items from this folder which are sorted.- Specified by:
getItemSublistin interfaceFolderInterface- Parameters:
start- item number to start atend- item number to end atsort- one of name, namedescending, desc, descdescending, date, datedescending, type, typedescending, defaults to name- Returns:
- The sorted sublist of items.
- Throws:
RemoteExceptionServiceException
-
makeSubfolder
public FolderInterface makeSubfolder(String name, String type) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceMake a subfolder of a specific type. the type string should be the smart object type.- Specified by:
makeSubfolderin interfaceFolderInterface- Parameters:
name- The name of the new subfolder.type- The smart object type of the new subfolder.- Returns:
- A new subfolder of this folder.
- Throws:
ServiceException- If the type is not a FolderInterface derivative, or if a repository error occurs.RemoteException- In the event of remote object failure.
-
makeSubfolder
Description copied from interface:FolderInterfaceMakes a subfolder under the current folder.- Specified by:
makeSubfolderin interfaceFolderInterface- Parameters:
name- The name of the folder to create.- Returns:
- The new folder
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
addItem
Description copied from interface:FolderInterfaceAdd an item to the folder. The item should already exist. This method makes the association that puts it in this folder, but doesn't create the item in the store.- Specified by:
addItemin interfaceFolderInterface- Parameters:
item- The item to add to this folder.- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
addNewItem
public MetadataInterface addNewItem(String name, String type) throws ServiceException, RemoteException Description copied from interface:FolderInterfaceCreate a new metadata object to add to the folder.- Specified by:
addNewItemin interfaceFolderInterface- Parameters:
name- The name of the new object.type- The repository-specific type of the new object.- Returns:
- The new metadata object.
- Throws:
ServiceException- In the event of repository failure.RemoteException- In the event of remote object failure.
-
addSubfolder
Description copied from interface:FolderInterfaceAdd an existing folder to this one as a subfolder.- Specified by:
addSubfolderin interfaceFolderInterface- Parameters:
folder- The folder to add to this one as a subfolder.- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
deleteItem
Description copied from interface:FolderInterfaceDelete an item from this folder. This method deletes the item from the repository as well as removing it from the folder.- Specified by:
deleteItemin interfaceFolderInterface- Parameters:
item- The item to delete from this folder.- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
deleteSubfolder
Description copied from interface:FolderInterfaceDelete a subfolder. This will only work if the folder is empty.- Specified by:
deleteSubfolderin interfaceFolderInterface- Parameters:
name- The name of the subfolder to delete.- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getContentCreateDate
Description copied from interface:FolderInterfaceGet the content create date. This is maintained separately from the metadata create date, which is when the Tree object itself was created. This date indicates when the content folder was created.- Specified by:
getContentCreateDatein interfaceFolderInterface- Returns:
- The Date when the content folder was created.
- Throws:
ServiceException- If a service level error occured.RemoteException- In the event of remote object failure.
-
getContentInfo
Description copied from interface:FolderInterfaceReturns theContentInfoobject corresponding to the root of the given PathUrl.Implementation Note: computed results are cached; repeated calls are not expensive.
- Specified by:
getContentInfoin interfaceFolderInterface- Returns:
- The ContentInfo object with the path and credentials for the content area, or null if the folder isn't content mapped.
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
getContentModifyDate
Description copied from interface:FolderInterfaceGet the content modification date. This is the date and time of the most recent addition to or deletion from this folder. This information may be maintained by the client.- Specified by:
getContentModifyDatein interfaceFolderInterface- Returns:
- The Date when an object was last added or removed.
- Throws:
ServiceException- If a service level error occured.RemoteException- In the event of remote object failure.
-
moveMembersOnOverflow
Description copied from interface:FolderInterfaceCheck for too many objects in a folder. If the folder contains more than a limit defined by the folder, the current members of the folder are moved to a new subfolder. The new subfolder will be named "1", "2", etc. Subfolders are not considered in the count.- Specified by:
moveMembersOnOverflowin interfaceFolderInterface- Returns:
- true if objects were moved to a subfolder
- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-
removeItem
Description copied from interface:FolderInterfaceRemove an item from the folder. This call just breaks the association with the item, and leaves it otherwise undisturbed in the repository.- Specified by:
removeItemin interfaceFolderInterface- Parameters:
item- The item to remove from this folder.- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
removeSubfolder
Description copied from interface:FolderInterfaceRemove a subfolder from the current folder. This breaks the association, but does not remove it from the repository.- Specified by:
removeSubfolderin interfaceFolderInterface- Parameters:
name- The name of the subfolder to remove.- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
setContentCreateDate
Description copied from interface:FolderInterfaceSet the Date that the content folder was created.- Specified by:
setContentCreateDatein interfaceFolderInterface- Parameters:
date- The date that the mapped content folder was created.- Throws:
ServiceException- If a service level error occured.RemoteException- In the event of remote object failure.
-
setContentModifyDate
Description copied from interface:FolderInterfaceSet the date when an object was last added to or removed from this folder.- Specified by:
setContentModifyDatein interfaceFolderInterface- Parameters:
date- The last time the contents of this folder were modified.- Throws:
ServiceException- If a service level error occured.RemoteException- In the event of remote object failure.
-
setFolderType
Description copied from interface:FolderInterfaceSet the folder type.- Specified by:
setFolderTypein interfaceFolderInterface- Parameters:
type- The String indicating the type of the folder.- Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failure.
-