|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
A folder used for organizing business items within an InformationMap.
| Method Summary | |
void |
addBusinessItem(BusinessItem item)
Adds the specified item to this MapFolder and removes it from any MapFolder it was contained in. |
Map |
copyFolderItems(List listOfFolderItemsToCopy)
Copies the list of FolderItems to this folder. |
void |
deleteBusinessItem(BusinessItem item)
Removes the specified item from this folder and deletes the item from the underlying BusinessModel. |
void |
deleteSubfolder(MapFolder subfolder)
Removes the specified subfolder. |
void |
deleteSubfolder(String subfolderLabel)
Finds the specified subfolder and removes it from this folder. |
String |
getDescription()
Returns a description for this object. |
String |
getDisplayPath()
Returns the information map folders path from the root information map folder. |
List |
getItems()
Returns all business items contained within this folder. |
List |
getItems(Class itemClass)
Returns all business items that are instances of the specified class contained within this folder. |
String |
getLabel()
Returns a label for this object. |
MapFolder |
getParent()
Returns the parent MapFolder object to this folder. |
MapFolder |
getSubfolder(String name)
Returns the subfolder with the give name or null if no subfolder exist. |
List |
getSubfolders()
Returns all the subfolders for this folder. |
boolean |
isValidLabel(String label)
Checks if a label name is valid A null label or a label containing forward slash (/) or backward slash (\) is not valid |
void |
moveTo(int index)
Reorder this MapFolder based on the specified index. |
void |
moveTo(int index,
MapFolder newParent)
Re-order this MapFolder under the specified folder. |
void |
moveTo(MapFolder newParent)
Re-parents this MapFolder under the specified folder. |
MapFolder |
newSubfolder()
Creates a new MapFolder object and places it into this MapFolder. |
void |
removeBusinessItem(BusinessItem item)
Removes this item from this folder and leaves the item in the underlying BusinessModel |
void |
setDescription(String description)
Sets the description for this object. |
void |
setItems(List items)
Set business items in this folder with the given list. |
void |
setLabel(String label)
Sets the label for this object. |
| Method Detail |
public MapFolder newSubfolder()
public void addBusinessItem(BusinessItem item)
throws MetadataException
item - The BusinessItem to be addedMetadataException - if the operation could not be performed.
public void deleteBusinessItem(BusinessItem item)
throws MetadataException
item - The business item to be deletedIllegalArgumentException - is thrown if the specified business item is nullMetadataException - when this operation could not be performed (for example, if the business item
is involved in a recursive definition you cannot remove it until the recursively-defined loop is broken).public void removeBusinessItem(BusinessItem item)
item - The business item to be removed.IllegalArgumentException - is thrown if the specified business item is null
public void deleteSubfolder(String subfolderLabel)
throws MetadataNotDeletableException
subfolderLabel - the label of the subfolder to be removed.MetadataNotDeletableException - Can not delete folder
public void deleteSubfolder(MapFolder subfolder)
throws MetadataNotDeletableException
subfolder - The subfolder to be removedMetadataNotDeletableException - Can not delete folderpublic String getDisplayPath()
All paths to an information map folder within information maps are made up of a "/" character followed repeatedly by folder names and "/" characters until the calling information map folder is reached.
public void moveTo(MapFolder newParent)
throws MetadataException
newParent - The new parent of this MapFolderMetadataException - if this folder is the root folder or if trying to parent
this folder is specified as its parent.
public void moveTo(int index,
MapFolder newParent)
throws MetadataException
index - index at which this MapFolder is to be inserted under the new parent.newParent - The new parent of this MapFolderMetadataException - if this folder is the root folder or if trying to parent
this folder is specified as its parent.
public void moveTo(int index)
throws MetadataException
index - index at which this MapFolder is to be moved to under the current parent.MetadataException - if this folder is the root folder or if trying to parent
this folder is specified as its parent.public List getItems()
public List getItems(Class itemClass)
itemClass - The class of business items to return
public void setItems(List items)
throws MetadataException
items - the list of business items to be set on this folderIllegalArgumentException - if this is not a valid listMetadataException - if the operation could not be performed.public MapFolder getParent()
public MapFolder getSubfolder(String name)
name - the name of the subfolder to be returnedpublic List getSubfolders()
public String getLabel()
getLabel in interface NamedObjectInterface
public void setLabel(String label)
throws MetadataException
label - the string to use as the label.MetadataException - if this is not a valid labelisValidLabel(String)public boolean isValidLabel(String label)
label - the string to use as the label.public String getDescription()
getDescription in interface NamedObjectInterfacepublic void setDescription(String description)
description - the string to use as the description. Specifying null is allowed.
public Map copyFolderItems(List listOfFolderItemsToCopy)
throws MetadataException
listOfFolderItemsToCopy - Items to copy to this folder.MetadataException - if this is the root folder, if trying to parent
this folder to itself, or if the new parent doesn't exist.
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||