Class AbstractSubscriptionListTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AbstractSubscriptionFolderBeanTransform
-
- com.microstrategy.web.app.transforms.AbstractSubscriptionListTransform
-
- All Implemented Interfaces:
AppTransform
,Transform
- Direct Known Subclasses:
SubscriptionsBulletTransform
,SubscriptionsIconTransform
,SubscriptionsIconXHTMLTransform
,SubscriptionsListTransform
,SubscriptionsListXHTMLTransform
public abstract class AbstractSubscriptionListTransform extends AbstractSubscriptionFolderBeanTransform
This transform renders the list of Narrowcast Subscriptions from a SubscriptionFolderBean as Large Icons.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
CMD_EDIT
protected java.lang.String
CMD_MULTIPLE
protected java.lang.String
CMD_PERSONALIZATION
protected java.lang.String
CMD_REMOVE
protected java.lang.String
CMD_REMOVE_CHECKBOX
protected java.lang.String
CMD_TARGET
protected java.lang.String
CMD_TARGET_ICON
static java.lang.String
EXEC_TARGET
Constant used as the name for the formal parameter that determines how the user want's to execute the subscription link.FormalParameter
execTarget
Determines how the user want's to execute the subscription link.static int
LEVEL_ADDRESS
Indicates to show the address columnstatic int
LEVEL_SCHEDULE
Indicates to show the schedule columnprotected int
VIEW_MODE_BULK_EXPORT
protected int
VIEW_MODE_CUBE
protected int
VIEW_MODE_DASHBOARD
protected int
VIEW_MODE_DATAMART
protected int
VIEW_MODE_DOCUMENT
protected int
VIEW_MODE_GRAPH
protected int
VIEW_MODE_GRID
protected int
VIEW_MODE_GRID_GRAPH
protected int
VIEW_MODE_REPORT_IR
protected int
VIEW_MODE_RW_DOCUMENT
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractSubscriptionFolderBeanTransform
_deliveryMode, _imgActiveSortAscending, _imgActiveSortDescending, _imgDatamart, _imgDocument, _imgGraph, _imgGrid, _imgGridGraph, _imgRwDocument, _imgSortAscending, _imgSortDescending, _levelFlag, _maxItemCount, _sfb, activeSortAscendingImage, activeSortDescendingImage, datamartImage, deliveryMode, documentImage, FP_DELIVERY_MODE, FP_IMG_DATAMART, FP_IMG_DOCUMENT, FP_IMG_GRAPH, FP_IMG_GRID, FP_IMG_GRID_GRAPH, FP_IMG_RW_DOCUMENT, FP_IMG_SORT_ASC, FP_IMG_SORT_ASC_ACTIVE, FP_IMG_SORT_DESC, FP_IMG_SORT_DESC_ACTIVE, FP_LEVEL_FLAG, FP_MAX_ITEMS_COUNT, graphImage, gridGraphImage, gridImage, LEVEL_ALL, LEVEL_EDIT, LEVEL_ICON, LEVEL_NAME, LEVEL_OWNER, LEVEL_PERSONALIZED, LEVEL_RECIPIENT, LEVEL_REMOVE, LEVEL_SORT_ICONS, LEVEL_SUBSCRIPTION_NAME, LEVEL_TIME, levelFlag, maxItemCount, rwDocumentImage, sortAscendingImage, sortDescendingImage
-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description AbstractSubscriptionListTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canSubscribe(int mode)
protected boolean
canSubscribe(int mode, boolean isAlert)
boolean
canTransform(Transformable data)
OverridescanTransform(Transformable)
by making sure the SubscriptionFolderBean is set to return a list of WebSubscriptions.protected JsonGenerator
generateBoneProperties(SimpleList list)
protected Tag
generateEditPersonalizationInfoAnchor(java.lang.String subscriptionID, WebObjectInfo target)
protected void
generateTargetNameProps(JsonGenerator props, WebObjectInfo target)
protected java.lang.String
getCssName(WebSubscription subscription)
Utility method that helps giving the CSS class to use based on the the subscription type of theWebSubscription
instance.protected WebEvent
getEditSubscriptionEvent()
protected java.lang.String
getEmptyListDescriptor()
Get the descriptor to display to the user if the list of subscriptions is empty.protected WebEvent
getExecuteEvent(WebSubscription subscription)
protected WebObjectInfo
getSubscriptionTarget(WebSubscription subscription)
Returns the target object info associated with the given subscriptionprotected int
getViewMode(WebSubscription subscription)
The subscription view modeprotected boolean
hasExecutePermission(WebObjectInfo target)
protected boolean
isCurrentUserSubscriptionOwner(WebSubscription subscription)
protected boolean
isDeliveryModeWithAddress()
protected boolean
isEditSupported(WebSubscription subscription)
protected boolean
isMultipleRecipientAndEditable(WebSubscription subscription)
protected boolean
isViewableReport(WebObjectInfo object)
A report is viewable if its subtype is not EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportDatamart, EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportNonInteractive or EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportCubeprotected void
renderRegisterBone(MarkupOutput out)
If a scriptClass is specified, this method registers the corresponding javascript bone for this component.void
renderSubscriptionName(MarkupOutput content, WebSubscription subscription)
Generates the name of the subscription as a linkprotected void
setBoneProperties(JsonGenerator boneProps)
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.protected boolean
shouldRenderAction(WebSubscription subscription, int changeAbleMask)
void
transformForRequestInError(MarkupOutput out)
Transform when the status isIn Error
.-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractSubscriptionFolderBeanTransform
checkLevel, getFieldCount, getImageTooltip, getJSGenerator, getPreferenceValue, getSubscriptionFolderBean, getSupportedBeanType, hasSubscriptions, initializeImages, initializeTransform, isDisplayInfoAvailable, isEmpty, renderEmptyList, renderFooter, renderImage, renderImage, renderList, renderPersonalViewSubscriptions, renderShowMessage, renderSort, renderSubscriptionsByDeliveryMode, shouldShowPersonalViewSubscriptionsList, shouldShowSubscriptionsList, transformForRequestSuccessful
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchor, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getAttributesShellDiv, getBeanPath, getBoneId, getCancelEvent, getClientSideHelper, getContainerServices, getContext, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorMessage, getErrorTitle, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getID, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, initializeCss, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameEnabled, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestNotInited, transformForRequestProcessing, transformForRequestWaitingForUserInput
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.Transform
getDescription, getFormalParams, getPreview, isPreviewAvailable, isResolved, supports, supports
-
-
-
-
Field Detail
-
LEVEL_SCHEDULE
public static final int LEVEL_SCHEDULE
Indicates to show the schedule column- See Also:
- Constant Field Values
-
LEVEL_ADDRESS
public static final int LEVEL_ADDRESS
Indicates to show the address column- See Also:
- Constant Field Values
-
VIEW_MODE_GRID
protected final int VIEW_MODE_GRID
- See Also:
- Constant Field Values
-
VIEW_MODE_GRAPH
protected final int VIEW_MODE_GRAPH
- See Also:
- Constant Field Values
-
VIEW_MODE_GRID_GRAPH
protected final int VIEW_MODE_GRID_GRAPH
- See Also:
- Constant Field Values
-
VIEW_MODE_DOCUMENT
protected final int VIEW_MODE_DOCUMENT
- See Also:
- Constant Field Values
-
VIEW_MODE_RW_DOCUMENT
protected final int VIEW_MODE_RW_DOCUMENT
- Since:
- MicroStrategy Web 7.5.0
- See Also:
- Constant Field Values
-
VIEW_MODE_BULK_EXPORT
protected final int VIEW_MODE_BULK_EXPORT
- Since:
- MicroStrategy Web 8.0.0
- See Also:
- Constant Field Values
-
VIEW_MODE_DATAMART
protected final int VIEW_MODE_DATAMART
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
VIEW_MODE_CUBE
protected final int VIEW_MODE_CUBE
- Since:
- MicroStrategy Web 9.0.0
- See Also:
- Constant Field Values
-
VIEW_MODE_REPORT_IR
protected final int VIEW_MODE_REPORT_IR
- See Also:
- Constant Field Values
-
VIEW_MODE_DASHBOARD
protected final int VIEW_MODE_DASHBOARD
- See Also:
- Constant Field Values
-
CMD_TARGET
protected final java.lang.String CMD_TARGET
- See Also:
- Constant Field Values
-
CMD_TARGET_ICON
protected final java.lang.String CMD_TARGET_ICON
- See Also:
- Constant Field Values
-
CMD_MULTIPLE
protected final java.lang.String CMD_MULTIPLE
- See Also:
- Constant Field Values
-
CMD_EDIT
protected final java.lang.String CMD_EDIT
- See Also:
- Constant Field Values
-
CMD_PERSONALIZATION
protected final java.lang.String CMD_PERSONALIZATION
- See Also:
- Constant Field Values
-
CMD_REMOVE
protected final java.lang.String CMD_REMOVE
- See Also:
- Constant Field Values
-
CMD_REMOVE_CHECKBOX
protected final java.lang.String CMD_REMOVE_CHECKBOX
- See Also:
- Constant Field Values
-
execTarget
public FormalParameter execTarget
Determines how the user want's to execute the subscription link. If set to "_blank" it will open a new window, if empty the link will be executed in the same window. Note that this is not apply for PDF export
-
EXEC_TARGET
public static final java.lang.String EXEC_TARGET
Constant used as the name for the formal parameter that determines how the user want's to execute the subscription link. If set to "_blank" it will open a new window, if empty the link will be executed in the same window.- See Also:
- Constant Field Values
-
-
Method Detail
-
transformForRequestInError
public void transformForRequestInError(MarkupOutput out)
Transform when the status isIn Error
. OverwritestransformForRequestInError
by showing a "this feature is currently unavailable" message.- Overrides:
transformForRequestInError
in classAbstractAppTransform
- Parameters:
out
- output by this transform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
getCssName
protected java.lang.String getCssName(WebSubscription subscription)
Utility method that helps giving the CSS class to use based on the the subscription type of theWebSubscription
instance.- Parameters:
subscription
- TheWebSubscription
for which it's css name is required.- Returns:
- a
String
with the name of the CSS class that should be associated with theWebSubscription
information to display. If the type specified does not match the predefined list of styles, then it returnsg
by default, corresponding to the css of a grid. - Since:
- MicroStrategy Web 8.0.0
-
getSubscriptionTarget
protected WebObjectInfo getSubscriptionTarget(WebSubscription subscription)
Returns the target object info associated with the given subscription- Parameters:
subscription
- the subscription to check- Returns:
- the objectinfo (populated) that is the target of the given subscription.
-
getViewMode
protected int getViewMode(WebSubscription subscription)
The subscription view mode- Parameters:
subscription
- the subscription to check- Returns:
VIEW_MODE_GRID
,VIEW_MODE_GRAPH
,VIEW_MODE_GRID_GRAPH
orVIEW_MODE_DOCUMENT
accoringly.
-
getExecuteEvent
protected WebEvent getExecuteEvent(WebSubscription subscription)
- Parameters:
subscription
- the subscription object to execute- Returns:
- a WebEvent to execute the message (i.e., runReports)
-
canTransform
public boolean canTransform(Transformable data)
OverridescanTransform(Transformable)
by making sure the SubscriptionFolderBean is set to return a list of WebSubscriptions.- Specified by:
canTransform
in interfaceTransform
- Overrides:
canTransform
in classAbstractTransform
- Parameters:
data
- the SubscripptionFolderBean to transform- Returns:
- true if the
getContentType()
method returnsSubscriptionFolderBean.SUBSCRIPTION_FOLDER_CONTENT_TYPE_SUBSCRIPTION
-
getEmptyListDescriptor
protected java.lang.String getEmptyListDescriptor()
Get the descriptor to display to the user if the list of subscriptions is empty.- Returns:
- the descriptor to render to the user if the list is empty, depending on the delivery mode defined.
- Since:
- MicroStrategy Web 7.5.1
-
getEditSubscriptionEvent
protected WebEvent getEditSubscriptionEvent()
- Returns:
WebEvent
instance initialized with the information for editing a subscription.- Since:
- MicroStrategy Web 7.5.1
-
isViewableReport
protected boolean isViewableReport(WebObjectInfo object)
A report is viewable if its subtype is not EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportDatamart, EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportNonInteractive or EnumDSSXMLObjectSubTypes.DssXmlSubTypeReportCube- Parameters:
object
-- Returns:
- whether the report is viewable
- Since:
- MicroStrategy Web 9.0.0
-
renderSubscriptionName
public void renderSubscriptionName(MarkupOutput content, WebSubscription subscription)
Generates the name of the subscription as a link- Parameters:
content
-MarkupOutput
instance where the transform's output will be saved.subscription
-WebSubscription
instance to render- Since:
- MicroStrategy Web 9.0.0
-
hasExecutePermission
protected boolean hasExecutePermission(WebObjectInfo target)
-
shouldRenderAction
protected boolean shouldRenderAction(WebSubscription subscription, int changeAbleMask)
- Since:
- MicroStrategy Web 9.0.0
-
isCurrentUserSubscriptionOwner
protected boolean isCurrentUserSubscriptionOwner(WebSubscription subscription) throws WebObjectsException
- Throws:
WebObjectsException
- Since:
- MicroStrategy Web 9.0.0
-
isEditSupported
protected boolean isEditSupported(WebSubscription subscription)
-
canSubscribe
protected boolean canSubscribe(int mode, boolean isAlert)
- Since:
- MicroStrategy Web 9.0.0
-
canSubscribe
protected boolean canSubscribe(int mode)
-
generateEditPersonalizationInfoAnchor
protected Tag generateEditPersonalizationInfoAnchor(java.lang.String subscriptionID, WebObjectInfo target)
- Since:
- MicroStrategy Web 9.0.1
-
isDeliveryModeWithAddress
protected boolean isDeliveryModeWithAddress()
-
isMultipleRecipientAndEditable
protected boolean isMultipleRecipientAndEditable(WebSubscription subscription)
-
renderRegisterBone
protected void renderRegisterBone(MarkupOutput out)
Description copied from class:AbstractAppTransform
If a scriptClass is specified, this method registers the corresponding javascript bone for this component.- Overrides:
renderRegisterBone
in classAbstractAppTransform
- Parameters:
out
- MarkupOutput whether the output should be rendered.- See Also:
AbstractAppTransform.getScriptClass()
-
setBoneProperties
protected void setBoneProperties(JsonGenerator boneProps)
Description copied from class:AbstractAppTransform
Sets the necessary properties to the bone assigned to this transform (based on theAbstractAppTransform.scriptClass
formal parameter)
Usually called byAbstractAppTransform.renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.- Overrides:
setBoneProperties
in classAbstractAppTransform
- Parameters:
boneProps
- the JsonGenerator object that contains the collection of bone properties.
-
generateBoneProperties
protected JsonGenerator generateBoneProperties(SimpleList list)
- Overrides:
generateBoneProperties
in classAbstractSubscriptionFolderBeanTransform
-
generateTargetNameProps
protected void generateTargetNameProps(JsonGenerator props, WebObjectInfo target)
-
-