java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.app.FolderLink |
The FolderLink element defines a shortcut to a folder (in the metadata) that is used by a folder browser or editor associated with the context. The folder is associated either by id (the object-id for the folder from the metadata) or by sys-folder-id (a value from the EnumDSSXMLFolderNames enumeration which lists all the system folders of a metadata).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ATT_DESC | ||||||||||
String | ATT_DESC_ID | ||||||||||
String | ATT_FEATURE_ID | ||||||||||
String | ATT_ID | ||||||||||
String | ATT_IS_ROOT | ||||||||||
String | ATT_SYS_FOLDER_ID | ||||||||||
String | NODE_FOLDER_LINK |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FolderLink() | |||||||||||
FolderLink(Node root)
Creates a FolderLink and populates it with the information in the Xml Node.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getDesc()
Returns a descriptor that the application should use to display the folder link,
or shortcut, if the desc-id attribute is missing.
| ||||||||||
String |
getDescId()
Returns the Resource Bundle item id that the application should use to display the folder
link, or shortcut, in the language of the user's locale.
| ||||||||||
String |
getFeatureId()
Returns the feature-id of a feature that is evaluated to determine whether the
folder link, or shortcut, should be displayed.
| ||||||||||
String |
getId()
Indicates the object-id of the folder (from the metadata) that is associated
with this folder-link.
| ||||||||||
Object |
getKey()
Default implementation for
getKey() . | ||||||||||
static String | getPreferredSysFolderID(AppContext appContext, int sysFolderID) | ||||||||||
String | getPreferredSysFolderID(AppContext appContext) | ||||||||||
int |
getSysFolderID()
Returns the integer id for the system folder (from the metadata)
to which a folder browser or editor should be pointed when the
folder link, or shortcut, is selected.
| ||||||||||
WebObjectInfo |
getWebFolderObject(WebObjectSource wos, Messages messages)
This method is deprecated.
Use
getWebFolderObject(AppContext) instead
| ||||||||||
WebObjectInfo | getWebFolderObject(AppContext appContext) | ||||||||||
boolean |
isRoot()
Returns whether this FolderLink should be used as the root folder
when browsing in the given context.
| ||||||||||
void |
setDesc(String desc)
Sets a descriptor that the application should use to display the folder link, or shortcut,
if the desc-id attribute is missing.
| ||||||||||
void |
setDescId(String descId)
Sets the Resource Bundle item id that the application should use to display the folder
link, or shortcut, in the language of the user's locale.
| ||||||||||
void |
setFeatureId(String feature)
Sets the feature-id of a feature that is evaluated to determine whether the
folder link, or shortcut, should be displayed.
| ||||||||||
void |
setId(String value)
Sets the object-id for the folder (from the metadata) to which a folder
browser or editor should be pointed when the folder link, or shortcut,
is selected.
| ||||||||||
void |
setIsRoot(boolean isRoot)
indicates whether the FolderLink should be used as the root folder
when browsing in the given context.
| ||||||||||
void |
setKey(Element element)
Default implementation for
setKey() . | ||||||||||
void |
setSysFolderID(int value)
Sets the integer id for the system folder (from the metadata)
to which a folder browser or editor should be pointed when the
folder link, or shortcut, is selected.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getKeyAttribute()
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the
getKey and
setKey methods. | ||||||||||
boolean |
isKeyAttribute(String name)
Returns
true is the name is that of the key attribute. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a FolderLink and populates it with the information in the Xml Node. Internally
it calls initFromXML(Node)
.
root | the xml node. |
---|
Returns a descriptor that the application should use to display the folder link, or shortcut, if the desc-id attribute is missing.
Returns the Resource Bundle item id that the application should use to display the folder link, or shortcut, in the language of the user's locale.
Returns the feature-id of a feature that is evaluated to determine whether the
folder link, or shortcut, should be displayed. It returns null
if no feature is required (i.e. it should always be displayed).
Indicates the object-id of the folder (from the metadata) that is associated with this folder-link.
Default implementation for getKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings; the attribute to use
is specified by the getKeyAttribute()
method.
getKeyAttribute()
is empty returns null
, otherwise it returns the value of the given attribute.
WebObjectsException |
---|
Returns the integer id for the system folder (from the metadata) to which a folder browser or editor should be pointed when the folder link, or shortcut, is selected. The valid values of this attribute are defined in the EnumDSSXMLFolderNames interface. (For example, the name 'DssXmlFolderNameAutoStyles' specifies the 'AutoStyles' folder in the 'Public Objects' folder and has an integer value of '57'.) The value of this attribute does not change between product versions.
This method is deprecated.
Use getWebFolderObject(AppContext)
instead
wos | WebObjectSource initialized instance |
---|---|
messages | Messages initialized instance |
WebObjectInfo
of the folderLink objectappContext | BeanContext initialized instance |
---|
WebObjectInfo
of the folderLink objectReturns whether this FolderLink should be used as the root folder when browsing in the given context.
Sets a descriptor that the application should use to display the folder link, or shortcut, if the desc-id attribute is missing.
Sets the Resource Bundle item id that the application should use to display the folder link, or shortcut, in the language of the user's locale.
Sets the feature-id of a feature that is evaluated to determine whether the folder link, or shortcut, should be displayed.
Sets the object-id for the folder (from the metadata) to which a folder browser or editor should be pointed when the folder link, or shortcut, is selected.
value | The new id for the folderlink |
---|
indicates whether the FolderLink should be used as the root folder when browsing in the given context.
Default implementation for setKey()
. It assumes a single attribute
can be used to uniquely identify this element among its siblings and adds this attribute
to the given element; the attribute to use
is specified by the getKeyAttribute()
method.
Sets the integer id for the system folder (from the metadata) to which a folder browser or editor should be pointed when the folder link, or shortcut, is selected. The valid values of this attribute are defined in the EnumDSSXMLFolderNames interface. (For example, the name 'DssXmlFolderNameAutoStyles' specifies the 'AutoStyles' folder in the 'Public Objects' folder and has an integer value of '57'.) The value of this attribute does not change between product versions.
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the getKey
and
setKey
methods.
Returns true
is the name is that of the key attribute.