Class ReportContribution
java.lang.Object
ch.tocco.nice2.reporting.api.description.ReportContribution
- All Implemented Interfaces:
ReportDescription
,SynchronisationDescription
public class ReportContribution
extends Object
implements ReportDescription, SynchronisationDescription
-
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 TypeMethodDescriptionvoid
addPlacementConfig
(ReportDescription.PlacementConfig placementConfig) void
addRecipientConfig
(ReportDescription.RecipientConfig recipientConfig) boolean
@Nullable AfterReportFunction
getAfterReportFunction
(AfterReportFunctionService afterReportFunctionService) getConfirmMessage
(TextResources textResources) @Nullable String
boolean
getFilenameSuggestion
(TextResources textResources) @Nullable String
getId()
getLabel()
@Nullable String
getRoles()
boolean
hasPermission
(ReportPermissionService reportPermissionService) boolean
boolean
boolean
boolean
boolean
boolean
isPublic()
boolean
boolean
boolean
void
void
setActive
(boolean active) void
setAfterReportFunction
(@Nullable AfterReportFunction afterReportFunction) void
setAfterReportFunctionId
(@Nullable String afterReportFunctionId) void
setBusinessUnit
(@Nullable String businessUnit) void
setConfirmMessageKey
(@Nullable String confirmMessageKey) void
setDefaultArchiveType
(@Nullable String defaultArchiveType) void
setDefaultValue
(boolean defaultValue) void
setDescription
(@Nullable String description) void
setEntityReport
(boolean entityReport) void
setFileFormat
(@Nullable String fileFormat) void
setGroupingPath
(@Nullable String groupingPath) void
setGroupOrderBy
(@Nullable String groupOrderBy) void
void
setIgnoreSelection
(boolean ignoreSelection) void
void
void
setOrderBy
(@Nullable String orderBy) void
setOutputLanguagePath
(@Nullable String outputLanguagePath) void
setOutputTemplate
(String outputTemplate) void
setPersonalizedOnly
(boolean personalizedOnly) void
setPublic
(boolean isPublic) void
setReportDataModifierId
(String reportDataModifierId) void
void
setSkippable
(boolean skippable) void
setSorting
(Integer sorting) void
setSource
(ModelResource source) void
setSplitBaseData
(boolean splitBaseData) void
setSynchronize
(boolean synchronize)
-
Constructor Details
-
ReportContribution
public ReportContribution()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceReportDescription
-
setId
-
getDescription
- Specified by:
getDescription
in interfaceReportDescription
-
setDescription
-
getLabel
- Specified by:
getLabel
in interfaceReportDescription
-
setLabel
-
getReportResourceWrapper
- Specified by:
getReportResourceWrapper
in interfaceReportDescription
- Returns:
- a
ReportResourceWrapper
providing a basic API to theReportManager
to work on the template resource
-
setSource
-
getOutputTemplate
-
setOutputTemplate
-
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
-
setFileFormat
-
setModule
-
getAfterReportFunction
@Nullable public @Nullable 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
-
setReportDataModifierId
-
setAfterReportFunction
-
isSkippable
public boolean isSkippable()- Specified by:
isSkippable
in interfaceReportDescription
- Returns:
- is the
AfterReportFunction
skippable (only applies if anAfterReportFunction
is defined) - See Also:
-
setSkippable
public void setSkippable(boolean skippable) -
getConfirmMessageKey
-
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:
-
setConfirmMessageKey
-
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:
-
setDefaultValue
public void setDefaultValue(boolean defaultValue) -
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
-
setOutputLanguagePath
-
getDefaultArchiveType
- Specified by:
getDefaultArchiveType
in interfaceReportDescription
-
setDefaultArchiveType
-
getRecipientConfig
- Specified by:
getRecipientConfig
in interfaceReportDescription
-
getPlacementConfig
-
isPersonalizedOnly
public boolean isPersonalizedOnly()- Specified by:
isPersonalizedOnly
in interfaceReportDescription
-
isSplitBaseData
public boolean isSplitBaseData()- Specified by:
isSplitBaseData
in interfaceReportDescription
-
getGroupingPath
- Specified by:
getGroupingPath
in interfaceReportDescription
-
getReportLayout
- Specified by:
getReportLayout
in interfaceReportDescription
- Returns:
- a ReportLayout config object (or Optional.empty())
-
getActive
public boolean getActive() -
isSynchronize
public boolean isSynchronize() -
getSorting
-
getBusinessUnit
-
getRoles
-
isEntityReport
public boolean isEntityReport() -
setSplitBaseData
public void setSplitBaseData(boolean splitBaseData) -
setPersonalizedOnly
public void setPersonalizedOnly(boolean personalizedOnly) -
setGroupingPath
-
getOrderBy
- Specified by:
getOrderBy
in interfaceReportDescription
-
setOrderBy
-
getGroupOrderBy
- Specified by:
getGroupOrderBy
in interfaceReportDescription
-
setActive
public void setActive(boolean active) -
setSynchronize
public void setSynchronize(boolean synchronize) -
ignoreSelection
public boolean ignoreSelection()- Specified by:
ignoreSelection
in interfaceReportDescription
-
setIgnoreSelection
public void setIgnoreSelection(boolean ignoreSelection) -
setEntityReport
public void setEntityReport(boolean entityReport) -
setBusinessUnit
-
setRoles
-
setSorting
-
getAfterReportFunctionId
-
setAfterReportFunctionId
-
setGroupOrderBy
-
addRecipientConfig
-
addPlacementConfig
-
getUniqueId
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceReportDescription
-
setPublic
public void setPublic(boolean isPublic) -
reload
- Specified by:
reload
in interfaceReportDescription
-