*** This class provides Binary Compatibility only, not Source Compatibility ***
Class FilteredFolder
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sas.services.information.metadata.Metadata
com.sas.services.information.metadata.Folder
com.sas.services.information.metadata.FilteredFolder
- All Implemented Interfaces:
FilteredFolderInterface,FolderInterface,MetadataInterface,MutableContainerInterface,PublicObjectContainerInterface,PublicObjectInterface, com.sas.services.util.UpgradeInterface,com.sas.storage.editableproperties.LocalizableProperties,Serializable,Remote
- Direct Known Subclasses:
FilteredRepository
@SASScope("ALL")
@BinaryCompatibilityOnly
public class FilteredFolder
extends Folder
implements FilteredFolderInterface, Serializable
This is a generic interface for interacting with a Folder
object. This class is specifically intended to represent
results coming from a search where not all items within
a folder will be represented.
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class com.sas.services.information.metadata.Folder
CREATION_DATE, CURRENT_VERSION, MODIFIED_DATE, OLDEST_VERSION, REPOSITORY_CONTENT_MAPPINGFields inherited from class com.sas.services.information.metadata.Metadata
_actionInterfaces, _children, _isCompatible, _isDestroyPending, _isReadCompatible, _myRefreshInterval, _myState, _omrCreateDate, _omrModifyDate, _repository, _repositoryFlag, _repositoryObject, _treeRefreshTime, formats, gmtZone, OMSOBJ_STRING, REPOSITORY_DAV, REPOSITORY_LOMR, REPOSITORY_NONE, REPOSITORY_OMR, SLASHFields inherited from class java.rmi.server.RemoteObject
refFields inherited from interface com.sas.services.information.metadata.FolderInterface
FOLDER_TYPE_BIPFields inherited from interface com.sas.storage.editableproperties.LocalizableProperties
PROPERTY_DESCRIPTION, PROPERTY_NAMEFields 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstruct a new FilteredFolder with a parent and a "real" folder.protectedFilteredFolder(FilteredFolderInterface p, FolderInterface f, Class theClass) Construct a new FilteredFolder with a parent and a "real" folder. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a filtered result object to this folder.voidaddSubfolder(FolderInterface folder) Add a subfolder to this FilteredFolder.Get the "real" folder with the unfiltered contents that this folder represents.getItem(String name) Get a named item from the folder.getItem(String name, Class itemClass) Deprecated.in favor of getItemByClassgetItem(String name, String metadataType) Deprecated.in favor of getItemByType.getItemByClass(String name, Class itemClass) Get a named item from the folder.getItemByType(String name, String metadataType) Get a named item from the folder.ListgetItems()List all items in the folder.ListgetItems(Class itemClass) Deprecated.in favor of getItemsByClass.ListgetItems(String metadataType) Deprecated.in favor of getItemsByType.ListgetItemsByClass(Class itemClass) List the items in the folder that match the Class passed in as a parameter.ListgetItemsByType(String metadataType) Get a list of items in the folder of a specific type.StringgetName()Gets the name of the object.Get the parent FilteredFolder to this folder.StringGet the repository identifier for this object.getSubfolder(String name) Get a named subfolder.ListGet all the folders immediately below this one in the hiearchy.StringgetType()Return a type string to identify this object.Methods inherited from class com.sas.services.information.metadata.Folder
addChild, addItem, addItem, addNewItem, addSubfolder, copyTo, delete, deleteItem, deleteSubfolder, getChildAt, getChildCount, getChildren, getChildren, getContentCreateDate, getContentInfo, getContentModifyDate, getFolderRefresh, getFolderType, getItemRefresh, getItemSublist, getItemSublist, getLocalizableProperties, getPath, getPublicTypeItem, getTotalNumberOfItems, hasContentBackedItems, hasContentBacking, hasDuplicate, hasDuplicateSubfolder, hasDuplicateSubfolder, insertChild, isEmpty, isItemNameUnique, makeSubfolder, makeSubfolder, mapNameToFilesystem, mapUrlToFilesystem, moveMembersOnOverflow, moveTo, newChild, newServiceObject, refresh, removeChild, removeItem, removeSubfolder, setContentCreateDate, setContentModifyDate, setFolderRefresh, setFolderType, setItemRefresh, setLocalizableProperties, setName, setRepository, upgradeFromPreviousVersionMethods inherited from class com.sas.services.information.metadata.Metadata
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addProcessorInterface, addPrompt, addPropertySet, addRemark, addResponsibleParty, addToList, addTransactionListener, addUsedByPrototype, checkin, checkout, checkPulse, clearInformationService, commit, countAssociatedObjects, deleteAttribute, deleteAttributes, deleteRootObject, destroy, fromByteArray, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getContainer, getCreateDate, getCreatedBy, getDefaultLocalizableProperties, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentifier, getIdentities, getImplementors, getInformationService, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getObjectURI, getParentPath, getParents, getPath, getPaths, getPathUrl, getPathUrl, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getProcessorInterface, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getTreeRefresh, getTypeDescriptor, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, hashCode, isAuthorized, isCompatible, isConnectionException, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logFormat, logFormat, logFormat, logFormat, logMessage, logMessage, logThrowable, notifyTransactionListeners, removeAccessControl, removeDocument, removeExtension, removeFromList, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, reset, rollback, setAttribute, setAttributes, setCompatibility, setDefaultLocalizableProperties, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setTreeRefresh, setUsingPrototype, startTransaction, toByteArray, toString, transactionEvent, uncheckout, update, updateFromBag, validateNameAndFolder, validateNameAndFolder, versionMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLogMethods inherited from class java.rmi.server.RemoteObject
equals, getRef, toStubMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.metadata.FolderInterface
addItem, addNewItem, deleteItem, deleteSubfolder, getContentCreateDate, getContentInfo, getContentModifyDate, getFolderType, getItemSublist, getItemSublist, getPath, getPublicTypeItem, getTotalNumberOfItems, hasDuplicate, hasDuplicateSubfolder, isEmpty, isItemNameUnique, makeSubfolder, makeSubfolder, moveMembersOnOverflow, removeItem, removeSubfolder, setContentCreateDate, setContentModifyDate, setFolderTypeMethods 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, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isObjectAlive, isReadCompatible, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, 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, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, versionMethods inherited from interface com.sas.services.information.publicobject.MutableContainerInterface
addChild, insertChild, removeChildMethods inherited from interface com.sas.services.information.publicobject.PublicObjectContainerInterface
getChildAt, getChildCount, getChildren, getChildren, newChildMethods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
-
Constructor Details
-
FilteredFolder
Construct a new FilteredFolder with a parent and a "real" folder.- Parameters:
p- The FilteredFolderInterface for the parent of this FilteredFolder.f- The FolderInterface from the repository that contains the unfiltered contents.- Throws:
RemoteException- in the event of remote object failure.
-
FilteredFolder
protected FilteredFolder(FilteredFolderInterface p, FolderInterface f, Class theClass) throws RemoteException Construct a new FilteredFolder with a parent and a "real" folder.- Parameters:
p- The FilteredFolderInterface for the parent of this FilteredFolder.f- The FolderInterface from the repository that contains the unfiltered contents.- Throws:
RemoteException- in the event of remote object failure.
-
-
Method Details
-
getName
public String getName() throws RemoteExceptionDescription copied from class:MetadataGets the name of the object.- Specified by:
getNamein interfacePublicObjectInterface- Overrides:
getNamein classMetadata- Returns:
- The name String for the object.
- Throws:
RemoteException- in the event of remote object failure.
-
getReposId
public String getReposId() throws RemoteExceptionDescription copied from class:MetadataGet the repository identifier for this object. The repository ID uniquely identifies the object within the repository.- Specified by:
getReposIdin interfaceMetadataInterface- Overrides:
getReposIdin classMetadata- Returns:
- A String with the repository identifier.
- Throws:
RemoteException- in the event of remote object failure.
-
addSubfolder
Add a subfolder to this FilteredFolder. This isn't an actual persisted add, just an add to a collection.- Specified by:
addSubfolderin interfaceFolderInterface- Overrides:
addSubfolderin classFolder- Parameters:
folder- The FolderInterface to add to this folder.- Throws:
RemoteException- in the event of remote object failure.ServiceException- if a repository error occurs.
-
addLocalItem
Add a filtered result object to this folder.- Specified by:
addLocalItemin interfaceFilteredFolderInterface- Parameters:
obj- The object to add.- Throws:
RemoteException- in the event of remote object failure.
-
getFolder
Get the "real" folder with the unfiltered contents that this folder represents.- Specified by:
getFolderin interfaceFilteredFolderInterface- Returns:
- The FolderInterface for the repository folder with the unfiltered contents.
- Throws:
RemoteException- in the event of remote object failure.
-
getType
public String getType() throws RemoteExceptionReturn a type string to identify this object.- Specified by:
getTypein interfaceMetadataInterface- Overrides:
getTypein classFolder- Returns:
- The type string ("Folder").
- Throws:
RemoteException- in the event of remote object failure.
-
getParent
Get the parent FilteredFolder to this folder.- Specified by:
getParentin interfaceFolderInterface- Specified by:
getParentin interfaceMetadataInterface- Overrides:
getParentin classFolder- Returns:
- The FilteredFolder that's the parent to this folder, or null if this folder doesn't have a parent.
- Throws:
RemoteException- in the event of remote object failure.
-
getItems
List all items in the folder. These are only the individual items. Subfolders will be returned separately.- Specified by:
getItemsin interfaceFolderInterface- Overrides:
getItemsin classFolder- Returns:
- A List of MetadataInterface objects in this folder.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItems
Deprecated.in favor of getItemsByType.Get a list of items in the folder of a specific type.- 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. If there aren't any matching objects, an empty List is returned.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemsByType
Get a list of items in the folder of a specific type.- Specified by:
getItemsByTypein interfaceFolderInterface- Overrides:
getItemsByTypein classFolder- 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. If there aren't any matching objects, an empty List is returned.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItems
Deprecated.in favor of getItemsByClass.List the items in the folder that match the Class passed in as a parameter. This Class should be a subclass of MetadataInterface.- Parameters:
itemClass- The Class used to filter the folder objects to return.- Returns:
- A List of MetadataInterface objects that match the itemClass. If no objects match the class, an empty List is returned.
- Throws:
ServiceException- If a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemsByClass
List 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- Overrides:
getItemsByClassin classFolder- Parameters:
itemClass- The Class used to filter the folder objects to return.- Returns:
- A List of MetadataInterface objects that match the itemClass. If no objects match the class, an empty List is returned.
- Throws:
ServiceException- If a repository error occurs.RemoteException- in the event of remote object failure.
-
getItem
Get 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- Overrides:
getItemin classFolder- Parameters:
name- The name of the object to return.- Returns:
- A MetadataInterface object matching name, or null if no object with that name is in the folder.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItem
public MetadataInterface getItem(String name, String metadataType) throws ServiceException, RemoteException Deprecated.in favor of getItemByType.Get 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.- Parameters:
name- The name of the object to return.metadataType- 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.
-
getItemByType
public MetadataInterface getItemByType(String name, String metadataType) throws ServiceException, RemoteException Get 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- Overrides:
getItemByTypein classFolder- Parameters:
name- The name of the object to return.metadataType- 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.
-
getItem
public MetadataInterface getItem(String name, Class itemClass) throws ServiceException, RemoteException Deprecated.in favor of getItemByClassGet 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.- 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 or null if no match was found.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getItemByClass
public MetadataInterface getItemByClass(String name, Class itemClass) throws ServiceException, RemoteException Get 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- Overrides:
getItemByClassin classFolder- 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 or null if no match was found.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
getSubfolders
Get all the folders immediately below this one in the hiearchy.- Specified by:
getSubfoldersin interfaceFolderInterface- Overrides:
getSubfoldersin classFolder- 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.
-
getSubfolder
Get a named subfolder.- Specified by:
getSubfolderin interfaceFolderInterface- Overrides:
getSubfolderin classFolder- 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.
-