|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.metadata.FilteredFolder
public class FilteredFolder
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.
| Field Summary |
|---|
| Fields inherited from class com.sas.services.information.metadata.Folder |
|---|
CREATION_DATE, CURRENT_VERSION, MODIFIED_DATE, OLDEST_VERSION, REPOSITORY_CONTENT_MAPPING |
| Fields 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, SLASH |
| Fields inherited from interface com.sas.services.information.metadata.FolderInterface |
|---|
FOLDER_TYPE_BIP |
| Fields 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 | |
|---|---|
|
FilteredFolder(FilteredFolderInterface p,
FolderInterface f)
Construct a new FilteredFolder with a parent and a "real" folder. |
protected |
FilteredFolder(FilteredFolderInterface p,
FolderInterface f,
java.lang.Class theClass)
Construct a new FilteredFolder with a parent and a "real" folder. |
| Method Summary | |
|---|---|
void |
addLocalItem(MetadataInterface obj)
Add a filtered result object to this folder. |
void |
addSubfolder(FolderInterface folder)
Add a subfolder to this FilteredFolder. |
FolderInterface |
getFolder()
Get the "real" folder with the unfiltered contents that this folder represents. |
MetadataInterface |
getItem(java.lang.String name)
Get a named item from the folder. |
MetadataInterface |
getItem(java.lang.String name,
java.lang.Class itemClass)
Deprecated. in favor of getItemByClass |
MetadataInterface |
getItem(java.lang.String name,
java.lang.String metadataType)
Deprecated. in favor of getItemByType. |
MetadataInterface |
getItemByClass(java.lang.String name,
java.lang.Class itemClass)
Get a named item from the folder. |
MetadataInterface |
getItemByType(java.lang.String name,
java.lang.String metadataType)
Get a named item from the folder. |
java.util.List |
getItems()
List all items in the folder. |
java.util.List |
getItems(java.lang.Class itemClass)
Deprecated. in favor of getItemsByClass. |
java.util.List |
getItems(java.lang.String metadataType)
Deprecated. in favor of getItemsByType. |
java.util.List |
getItemsByClass(java.lang.Class itemClass)
List the items in the folder that match the Class passed in as a parameter. |
java.util.List |
getItemsByType(java.lang.String metadataType)
Get a list of items in the folder of a specific type. |
java.lang.String |
getName()
Gets the name of the object. |
FolderInterface |
getParent()
Get the parent FilteredFolder to this folder. |
java.lang.String |
getReposId()
Get the repository identifier for this object. |
FolderInterface |
getSubfolder(java.lang.String name)
Get a named subfolder. |
java.util.List |
getSubfolders()
Get all the folders immediately below this one in the hiearchy. |
java.lang.String |
getType()
Return a type string to identify this object. |
| Methods inherited from interface com.sas.services.information.metadata.FolderInterface |
|---|
addItem, addNewItem, deleteItem, deleteSubfolder, getContentCreateDate, getContentInfo, getContentModifyDate, getFolderType, getItemSublist, getItemSublist, getPath, getTotalNumberOfItems, hasDuplicate, hasDuplicateSubfolder, isEmpty, isItemNameUnique, makeSubfolder, makeSubfolder, moveMembersOnOverflow, removeItem, removeSubfolder, setContentCreateDate, setContentModifyDate, setFolderType |
| Methods inherited from interface com.sas.services.information.publicobject.MutableContainerInterface |
|---|
addChild, insertChild, removeChild |
| Methods inherited from interface com.sas.services.information.publicobject.PublicObjectContainerInterface |
|---|
getChildAt, getChildCount, getChildren, getChildren, newChild |
| Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface |
|---|
addProcessorInterface, getContainer, getIdentifier, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor |
| Constructor Detail |
|---|
public FilteredFolder(FilteredFolderInterface p,
FolderInterface f)
throws java.rmi.RemoteException
p - The FilteredFolderInterface for the parent of this
FilteredFolder.f - The FolderInterface from the repository that contains
the unfiltered contents.
java.rmi.RemoteException - in the event of remote object failure.
protected FilteredFolder(FilteredFolderInterface p,
FolderInterface f,
java.lang.Class theClass)
throws java.rmi.RemoteException
p - The FilteredFolderInterface for the parent of this
FilteredFolder.f - The FolderInterface from the repository that contains
the unfiltered contents.
java.rmi.RemoteException - in the event of remote object failure.| Method Detail |
|---|
public java.lang.String getName()
throws java.rmi.RemoteException
Metadata
getName in interface PublicObjectInterfacegetName in class Metadatajava.rmi.RemoteException - in the event of remote object failure.
public java.lang.String getReposId()
throws java.rmi.RemoteException
Metadata
getReposId in interface MetadataInterfacegetReposId in class Metadatajava.rmi.RemoteException - in the event of remote object failure.
public void addSubfolder(FolderInterface folder)
throws ServiceException,
java.rmi.RemoteException
addSubfolder in interface FolderInterfaceaddSubfolder in class Folderfolder - The FolderInterface to add to this folder.
java.rmi.RemoteException - in the event of remote object failure.
ServiceException - if a repository error occurs.
public void addLocalItem(MetadataInterface obj)
throws java.rmi.RemoteException
addLocalItem in interface FilteredFolderInterfaceobj - The object to add.
java.rmi.RemoteException - in the event of remote object failure.
public FolderInterface getFolder()
throws java.rmi.RemoteException
getFolder in interface FilteredFolderInterfacejava.rmi.RemoteException - in the event of remote object failure.
public java.lang.String getType()
throws java.rmi.RemoteException
getType in interface MetadataInterfacegetType in class Folderjava.rmi.RemoteException - in the event of remote object failure.
public FolderInterface getParent()
throws java.rmi.RemoteException
getParent in interface FolderInterfacegetParent in interface MetadataInterfacegetParent in class Folderjava.rmi.RemoteException - in the event of remote object failure.
public java.util.List getItems()
throws ServiceException,
java.rmi.RemoteException
getItems in interface FolderInterfacegetItems in class FolderServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public java.util.List getItems(java.lang.String metadataType)
throws ServiceException,
java.rmi.RemoteException
metadataType - A String that will match the output
from the object's getType method.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public java.util.List getItemsByType(java.lang.String metadataType)
throws ServiceException,
java.rmi.RemoteException
getItemsByType in interface FolderInterfacegetItemsByType in class FoldermetadataType - A String that will match the output
from the object's getType method.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public java.util.List getItems(java.lang.Class itemClass)
throws ServiceException,
java.rmi.RemoteException
itemClass - The Class used to filter the folder
objects to return.
ServiceException - If a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public java.util.List getItemsByClass(java.lang.Class itemClass)
throws ServiceException,
java.rmi.RemoteException
getItemsByClass in interface FolderInterfacegetItemsByClass in class FolderitemClass - The Class used to filter the folder
objects to return.
ServiceException - If a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public MetadataInterface getItem(java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
getItem in interface FolderInterfacegetItem in class Foldername - The name of the object to return.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public MetadataInterface getItem(java.lang.String name,
java.lang.String metadataType)
throws ServiceException,
java.rmi.RemoteException
name - The name of the object to return.metadataType - The type of object to return.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public MetadataInterface getItemByType(java.lang.String name,
java.lang.String metadataType)
throws ServiceException,
java.rmi.RemoteException
getItemByType in interface FolderInterfacegetItemByType in class Foldername - The name of the object to return.metadataType - The type of object to return.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public MetadataInterface getItem(java.lang.String name,
java.lang.Class itemClass)
throws ServiceException,
java.rmi.RemoteException
name - The name of the object to return.itemClass - The Class of the object to return.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public MetadataInterface getItemByClass(java.lang.String name,
java.lang.Class itemClass)
throws ServiceException,
java.rmi.RemoteException
getItemByClass in interface FolderInterfacegetItemByClass in class Foldername - The name of the object to return.itemClass - The Class of the object to return.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public java.util.List getSubfolders()
throws ServiceException,
java.rmi.RemoteException
getSubfolders in interface FolderInterfacegetSubfolders in class FolderServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
public FolderInterface getSubfolder(java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
getSubfolder in interface FolderInterfacegetSubfolder in class Foldername - The name of the folder to return.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||