|
| 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
This class implements the FolderInterface. It allows manipulation of a folder, getting, adding, removing or deleting contents (items) or subfolders.
Client code should avoid casting to this class. Instead, cast to FolderInterface.
| 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 | |
|
Folder()
Default constructor. |
|
Folder(Object o)
Construct a folder given an object to initialize with. |
protected |
Folder(Object o,
Class theClass)
Construct a folder given an object to initialize with. |
| Method Summary | |
void |
addItem(MetadataInterface item)
Add an item to the folder. |
MetadataInterface |
addNewItem(String name,
String type)
Create a new metadata object to add to the folder. |
void |
addSubfolder(FolderInterface folder)
Add an existing folder to this one as a subfolder. |
void |
delete()
Delete this object from its repository. |
void |
deleteItem(MetadataInterface item)
Delete an item from this folder. |
void |
deleteSubfolder(String name)
Delete a subfolder. |
static long |
getFolderRefresh()
Get the interval for keeping cached subfolder information before forcing a trip to the server to refresh it. |
String |
getFolderType()
Get the folder type. |
MetadataInterface |
getItem(String name)
Get a named item from the folder. |
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. |
static long |
getItemRefresh()
Get the interval to keep member item information before forcing a trip to the server to refresh it. |
List |
getItems()
List all items in the folder. |
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. |
FolderInterface |
getParent()
Get parent folder. |
String |
getPath()
Get the path string for this Folder. |
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. |
FolderInterface |
makeSubfolder(String name)
Makes a subfolder under the current folder. |
String |
mapNameToFilesystem(int hostOS,
String prefix,
String suffix)
Map the metadata object name to a file system path. |
String |
mapUrlToFilesystem(int hostOS,
String prefix,
String suffix)
Map the metadata object's SBIP Url to a file system path. |
void |
removeItem(MetadataInterface item)
Remove an item from the folder. |
void |
removeSubfolder(String name)
Remove a subfolder from the current folder. |
static void |
setFolderRefresh(long interval)
Set the interval for keeping cached subfolder information before forcing a trip to the server to refresh it. |
void |
setFolderType(String type)
Set the folder type. |
static void |
setItemRefresh(long interval)
Set the interval to keep member item information before forcing a trip to the server to refresh it. |
void |
setName(String name)
Set the name of the object. |
void |
setRepository(RepositoryInterface ri)
Set the repository that this item exists in. |
| 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 |
| Constructor Detail |
public Folder()
throws RemoteException
RemoteException - in the event of remote object failure.
public Folder(Object o)
throws RemoteException
o - The repository object to initialize with.RemoteException - in the event of remote object failure.
protected Folder(Object o,
Class theClass)
throws RemoteException
o - The repository object to initialize with.theClass - Class which will be used to determine the
appropriate RMI socket factories.RemoteException - in the event of remote object failure.| Method Detail |
public static void setFolderRefresh(long interval)
interval - The interval in milliseconds to keep the cached
subfolder information.public static long getFolderRefresh()
public static void setItemRefresh(long interval)
interval - The interval in milliseconds to keep the cached
member item information.public static long getItemRefresh()
public String getType()
throws RemoteException
getType in interface MetadataInterfacegetType in class MetadataRemoteException - in the event of remote object failure.
public String getPath()
throws RemoteException
getPath in interface FolderInterfaceRemoteException - in the event of remote object failure.
public List getItems()
throws ServiceException,
RemoteException
getItems in interface FolderInterfaceServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public List getItemsByType(String metadataType)
throws ServiceException,
RemoteException
getItemsByType in interface FolderInterfacemetadataType - 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 getItemsByClass(Class itemClass)
throws ServiceException,
RemoteException
getItemsByClass in interface FolderInterfaceitemClass - 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 FolderInterfacename - The name of the 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 FolderInterfacename - 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 getItemByClass(String name,
Class itemClass)
throws ServiceException,
RemoteException
getItemByClass in interface FolderInterfacename - 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 FolderInterfaceServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public FolderInterface getSubfolder(String name)
throws ServiceException,
RemoteException
getSubfolder in interface FolderInterfacename - The name of the folder to return.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void addItem(MetadataInterface item)
throws ServiceException,
RemoteException
addItem in interface FolderInterfaceitem - The item to add to this folder.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public MetadataInterface addNewItem(String name,
String type)
throws ServiceException,
RemoteException
addNewItem in interface FolderInterfacename - The name of the new object.type - The repository-specific type of the new object.ServiceException - In the event of repository failure.RemoteException - In the event of remote object failure.
public void removeItem(MetadataInterface item)
throws ServiceException,
RemoteException
removeItem in interface FolderInterfaceitem - The item to remove from this folder.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void deleteItem(MetadataInterface item)
throws ServiceException,
RemoteException
deleteItem in interface FolderInterfaceitem - The item to delete from this folder.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public FolderInterface makeSubfolder(String name)
throws ServiceException,
RemoteException
makeSubfolder in interface FolderInterfacename - The name of the folder to create.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void addSubfolder(FolderInterface folder)
throws ServiceException,
RemoteException
addSubfolder in interface FolderInterfacefolder - The folder to add to this one as a subfolder.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void removeSubfolder(String name)
throws ServiceException,
RemoteException
removeSubfolder in interface FolderInterfacename - The name of the subfolder to remove.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void deleteSubfolder(String name)
throws ServiceException,
RemoteException
deleteSubfolder in interface FolderInterfacename - The name of the subfolder to delete.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void delete()
throws ServiceException,
RemoteException
MetadataInterfacedelete in interface MetadataInterfacedelete in class Metadatacom.sas.services.information.metadata.MetadataInterfaceServiceException - in the event of a repository failure.RemoteException - in the event of a network failure.
public FolderInterface getParent()
throws ServiceException,
RemoteException
If the current folder has more than one parent, the preferred (first) parent folder is returned.
getParent in interface FolderInterfaceServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void setRepository(RepositoryInterface ri)
throws RemoteException
MetadataInterfacesetRepository in interface MetadataInterfacesetRepository in class Metadatacom.sas.services.information.metadata.MetadataInterfacerepository - A handle to the repository for this object.IllegalStateException - If the repository has already been set.RemoteException - if an error occurs
public void setFolderType(String type)
throws ServiceException,
RemoteException
setFolderType in interface FolderInterfacetype - The String indicating the type of the folder.ServiceException - If a repository error occurs.RemoteException - In the event of remote object failure.
public String getFolderType()
throws ServiceException,
RemoteException
getFolderType in interface FolderInterfaceServiceException - If a repository error occurs.RemoteException - In the event of remote object failure.
public void setName(String name)
throws RemoteException
setName in interface MetadataInterfacesetName in class Metadataname - The name of the object in the repository.RemoteException - in the event of remote object failure.
public String mapNameToFilesystem(int hostOS,
String prefix,
String suffix)
throws RemoteException,
IllegalArgumentException
mapNameToFilesystem in interface MetadataInterfacemapNameToFilesystem in class MetadatahostOS - The host operating system. Valid values include
Names.UNKNOWN,
Names.WINDOWS,
Names.UNIX,
Names.ZOS_HFS,
Names.ZOS_PDS and
Names.WEBDAV.prefix - The prefix to use when creating the file system path.suffix - The suffix to use when creating the file system path.String The file system path.RemoteException - In the event of remote object failure.IllegalArgumentException - If a null name is
specified or if an invalid host operating system value is
specified.
public String mapUrlToFilesystem(int hostOS,
String prefix,
String suffix)
throws ServiceException,
RemoteException,
IllegalArgumentException
mapUrlToFilesystem in interface MetadataInterfacemapUrlToFilesystem in class MetadatahostOS - The host operating system. Valid values include
Names.UNKNOWN,
Names.WINDOWS,
Names.UNIX,
Names.ZOS_HFS,
Names.ZOS_PDS and
Names.WEBDAV.prefix - The prefix to use when creating the file system path.suffix - The suffix to use when creating the file system path.String The file system path.ServiceException - if a repository error occurs.RemoteException - In the event of remote object failure.IllegalArgumentException - If a null name is
specified or if an invalid host operating system value is
specified.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||