|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
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
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.
| Fields inherited from class com.sas.services.information.metadata.Metadata |
_repository, _repositoryFlag, _repositoryObject, formats, gmtZone, REPOSITORY_DAV, REPOSITORY_LDAP, REPOSITORY_NONE, REPOSITORY_OMR |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface com.sas.services.information.metadata.FolderInterface |
FOLDER_TYPE_BIP |
| Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
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,
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(String name)
Get a named item from the folder. |
MetadataInterface |
getItem(String name,
Class itemClass)
Deprecated. in favor of getItemByClass |
MetadataInterface |
getItem(String name,
String metadataType)
Deprecated. in favor of getItemByType. |
MetadataInterface |
getItemByClass(String name,
Class itemClass)
Get a named item from the folder. |
MetadataInterface |
getItemByType(String name,
String metadataType)
Get a named item from the folder. |
List |
getItems()
List all items in the folder. |
List |
getItems(Class itemClass)
Deprecated. in favor of getItemsByClass. |
List |
getItems(String metadataType)
Deprecated. in favor of getItemsByType. |
List |
getItemsByClass(Class itemClass)
List the items in the folder that match the Class passed in as a parameter. |
List |
getItemsByType(String metadataType)
Get a list of items in the folder of a specific type. |
String |
getName()
Get the name for this object. |
FolderInterface |
getParent()
Get the parent FilteredFolder to this folder. |
String |
getReposId()
Get the repository ID for the item. |
FolderInterface |
getSubfolder(String name)
Get a named subfolder. |
List |
getSubfolders()
Get all the folders immediately below this one in the hiearchy. |
String |
getType()
Return a type string to identify this object. |
| Methods inherited from class com.sas.services.information.metadata.Folder |
addItem, addNewItem, delete, deleteItem, deleteSubfolder, getFolderRefresh, getFolderType, getItemRefresh, getPath, makeSubfolder, mapNameToFilesystem, mapUrlToFilesystem, removeItem, removeSubfolder, setFolderRefresh, setFolderType, setItemRefresh, setName, setRepository |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.services.information.metadata.FolderInterface |
addItem, addNewItem, deleteItem, deleteSubfolder, getFolderType, getPath, makeSubfolder, removeItem, removeSubfolder, setFolderType |
| Constructor Detail |
public FilteredFolder(FilteredFolderInterface p,
FolderInterface f)
throws RemoteException
p - The FilteredFolderInterface for the parent of this
FilteredFolder.f - The FolderInterface from the repository that contains
the unfiltered contents.RemoteException - in the event of remote object failure.
protected FilteredFolder(FilteredFolderInterface p,
FolderInterface f,
Class theClass)
throws RemoteException
p - The FilteredFolderInterface for the parent of this
FilteredFolder.f - The FolderInterface from the repository that contains
the unfiltered contents.RemoteException - in the event of remote object failure.| Method Detail |
public String getName()
throws RemoteException
MetadataInterfacegetName in interface MetadataInterfacegetName in class Metadatacom.sas.services.information.metadata.MetadataInterfaceRemoteException - if an error occurs
public String getReposId()
throws RemoteException
MetadataInterfacegetReposId in interface MetadataInterfacegetReposId in class Metadatacom.sas.services.information.metadata.MetadataInterfaceRemoteException - if an error occurs
public void addSubfolder(FolderInterface folder)
throws ServiceException,
RemoteException
addSubfolder in interface FolderInterfaceaddSubfolder in class Folderfolder - The FolderInterface to add to this folder.RemoteException - in the event of remote object failure.
public void addLocalItem(MetadataInterface obj)
throws RemoteException
addLocalItem in interface FilteredFolderInterfaceobj - The object to add.RemoteException - in the event of remote object failure.
public FolderInterface getFolder()
throws RemoteException
getFolder in interface FilteredFolderInterfaceRemoteException - in the event of remote object failure.
public String getType()
throws RemoteException
getType in interface MetadataInterfacegetType in class FolderRemoteException - in the event of remote object failure.
public FolderInterface getParent()
throws RemoteException
getParent in interface FolderInterfacegetParent in class FolderRemoteException - in the event of remote object failure.
public List getItems()
throws ServiceException,
RemoteException
getItems in interface FolderInterfacegetItems in class FolderServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public List getItems(String metadataType)
throws ServiceException,
RemoteException
metadataType - A String that will match the output
from the object's getType method.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public List getItemsByType(String metadataType)
throws ServiceException,
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.RemoteException - in the event of remote object failure.
public List getItems(Class itemClass)
throws ServiceException,
RemoteException
itemClass - The Class used to filter the folder
objects to return.ServiceException - If a repository error occurs.RemoteException - in the event of remote object failure.
public List getItemsByClass(Class itemClass)
throws ServiceException,
RemoteException
getItemsByClass in interface FolderInterfacegetItemsByClass in class FolderitemClass - The Class used to filter the folder
objects to return.ServiceException - If a repository error occurs.RemoteException - in the event of remote object failure.
public MetadataInterface getItem(String name)
throws ServiceException,
RemoteException
getItem in interface FolderInterfacegetItem in class Foldername - The name of the object to return.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public MetadataInterface getItem(String name,
String metadataType)
throws ServiceException,
RemoteException
name - The name of the object to return.metadataType - The type of object to return.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public MetadataInterface getItemByType(String name,
String metadataType)
throws ServiceException,
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.RemoteException - in the event of remote object failure.
public MetadataInterface getItem(String name,
Class itemClass)
throws ServiceException,
RemoteException
name - The name of the object to return.itemClass - The Class of the object to return.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public MetadataInterface getItemByClass(String name,
Class itemClass)
throws ServiceException,
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.RemoteException - in the event of remote object failure.
public List getSubfolders()
throws ServiceException,
RemoteException
getSubfolders in interface FolderInterfacegetSubfolders in class FolderServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public FolderInterface getSubfolder(String name)
throws ServiceException,
RemoteException
getSubfolder in interface FolderInterfacegetSubfolder in class Foldername - The name of the folder to return.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||