Class CheckDescription
java.lang.Object
com.e1c.g5.v8.dt.internal.check.settings.CheckDescription
- All Implemented Interfaces:
ICheckDescription
,INamedElement
Immutable implementation for
ICheckDescription
.-
Field Summary
Fields inherited from interface com.e1c.g5.v8.dt.check.settings.INamedElement
ROOT_ID
-
Constructor Summary
ConstructorsConstructorDescriptionCheckDescription
(CheckUid checkUid, String title, String description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Instantiates a new check description.CheckDescription
(CheckUid checkUid, String title, Supplier<String> description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns localized description.getId()
Returns idReturns the immutable map of check parameters by their names.Returns category id from extension point "com.e1c.g5.v8.dt.check.category" ornull
if none.Returns check severity.getTitle()
Returns localized title.getType()
Returns check type.int
hashCode()
boolean
Checks if this definition describes the critical data integrity checkboolean
Returns check enabling.boolean
Returns the protected object check mode enablement statustoString()
-
Constructor Details
-
CheckDescription
public CheckDescription(CheckUid checkUid, String title, String description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Instantiates a new check description.- Parameters:
checkUid
- the check unique id, cannot benull
.title
- the title, cannot benull
.description
- the description, cannot benull
.issueType
- the issue type, cannot benull
.enabled
- the enabled of the checkprotectedObjectCheckEnabled
- the protected object check enabledcriticalDataIntegrityCheck
- the critical data integrity checkseverity
- the severity, cannot benull
.parentId
- the parent id, means category id from from extension point "com.e1c.g5.v8.dt.check.checks" ornull
if noneparameters
- the parameters, cannot benull
.
-
CheckDescription
public CheckDescription(CheckUid checkUid, String title, Supplier<String> description, IssueType issueType, boolean enabled, boolean protectedObjectCheckEnabled, boolean criticalDataIntegrityCheck, IssueSeverity severity, CheckUid parentId, Map<String, CheckParameterDefinition> parameters) Creates new instance.- Parameters:
id
- check id, notnull
title
- check title,null
if emptydescription
- check description,null
if emptyissueType
- check issue type, notnull
enabled
- enabled default check enablementprotectedObjectCheckEnabled
- The protected object check mode enablementprotectedObjectCheckEnabled
- The critical data integrity check flagseverity
- check severity, notnull
parentId
- category id from from extension point "com.e1c.g5.v8.dt.check.checks" ornull
if noneparameters
- check properties, notnull
-
-
Method Details
-
getId
Description copied from interface:INamedElement
Returns id- Specified by:
getId
in interfaceINamedElement
- Returns:
- id, not
null
-
getTitle
Description copied from interface:INamedElement
Returns localized title.- Specified by:
getTitle
in interfaceINamedElement
- Returns:
- title, not
null
-
getDescription
Description copied from interface:INamedElement
Returns localized description.- Specified by:
getDescription
in interfaceINamedElement
- Returns:
- title, not
null
-
getSeverity
Description copied from interface:ICheckDescription
Returns check severity.- Specified by:
getSeverity
in interfaceICheckDescription
- Returns:
- check severity, not
null
-
getType
Description copied from interface:ICheckDescription
Returns check type.- Specified by:
getType
in interfaceICheckDescription
- Returns:
- check type, not
null
-
getParentId
Description copied from interface:ICheckDescription
Returns category id from extension point "com.e1c.g5.v8.dt.check.category" ornull
if none.- Specified by:
getParentId
in interfaceICheckDescription
- Specified by:
getParentId
in interfaceINamedElement
- Returns:
- category or
null
if none
-
isEnabled
public boolean isEnabled()Description copied from interface:ICheckDescription
Returns check enabling.- Specified by:
isEnabled
in interfaceICheckDescription
- Returns:
- whether check is enableb
-
isProtectedObjectCheckEnabled
public boolean isProtectedObjectCheckEnabled()Description copied from interface:ICheckDescription
Returns the protected object check mode enablement status- Specified by:
isProtectedObjectCheckEnabled
in interfaceICheckDescription
- Returns:
- True if the protected object check mode is enabled
-
isCriticalDataIntegrityCheck
public boolean isCriticalDataIntegrityCheck()Description copied from interface:ICheckDescription
Checks if this definition describes the critical data integrity check- Specified by:
isCriticalDataIntegrityCheck
in interfaceICheckDescription
- Returns:
- True if the check is a critical integrity check
-
getParameters
Description copied from interface:ICheckDescription
Returns the immutable map of check parameters by their names.- Specified by:
getParameters
in interfaceICheckDescription
- Returns:
- map of check properties by their names, not
null
.
-
toString
-
hashCode
public int hashCode() -
equals
-