Package com.atlassian.jira.issue.index
Class IssueIndexingParams
java.lang.Object
com.atlassian.jira.issue.index.IssueIndexingParams
Provides parameters required to conduct indexing or re-indexing JIRA issues.
- indexIssues - true if issues should be indexed
- indexComments - true if comments should be indexed
- indexChangeHistory - true if change history should be indexed
- indexWorklogs true if issue worklogs should be indexed
- forceReloadFromDatabase - ignored, this is always true
IssueIndexingParams.Builder to construct an instance of this class.- Since:
- v6.4
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic IssueIndexingParamsSets all values to true.static IssueIndexingParamsOnly index the core issue values, not comments, history etc.static IssueIndexingParamsstatic IssueIndexingParamsSets all values to false. -
Method Summary
Modifier and TypeMethodDescriptionstatic IssueIndexingParams.Builderbuilder()static IssueIndexingParams.Builderbuilder(IssueIndexingParams issueIndexingParams) Return a new builder with the values initially set to those specified by issueIndexingParamsbooleanintReturn the number of indexes that needs to be updatedinthashCode()booleanDeprecated.Since Jira 9.0 issue version is requiredbooleanisIndex()booleanbooleanbooleanbooleanbooleantoString()
-
Field Details
-
INDEX_NONE
Sets all values to false. -
INDEX_ISSUE_ONLY
Only index the core issue values, not comments, history etc. Issues will be reloaded from the database before indexing. -
INDEX_ISSUE_WITH_HISTORY
-
INDEX_ALL
Sets all values to true.
-
-
Method Details
-
builder
-
builder
Return a new builder with the values initially set to those specified by issueIndexingParams- Parameters:
issueIndexingParams- The default values for new builder. Can not be null- Returns:
- New Builder
- Since:
- v7.0
-
isIndexIssues
public boolean isIndexIssues() -
isIndexChangeHistory
public boolean isIndexChangeHistory() -
isIndexComments
public boolean isIndexComments() -
isIndexWorklogs
public boolean isIndexWorklogs() -
isForceReloadFromDatabase
Deprecated.Since Jira 9.0 issue version is required -
isIndex
public boolean isIndex() -
isIndexAll
public boolean isIndexAll() -
getAffectedIndexCount
public int getAffectedIndexCount()Return the number of indexes that needs to be updated- Returns:
- number of indexes to be updated
-
toString
-
equals
-
hashCode
public int hashCode()
-