java.lang.Object | |
↳ | com.microstrategy.web.app.utils.BeanHelper |
This class contains some public utility methods that can be used for handling beans included on the application
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BLANK_REPORT_ID |
This constant is deprecated.
Ask for the blankReportId configuration parameter instead |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BeanHelper() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static TransformInstance |
addStyle(Transformable bean, String style)
If necessary, adds a style from the style catalog to the bean.
| ||||||||||
static void |
checkSavePrivilege(ObjectBean bean, WebFolder folder)
Check whether current user has privileges to save the object in specific folder.
| ||||||||||
static void |
checkSavePrivilege(ObjectBean bean)
Check whether current user has privileges to save the object in current folder.
| ||||||||||
static void |
getBeanList(WebComponent root, int beanType, ArrayList componentList)
Inserts in the provided list all the beans that match the provided type
| ||||||||||
static String |
getEventOriginalSource(RequestKeys keySet, String eventID)
Searches a set of
RequestKeys and returns the event source
that matches the specified eventID | ||||||||||
static int |
getFolderObjectSubTypeCount(FolderBean fb, int objectSubType)
Given the folder bean, get the number of objects on it according to the indicated object subtype
| ||||||||||
static int |
getFolderObjectTypeCount(FolderBean fb, int objectType)
Given the folder bean, get the number of objects on it according to the indicated object type
| ||||||||||
static int |
getInboxObjectCount(InboxBean ib)
Gets the number of messages available on the Inbox bean that was specified as an argument
| ||||||||||
static int |
getMaxSessionIdleTime(AppContext appContext, WebIServerSession session)
Returns max session idle time.
| ||||||||||
static String | getNewObjectTypeName(BeanContext beanContext, WebObjectInfo obj) | ||||||||||
static String | getObjectTypeName(BeanContext beanContext, int type, int subType) | ||||||||||
static String |
getObjectTypeName(BeanContext beanContext, WebObjectInfo obj)
Returns a localized string with the object type name
| ||||||||||
static String |
getReportPropertyValue(ReportBean rb, String propertyName)
Gets the value of the requested property from the bean that was passed as an argument
| ||||||||||
static StyleRequestContext |
getRequestContext(Transformable bean)
Creates and populates a new instance of a StyleRequestContext object.
| ||||||||||
static WebIServerSession |
getSession(Transformable bean)
Returns the current session associated with the corresponding bean.
| ||||||||||
static int |
getSubscriptionsCount(SubscriptionFolderBean sb)
Gets the number of subscriptions available on the Subscription Folder bean that was specified as an argument
| ||||||||||
static boolean |
ignoreOldStyle(ReportBean rb)
Determines if the style applied to the Report should be ignored or not
| ||||||||||
static boolean |
isDossier(WebObjectInfo objInfo)
Check whether a WebObjectInfo instance is has a Dossier ViewMedia type.
| ||||||||||
static boolean |
isObjectOnFolder(FolderBean fb, String objectID)
Determines if the given object id exists as adirect child of the folder bean that was passed as an argument
| ||||||||||
static void | saveProjectIDInBrowserSetting(AppContext appCtx) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This constant is deprecated.
Ask for the blankReportId
configuration parameter instead
Constant that represents the object Id of the blank template report
If necessary, adds a style from the style catalog to the bean. The transform instance is
given as key the same name of the style.
If the BeanContext is of type AppContext, this method also sets debug
flags based on values from the request keys and masks their values based
on the debugFlagsMask parameter
Check whether current user has privileges to save the object in specific folder.
bean | ObjectBean The bean of object we want to save. |
---|---|
folder | WebFolder The folder we want to save the object in. If it is null, it means we save in current folder. |
WebBeanException |
---|
Check whether current user has privileges to save the object in current folder.
bean | ObjectBean The bean of object we want to save. |
---|
WebBeanException |
---|
Inserts in the provided list all the beans that match the provided type
root | WebComponent root to start the search from |
---|---|
beanType | Type of the bean to filter |
componentList | ArrayList to insert the filtered components |
Searches a set of RequestKeys
and returns the event source
that matches the specified eventID
keySet | RequestKeys to get source from |
---|---|
eventID | String containing the eventID to get the source of |
Given the folder bean, get the number of objects on it according to the indicated object subtype
fb | FolderBean instance to search on |
---|---|
objectSubType | object subtype to search for |
Given the folder bean, get the number of objects on it according to the indicated object type
fb | FolderBean instance to search on |
---|---|
objectType | object type to search for |
Gets the number of messages available on the Inbox bean that was specified as an argument
ib | InboxBean to search on |
---|
Returns max session idle time.
appContext | AppContext application context object |
---|---|
session | WebIServerSession IServer session |
Returns a localized string with the object type name
beanContext | BeanContext |
---|---|
obj | WebObjectInfo |
Gets the value of the requested property from the bean that was passed as an argument
rb | ReportBean instance |
---|---|
propertyName | Name of the property to search for |
Creates and populates a new instance of a StyleRequestContext object.
DefaultStyleRequestContext
populated with the current iServerSession.Returns the current session associated with the corresponding bean.
If the bean is an instance of a WebBean
, then it will return
the WebSessionInfo
associated with it; otherwise, it will
try to retrieve the active session from the WebAppSessionManager
from the bean's AppContext
.
WebAppConfigurationRuntimeException | If the session cannot be retrieved. |
---|
Gets the number of subscriptions available on the Subscription Folder bean that was specified as an argument
sb | SubscriptionFolderBean to search on |
---|
Determines if the style applied to the Report should be ignored or not
rb | ReportBean instance |
---|
True
if the style should be ignored (new reports). Otherwise returns
False
Check whether a WebObjectInfo instance is has a Dossier ViewMedia type.
objInfo | WebObjectInfo The object into instance we want to check |
---|
Determines if the given object id exists as adirect child of the folder bean that was passed as an argument
fb | FolderBean instance to search on |
---|---|
objectID | DSSID of the object to search for |