Class EntityReportDescription
java.lang.Object
ch.tocco.nice2.reporting.impl.description.EntityReportDescription
- All Implemented Interfaces:
ReportDescription
- Direct Known Subclasses:
LabelReportDescription
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.reporting.api.ReportDescription
ReportDescription.PlacementConfig, ReportDescription.RecipientConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAfterReportFunction
(AfterReportFunctionService afterReportFunctionService) getConfirmMessage
(TextResources textResources) @Nullable String
boolean
getFilenameSuggestion
(TextResources textResources) @Nullable String
getId()
getLabel()
@Nullable String
boolean
hasPermission
(ReportPermissionService reportPermissionService) boolean
boolean
boolean
boolean
boolean
isPublic()
boolean
boolean
void
-
Constructor Details
-
EntityReportDescription
-
-
Method Details
-
getReportEntity
-
getId
- Specified by:
getId
in interfaceReportDescription
-
getLabel
- Specified by:
getLabel
in interfaceReportDescription
-
getDescription
- Specified by:
getDescription
in interfaceReportDescription
-
getAfterReportFunction
public AfterReportFunction getAfterReportFunction(AfterReportFunctionService afterReportFunctionService) - Specified by:
getAfterReportFunction
in interfaceReportDescription
- Returns:
- an optional function to be executed after the report was generated
- See Also:
-
getReportDataModifierId
- Specified by:
getReportDataModifierId
in interfaceReportDescription
-
getConfirmMessage
- Specified by:
getConfirmMessage
in interfaceReportDescription
- Parameters:
textResources
-TextResources
- Returns:
- an optional confirm message textresource key to be displayed (only applies if an
AfterReportFunction
is defined) - See Also:
-
isSkippable
public boolean isSkippable()- Specified by:
isSkippable
in interfaceReportDescription
- Returns:
- is the
AfterReportFunction
skippable (only applies if anAfterReportFunction
is defined) - See Also:
-
getDefaultValue
public boolean getDefaultValue()- Specified by:
getDefaultValue
in interfaceReportDescription
- Returns:
- should the
AfterReportFunction
be executed silently, i.e. without notifying the user (only applies if anAfterReportFunction
is defined) - See Also:
-
isHideLogoCheckbox
public boolean isHideLogoCheckbox()- Specified by:
isHideLogoCheckbox
in interfaceReportDescription
- Returns:
- true to hide the logo checkbox in the report action (GUI)
- See Also:
-
isEnableLogoCheckbox
public boolean isEnableLogoCheckbox()- Specified by:
isEnableLogoCheckbox
in interfaceReportDescription
- Returns:
- true to initialize the logo checkbox checked (GUI)
- See Also:
-
getPathToDefaultOutputLanguage
- Specified by:
getPathToDefaultOutputLanguage
in interfaceReportDescription
- Returns:
- the optional path to default output language or null
-
getDefaultArchiveType
- Specified by:
getDefaultArchiveType
in interfaceReportDescription
-
getReportResourceWrapper
- Specified by:
getReportResourceWrapper
in interfaceReportDescription
- Returns:
- a
ReportResourceWrapper
providing a basic API to theReportManager
to work on the template resource
-
getModule
- Specified by:
getModule
in interfaceReportDescription
-
getFilenameSuggestion
- Specified by:
getFilenameSuggestion
in interfaceReportDescription
- Parameters:
textResources
-TextResources
- Returns:
- a filename suggestion for the GUI
-
getFileFormat
- Specified by:
getFileFormat
in interfaceReportDescription
-
hasPermission
- Specified by:
hasPermission
in interfaceReportDescription
-
getRecipientConfig
- Specified by:
getRecipientConfig
in interfaceReportDescription
-
isPersonalizedOnly
public boolean isPersonalizedOnly()- Specified by:
isPersonalizedOnly
in interfaceReportDescription
-
isSplitBaseData
public boolean isSplitBaseData()- Specified by:
isSplitBaseData
in interfaceReportDescription
-
getGroupingPath
- Specified by:
getGroupingPath
in interfaceReportDescription
-
getOrderBy
- Specified by:
getOrderBy
in interfaceReportDescription
-
getGroupOrderBy
- Specified by:
getGroupOrderBy
in interfaceReportDescription
-
ignoreSelection
public boolean ignoreSelection()- Specified by:
ignoreSelection
in interfaceReportDescription
-
getReportLayout
- Specified by:
getReportLayout
in interfaceReportDescription
- Returns:
- a ReportLayout config object (or Optional.empty())
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceReportDescription
-
getSettingsEntityName
-
reload
- Specified by:
reload
in interfaceReportDescription
-