|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapFolder
A folder used for organizing business items within an InformationMap.
Field Summary |
---|
Fields inherited from interface com.sas.iquery.metadata.business.LocalizableModelObject |
---|
EVENT_LOCALIZABLE_DESCRIPTIONS_CHANGED, EVENT_LOCALIZABLE_LABELS_CHANGED |
Method Summary | ||
---|---|---|
void |
addBusinessItem(BusinessItem item)
Adds the specified item to this MapFolder and removes it from any MapFolder it was contained in. |
|
java.util.Map |
copyFolderItems(java.util.List listOfFolderItemsToCopy)
Copies the list of FolderItems to this folder. |
|
java.util.List<BusinessItem> |
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(java.lang.String subfolderLabel)
Finds the specified subfolder and removes it from this folder. |
|
java.lang.String |
getDescription()
Returns a description for this object. |
|
java.lang.String |
getDisplayPath()
Returns the information map folders path from the root information map folder. |
|
java.util.List<BusinessItem> |
getItems()
Returns all business items contained within this folder. |
|
|
getItems(java.lang.Class<T> itemClass)
Returns all business items that are instances of the specified class contained within this folder. |
|
java.lang.String |
getLabel()
Returns a label for this object. |
|
MapFolder |
getParent()
Returns the parent MapFolder object to this folder. |
|
MapFolder |
getSubfolder(java.lang.String name)
Returns the subfolder with the give name or null if no subfolder exist. |
|
java.util.List |
getSubfolders()
Returns all the subfolders for this folder. |
|
boolean |
isEmpty()
Returns true if this folder contains no subfolders, items, and does not have extended attributes. |
|
boolean |
isValidLabel(java.lang.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(java.lang.String description)
Sets the description for this object. |
|
void |
setItems(java.util.List<BusinessItem> items)
Set business items in this folder with the given list. |
|
void |
setLabel(java.lang.String label)
Sets the label for this object. |
Methods inherited from interface com.sas.iquery.metadata.business.LocalizableModelObject |
---|
getLocalizableProperties, getLocalizationPrependKey, setDescription, setDescriptions, setLabel, setLabels, setLocalizableProperties |
Methods inherited from interface com.sas.iquery.metadata.LocalizableNamedObjectInterface |
---|
getDescription, getDescriptions, getLabel, getLabels |
Method Detail |
---|
MapFolder newSubfolder()
void addBusinessItem(BusinessItem item) throws MetadataException
item
- The BusinessItem to be added
MetadataException
- if the operation could not be performed.java.util.List<BusinessItem> deleteBusinessItem(BusinessItem item) throws MetadataException
item
- The business item to be deleted
java.lang.IllegalArgumentException
- is thrown if the specified business item is null
MetadataException
- 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).void removeBusinessItem(BusinessItem item)
item
- The business item to be removed.
java.lang.IllegalArgumentException
- is thrown if the specified business item is nullvoid deleteSubfolder(java.lang.String subfolderLabel) throws com.sas.iquery.metadata.MetadataNotDeletableException
subfolderLabel
- the label of the subfolder to be removed.
com.sas.iquery.metadata.MetadataNotDeletableException
- Can not delete foldervoid deleteSubfolder(MapFolder subfolder) throws com.sas.iquery.metadata.MetadataNotDeletableException
subfolder
- The subfolder to be removed
com.sas.iquery.metadata.MetadataNotDeletableException
- Can not delete folderjava.lang.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.
void moveTo(MapFolder newParent) throws MetadataException
newParent
- The new parent of this MapFolder
MetadataException
- if this folder is the root folder or if trying to parent
this folder is specified as its parent.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 MapFolder
MetadataException
- if this folder is the root folder or if trying to parent
this folder is specified as its parent.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.java.util.List<BusinessItem> getItems()
<T extends BusinessItem> java.util.List<T> getItems(java.lang.Class<T> itemClass)
itemClass
- The class of business items to return
void setItems(java.util.List<BusinessItem> items) throws MetadataException
items
- the list of business items to be set on this folder
java.lang.IllegalArgumentException
- if this is not a valid list
MetadataException
- if the operation could not be performed.MapFolder getParent()
MapFolder getSubfolder(java.lang.String name)
name
- the name of the subfolder to be returned
java.util.List getSubfolders()
java.lang.String getLabel()
getLabel
in interface NamedObjectInterface
void setLabel(java.lang.String label) throws MetadataException
label
- the string to use as the label.
MetadataException
- if this is not a valid labelisValidLabel(String)
boolean isValidLabel(java.lang.String label)
label
- the string to use as the label.
java.lang.String getDescription()
getDescription
in interface NamedObjectInterface
void setDescription(java.lang.String description)
description
- the string to use as the description. Specifying null is allowed.java.util.Map copyFolderItems(java.util.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.
boolean isEmpty()
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |