|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
This is a generic interface for interacting with a Folder object.
Note: This interface currently has no support for ordering of items within a Folder although the contents are returned in an ordered list. It may be useful to subclass the list of items to allow sorting by name, date created, date modified, etc.
| Field Summary | |
static String |
FOLDER_TYPE_BIP
The type string that most BIP applications like. |
| Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
| 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 |
deleteItem(MetadataInterface item)
Delete an item from this folder. |
void |
deleteSubfolder(String name)
Delete a subfolder. |
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. |
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 path of the current folder. |
FolderInterface |
getSubfolder(String name)
Get a named subfolder. |
List |
getSubfolders()
Get all the folders immediately below this one in the hiearchy. |
FolderInterface |
makeSubfolder(String name)
Makes a subfolder under the current folder. |
void |
removeItem(MetadataInterface item)
Remove an item from the folder. |
void |
removeSubfolder(String name)
Remove a subfolder from the current folder. |
void |
setFolderType(String type)
Set the folder type. |
| Field Detail |
public static final String FOLDER_TYPE_BIP
| Method Detail |
public String getPath()
throws RemoteException
RemoteException - in the event of remote object failure.
public List getItems()
throws ServiceException,
RemoteException
ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public List getItemsByType(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 getItemsByClass(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 MetadataInterface getItem(String name)
throws ServiceException,
RemoteException
name - 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
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 getItemByClass(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 List getSubfolders()
throws ServiceException,
RemoteException
ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public FolderInterface getSubfolder(String name)
throws ServiceException,
RemoteException
name - 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
item - 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
name - 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
item - 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
item - 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
name - 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
folder - 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
name - 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
name - The name of the subfolder to delete.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public FolderInterface getParent()
throws ServiceException,
RemoteException
If the current folder has more than one parent, the preferred (first) parent folder is returned.
ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void setFolderType(String type)
throws ServiceException,
RemoteException
type - 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
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 | |||||||||||||