Class ImmutableGlobalConfiguration.Builder
- Enclosing class:
- ImmutableGlobalConfiguration
ImmutableGlobalConfiguration
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllIcons
(Iterable<? extends IconBean> elements) Adds elements toicons
list.addAllInProgressProgressCategories
(Iterable<? extends com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory> elements) Adds elements toinProgressProgressCategories
list.addAllReferenceTypes
(Iterable<? extends ReferenceTypeBean> elements) Adds elements toreferenceTypes
list.addAllStatusTypes
(Iterable<? extends StatusTypeBean> elements) Adds elements tostatusTypes
list.Adds one element toicons
list.Adds elements toicons
list.addInProgressProgressCategories
(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory element) Adds one element toinProgressProgressCategories
list.addInProgressProgressCategories
(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory... elements) Adds elements toinProgressProgressCategories
list.addReferenceTypes
(ReferenceTypeBean element) Adds one element toreferenceTypes
list.addReferenceTypes
(ReferenceTypeBean... elements) Adds elements toreferenceTypes
list.addStatusTypes
(StatusTypeBean element) Adds one element tostatusTypes
list.addStatusTypes
(StatusTypeBean... elements) Adds elements tostatusTypes
list.build()
Builds a newImmutableGlobalConfiguration
.from
(GlobalConfiguration instance) Fill a builder with attribute values from the providedGlobalConfiguration
instance.setAllowedToDoReindex
(Boolean allowedToDoReindex) Initializes the value for theallowedToDoReindex
attribute.setAttachmentsConfig
(AttachmentsConfiguration attachmentsConfig) Initializes the value for theattachmentsConfig
attribute.setClonePrefix
(String clonePrefix) Initializes the value for theclonePrefix
attribute.setCurrentNodeId
(String currentNodeId) Initializes the value for thecurrentNodeId
attribute.setDataCenter
(Boolean dataCenter) Initializes the value for thedataCenter
attribute.setDateFormat
(String dateFormat) Initializes the value for thedateFormat
attribute.setDatePickerFormat
(String datePickerFormat) Initializes the value for thedatePickerFormat
attribute.setDateTimeFormat
(String dateTimeFormat) Initializes the value for thedateTimeFormat
attribute.setDateTimePickerFormat
(String dateTimePickerFormat) Initializes the value for thedateTimePickerFormat
attribute.setFileSeparator
(String fileSeparator) Initializes the value for thefileSeparator
attribute.setFilterWildcard
(String filterWildcard) Initializes the value for thefilterWildcard
attribute.Sets or replaces all elements foricons
list.setInProgressProgressCategories
(Iterable<? extends com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory> elements) Sets or replaces all elements forinProgressProgressCategories
list.setInsightAdministrator
(boolean insightAdministrator) Initializes the value for theinsightAdministrator
attribute.setInsightDeveloper
(Boolean insightDeveloper) Initializes the value for theinsightDeveloper
attribute.setInsightDeveloperForObjectType
(Boolean insightDeveloperForObjectType) Initializes the value for theinsightDeveloperForObjectType
attribute.setInsightManager
(Boolean insightManager) Initializes the value for theinsightManager
attribute.setInsightManagerForObjectType
(Boolean insightManagerForObjectType) Initializes the value for theinsightManagerForObjectType
attribute.setInsightVersion
(String insightVersion) Initializes the value for theinsightVersion
attribute.setJiraHome
(String jiraHome) Initializes the value for thejiraHome
attribute.setLastReindexResult
(com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult lastReindexResult) Initializes the value for thelastReindexResult
attribute.setLastSeenVersion
(String lastSeenVersion) Initializes the value for thelastSeenVersion
attribute.setMouseTrigger
(String mouseTrigger) Initializes the value for themouseTrigger
attribute.setNumberDecimalSeparator
(String numberDecimalSeparator) Initializes the value for thenumberDecimalSeparator
attribute.setNumberGroupingSeparator
(String numberGroupingSeparator) Initializes the value for thenumberGroupingSeparator
attribute.setObjectCacheComplete
(int objectCacheComplete) Initializes the value for theobjectCacheComplete
attribute.setObjectSchema
(ObjectSchemaBean objectSchema) Initializes the value for theobjectSchema
attribute.setReferenceTypes
(Iterable<? extends ReferenceTypeBean> elements) Sets or replaces all elements forreferenceTypes
list.setReindexRunning
(Boolean reindexRunning) Initializes the value for thereindexRunning
attribute.setReindexRunningOnNode
(String reindexRunningOnNode) Initializes the value for thereindexRunningOnNode
attribute.setServiceDeskCustomerEnabled
(boolean serviceDeskCustomerEnabled) Initializes the value for theserviceDeskCustomerEnabled
attribute.setServiceDeskEnabled
(boolean serviceDeskEnabled) Initializes the value for theserviceDeskEnabled
attribute.setStatusTypes
(Iterable<? extends StatusTypeBean> elements) Sets or replaces all elements forstatusTypes
list.setTempoTimeSheetEnabled
(boolean tempoTimeSheetEnabled) Initializes the value for thetempoTimeSheetEnabled
attribute.setUseISO8601
(Boolean useISO8601) Initializes the value for theuseISO8601
attribute.setUserKey
(String userKey) Initializes the value for theuserKey
attribute.setUserTimeZone
(TimeZone userTimeZone) Initializes the value for theuserTimeZone
attribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder from(GlobalConfiguration instance) Fill a builder with attribute values from the providedGlobalConfiguration
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setNumberGroupingSeparator
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setNumberGroupingSeparator(String numberGroupingSeparator) Initializes the value for thenumberGroupingSeparator
attribute.If not set, this attribute will have a default value as returned by the initializer of
numberGroupingSeparator
.- Parameters:
numberGroupingSeparator
- The value for numberGroupingSeparator- Returns:
this
builder for use in a chained invocation
-
setNumberDecimalSeparator
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setNumberDecimalSeparator(String numberDecimalSeparator) Initializes the value for thenumberDecimalSeparator
attribute.If not set, this attribute will have a default value as returned by the initializer of
numberDecimalSeparator
.- Parameters:
numberDecimalSeparator
- The value for numberDecimalSeparator- Returns:
this
builder for use in a chained invocation
-
setDatePickerFormat
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDatePickerFormat(String datePickerFormat) Initializes the value for thedatePickerFormat
attribute.- Parameters:
datePickerFormat
- The value for datePickerFormat- Returns:
this
builder for use in a chained invocation
-
setDateTimePickerFormat
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDateTimePickerFormat(String dateTimePickerFormat) Initializes the value for thedateTimePickerFormat
attribute.- Parameters:
dateTimePickerFormat
- The value for dateTimePickerFormat- Returns:
this
builder for use in a chained invocation
-
setInsightVersion
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightVersion(String insightVersion) Initializes the value for theinsightVersion
attribute.- Parameters:
insightVersion
- The value for insightVersion- Returns:
this
builder for use in a chained invocation
-
setLastSeenVersion
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setLastSeenVersion(@Nullable String lastSeenVersion) Initializes the value for thelastSeenVersion
attribute.- Parameters:
lastSeenVersion
- The value for lastSeenVersion (can benull
)- Returns:
this
builder for use in a chained invocation
-
setUseISO8601
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setUseISO8601(Boolean useISO8601) Initializes the value for theuseISO8601
attribute.- Parameters:
useISO8601
- The value for useISO8601- Returns:
this
builder for use in a chained invocation
-
setUserKey
Initializes the value for theuserKey
attribute.- Parameters:
userKey
- The value for userKey- Returns:
this
builder for use in a chained invocation
-
setAttachmentsConfig
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setAttachmentsConfig(AttachmentsConfiguration attachmentsConfig) Initializes the value for theattachmentsConfig
attribute.- Parameters:
attachmentsConfig
- The value for attachmentsConfig- Returns:
this
builder for use in a chained invocation
-
setInsightDeveloper
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightDeveloper(@Nullable Boolean insightDeveloper) Initializes the value for theinsightDeveloper
attribute.- Parameters:
insightDeveloper
- The value for insightDeveloper (can benull
)- Returns:
this
builder for use in a chained invocation
-
setInsightDeveloperForObjectType
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightDeveloperForObjectType(@Nullable Boolean insightDeveloperForObjectType) Initializes the value for theinsightDeveloperForObjectType
attribute.- Parameters:
insightDeveloperForObjectType
- The value for insightDeveloperForObjectType (can benull
)- Returns:
this
builder for use in a chained invocation
-
setInsightManager
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightManager(@Nullable Boolean insightManager) Initializes the value for theinsightManager
attribute.- Parameters:
insightManager
- The value for insightManager (can benull
)- Returns:
this
builder for use in a chained invocation
-
setInsightManagerForObjectType
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightManagerForObjectType(@Nullable Boolean insightManagerForObjectType) Initializes the value for theinsightManagerForObjectType
attribute.- Parameters:
insightManagerForObjectType
- The value for insightManagerForObjectType (can benull
)- Returns:
this
builder for use in a chained invocation
-
setInsightAdministrator
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInsightAdministrator(boolean insightAdministrator) Initializes the value for theinsightAdministrator
attribute.- Parameters:
insightAdministrator
- The value for insightAdministrator- Returns:
this
builder for use in a chained invocation
-
setServiceDeskEnabled
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setServiceDeskEnabled(boolean serviceDeskEnabled) Initializes the value for theserviceDeskEnabled
attribute.If not set, this attribute will have a default value as returned by the initializer of
serviceDeskEnabled
.- Parameters:
serviceDeskEnabled
- The value for serviceDeskEnabled- Returns:
this
builder for use in a chained invocation
-
setServiceDeskCustomerEnabled
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setServiceDeskCustomerEnabled(boolean serviceDeskCustomerEnabled) Initializes the value for theserviceDeskCustomerEnabled
attribute.If not set, this attribute will have a default value as returned by the initializer of
serviceDeskCustomerEnabled
.- Parameters:
serviceDeskCustomerEnabled
- The value for serviceDeskCustomerEnabled- Returns:
this
builder for use in a chained invocation
-
setTempoTimeSheetEnabled
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setTempoTimeSheetEnabled(boolean tempoTimeSheetEnabled) Initializes the value for thetempoTimeSheetEnabled
attribute.If not set, this attribute will have a default value as returned by the initializer of
tempoTimeSheetEnabled
.- Parameters:
tempoTimeSheetEnabled
- The value for tempoTimeSheetEnabled- Returns:
this
builder for use in a chained invocation
-
addIcons
Adds one element toicons
list.- Parameters:
element
- A icons element- Returns:
this
builder for use in a chained invocation
-
addIcons
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addIcons(IconBean... elements) Adds elements toicons
list.- Parameters:
elements
- An array of icons elements- Returns:
this
builder for use in a chained invocation
-
setIcons
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setIcons(Iterable<? extends IconBean> elements) Sets or replaces all elements foricons
list.- Parameters:
elements
- An iterable of icons elements- Returns:
this
builder for use in a chained invocation
-
addAllIcons
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllIcons(Iterable<? extends IconBean> elements) Adds elements toicons
list.- Parameters:
elements
- An iterable of icons elements- Returns:
this
builder for use in a chained invocation
-
addReferenceTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addReferenceTypes(ReferenceTypeBean element) Adds one element toreferenceTypes
list.- Parameters:
element
- A referenceTypes element- Returns:
this
builder for use in a chained invocation
-
addReferenceTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addReferenceTypes(ReferenceTypeBean... elements) Adds elements toreferenceTypes
list.- Parameters:
elements
- An array of referenceTypes elements- Returns:
this
builder for use in a chained invocation
-
setReferenceTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setReferenceTypes(Iterable<? extends ReferenceTypeBean> elements) Sets or replaces all elements forreferenceTypes
list.- Parameters:
elements
- An iterable of referenceTypes elements- Returns:
this
builder for use in a chained invocation
-
addAllReferenceTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllReferenceTypes(Iterable<? extends ReferenceTypeBean> elements) Adds elements toreferenceTypes
list.- Parameters:
elements
- An iterable of referenceTypes elements- Returns:
this
builder for use in a chained invocation
-
addStatusTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addStatusTypes(StatusTypeBean element) Adds one element tostatusTypes
list.- Parameters:
element
- A statusTypes element- Returns:
this
builder for use in a chained invocation
-
addStatusTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addStatusTypes(StatusTypeBean... elements) Adds elements tostatusTypes
list.- Parameters:
elements
- An array of statusTypes elements- Returns:
this
builder for use in a chained invocation
-
setStatusTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setStatusTypes(Iterable<? extends StatusTypeBean> elements) Sets or replaces all elements forstatusTypes
list.- Parameters:
elements
- An iterable of statusTypes elements- Returns:
this
builder for use in a chained invocation
-
addAllStatusTypes
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllStatusTypes(Iterable<? extends StatusTypeBean> elements) Adds elements tostatusTypes
list.- Parameters:
elements
- An iterable of statusTypes elements- Returns:
this
builder for use in a chained invocation
-
setObjectSchema
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setObjectSchema(@Nullable ObjectSchemaBean objectSchema) Initializes the value for theobjectSchema
attribute.- Parameters:
objectSchema
- The value for objectSchema (can benull
)- Returns:
this
builder for use in a chained invocation
-
setObjectCacheComplete
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setObjectCacheComplete(int objectCacheComplete) Initializes the value for theobjectCacheComplete
attribute.If not set, this attribute will have a default value as returned by the initializer of
objectCacheComplete
.- Parameters:
objectCacheComplete
- The value for objectCacheComplete- Returns:
this
builder for use in a chained invocation
-
setAllowedToDoReindex
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setAllowedToDoReindex(Boolean allowedToDoReindex) Initializes the value for theallowedToDoReindex
attribute.If not set, this attribute will have a default value as returned by the initializer of
allowedToDoReindex
.- Parameters:
allowedToDoReindex
- The value for allowedToDoReindex- Returns:
this
builder for use in a chained invocation
-
setReindexRunning
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setReindexRunning(Boolean reindexRunning) Initializes the value for thereindexRunning
attribute.If not set, this attribute will have a default value as returned by the initializer of
reindexRunning
.- Parameters:
reindexRunning
- The value for reindexRunning- Returns:
this
builder for use in a chained invocation
-
setLastReindexResult
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setLastReindexResult(@Nullable com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult lastReindexResult) Initializes the value for thelastReindexResult
attribute.- Parameters:
lastReindexResult
- The value for lastReindexResult (can benull
)- Returns:
this
builder for use in a chained invocation
-
setReindexRunningOnNode
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setReindexRunningOnNode(@Nullable String reindexRunningOnNode) Initializes the value for thereindexRunningOnNode
attribute.- Parameters:
reindexRunningOnNode
- The value for reindexRunningOnNode (can benull
)- Returns:
this
builder for use in a chained invocation
-
addInProgressProgressCategories
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addInProgressProgressCategories(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory element) Adds one element toinProgressProgressCategories
list.- Parameters:
element
- A inProgressProgressCategories element- Returns:
this
builder for use in a chained invocation
-
addInProgressProgressCategories
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addInProgressProgressCategories(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory... elements) Adds elements toinProgressProgressCategories
list.- Parameters:
elements
- An array of inProgressProgressCategories elements- Returns:
this
builder for use in a chained invocation
-
setInProgressProgressCategories
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setInProgressProgressCategories(Iterable<? extends com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory> elements) Sets or replaces all elements forinProgressProgressCategories
list.- Parameters:
elements
- An iterable of inProgressProgressCategories elements- Returns:
this
builder for use in a chained invocation
-
addAllInProgressProgressCategories
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder addAllInProgressProgressCategories(Iterable<? extends com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory> elements) Adds elements toinProgressProgressCategories
list.- Parameters:
elements
- An iterable of inProgressProgressCategories elements- Returns:
this
builder for use in a chained invocation
-
setClonePrefix
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setClonePrefix(String clonePrefix) Initializes the value for theclonePrefix
attribute.- Parameters:
clonePrefix
- The value for clonePrefix- Returns:
this
builder for use in a chained invocation
-
setJiraHome
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setJiraHome(@Nullable String jiraHome) Initializes the value for thejiraHome
attribute.- Parameters:
jiraHome
- The value for jiraHome (can benull
)- Returns:
this
builder for use in a chained invocation
-
setFileSeparator
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setFileSeparator(String fileSeparator) Initializes the value for thefileSeparator
attribute.- Parameters:
fileSeparator
- The value for fileSeparator- Returns:
this
builder for use in a chained invocation
-
setDateFormat
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDateFormat(String dateFormat) Initializes the value for thedateFormat
attribute.- Parameters:
dateFormat
- The value for dateFormat- Returns:
this
builder for use in a chained invocation
-
setDateTimeFormat
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDateTimeFormat(String dateTimeFormat) Initializes the value for thedateTimeFormat
attribute.- Parameters:
dateTimeFormat
- The value for dateTimeFormat- Returns:
this
builder for use in a chained invocation
-
setUserTimeZone
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setUserTimeZone(TimeZone userTimeZone) Initializes the value for theuserTimeZone
attribute.- Parameters:
userTimeZone
- The value for userTimeZone- Returns:
this
builder for use in a chained invocation
-
setDataCenter
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setDataCenter(Boolean dataCenter) Initializes the value for thedataCenter
attribute.If not set, this attribute will have a default value as returned by the initializer of
dataCenter
.- Parameters:
dataCenter
- The value for dataCenter- Returns:
this
builder for use in a chained invocation
-
setCurrentNodeId
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setCurrentNodeId(@Nullable String currentNodeId) Initializes the value for thecurrentNodeId
attribute.- Parameters:
currentNodeId
- The value for currentNodeId (can benull
)- Returns:
this
builder for use in a chained invocation
-
setMouseTrigger
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setMouseTrigger(String mouseTrigger) Initializes the value for themouseTrigger
attribute.- Parameters:
mouseTrigger
- The value for mouseTrigger- Returns:
this
builder for use in a chained invocation
-
setFilterWildcard
@CanIgnoreReturnValue public final ImmutableGlobalConfiguration.Builder setFilterWildcard(String filterWildcard) Initializes the value for thefilterWildcard
attribute.- Parameters:
filterWildcard
- The value for filterWildcard- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableGlobalConfiguration
.- Returns:
- An immutable instance of GlobalConfiguration
- Throws:
IllegalStateException
- if any required attributes are missing
-