Class MockFieldLayoutManager
- All Implemented Interfaces:
FieldLayoutManager
MockFieldLayoutManager.- Since:
- v4.1
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager
TYPE_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLayoutItem(Issue issue) voidaddSchemeAssociation(Project project, Long fieldLayoutSchemeId) Associates aFieldLayoutSchemeto the project supplied.voidaddSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId) Associates aFieldLayoutSchemeto the project supplied.copyFieldLayoutScheme(FieldLayoutScheme scheme, String name, String description) Copies an existing field layout to a new one.createFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) Persists a new field Layout scheme (i.e Field Configuration Scheme).createFieldLayoutScheme(String name, String description) Persists a new field Layout scheme (i.e Field Configuration Scheme).voidcreateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity) Persists a newFieldLayoutSchemeEntityfor a particularFieldLayoutScheme.createFieldLayoutSchemeEntity(FieldLayoutScheme fieldLayoutScheme, String issueTypeId, Long fieldConfigurationId) Persists a newFieldLayoutSchemeEntityfor a particularFieldLayoutScheme.voiddeleteFieldLayout(FieldLayout fieldLayout) Deletes a customFieldLayoutvoiddeleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) Removes theFieldLayoutSchemesupplied.booleanfieldConfigurationSchemeExists(String schemeName) Checks if a FieldConfigurationScheme with the given name exists.Returns the defaultEditableDefaultFieldLayout.Returns anEditableFieldLayoutfor the id supplied.Retrieves editable (seeEditableFieldLayoutversions of the field layouts.getFieldConfigurationScheme(Project project) Retrieves the Field Configuration Scheme associated with the supplied project.getFieldConfigurationScheme(Long schemeId) Retrieves aFieldConfigurationSchemeby idgetFieldConfigurationSchemeForProject(Long projectId) Retrieves the Field Configuration Scheme associated with the supplied project.getFieldConfigurationSchemes(FieldLayout fieldLayout) Returns a collection ofFieldConfigurationSchemes that include the givenFieldLayout.Used to retrieveFieldLayoutinformation when rendering a screen.getFieldLayout(Issue issue) Returns the fieldLayout for an issue.getFieldLayout(Project project, String issueTypeId) getFieldLayout(Long id) Used to retrieveFieldLayoutinformation when rendering a screen given the id of the field layout.getFieldLayout(Long projectId, String issueTypeId) Find the FieldLayout for the given Project and IssueType.getFieldLayout(org.ofbiz.core.entity.GenericValue issue) Returns the fieldLayout for an issue.getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme) Returns a collection ofFieldLayoutSchemeEntitys.Retries Field Configuration Schemes.getMutableFieldLayoutScheme(Long schemeId) Retrieves a mutableFieldLayoutSchemeby id.Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldConfigurationScheme fieldConfigurationScheme) Returns all projects that use the given FieldConfigurationScheme.Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldLayoutScheme fieldLayoutScheme) Returns all associated projects for theFieldLayoutSchemesupplied.getProjectsUsing(FieldConfigurationScheme fieldConfigurationScheme) Returns all projects that use the given FieldConfigurationScheme.getProjectsUsing(FieldLayout fieldLayout) Finds all projects that use the givenFieldLayout(via the configuredFieldConfigurationScheme).getProjectsUsing(FieldLayoutScheme fieldLayoutScheme) Returns all projects that use the given FieldLayoutScheme.Collection<org.ofbiz.core.entity.GenericValue> getRelatedProjects(FieldLayout fieldLayout) Finds all projects that use the givenFieldLayout(via the configuredFieldConfigurationScheme).getUniqueFieldLayouts(Project project) Retrieves all theFieldLayout's for a project.getUniqueFieldLayouts(Collection<Project> projects, Collection<String> issueTypeIds) Retrieves all theFieldLayout's for a collection of projects and issue types.booleanChecks to see if aFieldLayoutentity with typeFieldLayoutManager.TYPE_DEFAULTexistsbooleanisFieldLayoutSchemesVisiblyEquivalent(Long fieldConfigurationSchemeId1, Long fieldConfigurationSchemeId2) Will determine whether or not twoFieldLayoutSchemes are "visibly equivalent".booleanisFieldLayoutsVisiblyEquivalent(Long fieldLayoutId1, Long fieldLayoutId2) Will determine whether or not twoFieldLayouts are "visibly equivalent".voidrefresh()Clears all local caches.voidremoveFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) voidremoveFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity) Removes aFieldLayoutSchemeEntityvoidremoveSchemeAssociation(Project project, Long fieldLayoutSchemeId) Removes an association between a particular project and field configuration scheme.voidremoveSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId) Removes an association between a particular project and field configuration scheme.voidThis method can be used to rollback any changes to the default field configuration.setFieldConfigurationScheme(Project project, FieldConfigurationScheme fieldConfigurationScheme) setFieldConfigurationScheme(Long id, FieldConfigurationScheme fieldConfigurationScheme) setFieldLayout(Project project, String issueTypeId, FieldLayout fieldLayout) setFieldLayout(Long id, FieldLayout fieldLayout) setFieldLayoutSchemes(List<FieldLayoutScheme> fieldLayoutSchemes) storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout) Persists theEditableFieldLayoutprovided and returns a new instance as stored in the database.voidstoreEditableDefaultFieldLayout(EditableDefaultFieldLayout editableDefaultFieldLayout) Persist the given defaultEditableDefaultFieldLayoutvoidstoreEditableFieldLayout(EditableFieldLayout editableFieldLayout) Persists theEditableFieldLayoutprovided.toString()voidupdateFieldLayoutItemAttributesForCustomField(CustomField customField, String description, boolean isRequired, boolean isHidden) Update thedescription,isHiddenandisRequiredcolumns of all thefieldlayoutitemrows associated with this custom field.voidupdateFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) Persists theFieldLayoutSchemesupplied.voidupdateFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity) Updates aFieldLayoutSchemeEntity.
-
Constructor Details
-
MockFieldLayoutManager
public MockFieldLayoutManager()
-
-
Method Details
-
addLayoutItem
-
createFieldLayoutScheme
Description copied from interface:FieldLayoutManagerPersists a new field Layout scheme (i.e Field Configuration Scheme).- Specified by:
createFieldLayoutSchemein interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- TheFieldLayoutSchemeto persist.- Returns:
- The stored
FieldLayoutSchemeobject
-
createFieldLayoutScheme
public FieldLayoutScheme createFieldLayoutScheme(@Nonnull String name, @Nullable String description) Description copied from interface:FieldLayoutManagerPersists a new field Layout scheme (i.e Field Configuration Scheme).- Specified by:
createFieldLayoutSchemein interfaceFieldLayoutManager
-
copyFieldLayoutScheme
public FieldLayoutScheme copyFieldLayoutScheme(@Nonnull FieldLayoutScheme scheme, @Nonnull String name, @Nullable String description) Description copied from interface:FieldLayoutManagerCopies an existing field layout to a new one.- Specified by:
copyFieldLayoutSchemein interfaceFieldLayoutManager
-
getFieldConfigurationScheme
Description copied from interface:FieldLayoutManagerRetrieves aFieldConfigurationSchemeby id- Specified by:
getFieldConfigurationSchemein interfaceFieldLayoutManager- Parameters:
schemeId- FieldConfigurationScheme ID- Returns:
- A
FieldConfigurationSchemeinstance
-
getMutableFieldLayoutScheme
Description copied from interface:FieldLayoutManagerRetrieves a mutableFieldLayoutSchemeby id.This returns a new copy of the object from the DB, and so will incur some performance penalty. Please use
FieldLayoutManager.getFieldConfigurationScheme(Long)for access to a cached immutable scheme object.- Specified by:
getMutableFieldLayoutSchemein interfaceFieldLayoutManager- Parameters:
schemeId- the scheme ID- Returns:
- A
FieldLayoutSchemeinstance
-
fieldConfigurationSchemeExists
Description copied from interface:FieldLayoutManagerChecks if a FieldConfigurationScheme with the given name exists.- Specified by:
fieldConfigurationSchemeExistsin interfaceFieldLayoutManager- Parameters:
schemeName- The scheme name- Returns:
trueif a FieldConfigurationScheme with the given name exists.
-
getEditableFieldLayouts
Description copied from interface:FieldLayoutManagerRetrieves editable (seeEditableFieldLayoutversions of the field layouts. Note: For standard edition this simply returns an editable version of the default field layout. (seeEditableDefaultFieldLayout)- Specified by:
getEditableFieldLayoutsin interfaceFieldLayoutManager- Returns:
- A list of
EditableFieldLayoutandEditableDefaultFieldLayout
-
getFieldLayoutSchemes
Description copied from interface:FieldLayoutManagerRetries Field Configuration Schemes. These are used to link field configurations to projects.- Specified by:
getFieldLayoutSchemesin interfaceFieldLayoutManager- Returns:
- A list of
FieldLayoutSchemes.
-
setFieldLayoutSchemes
-
updateFieldLayoutScheme
Description copied from interface:FieldLayoutManagerPersists theFieldLayoutSchemesupplied.- Specified by:
updateFieldLayoutSchemein interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- The FieldLayoutScheme
-
deleteFieldLayoutScheme
Description copied from interface:FieldLayoutManagerRemoves theFieldLayoutSchemesupplied.- Specified by:
deleteFieldLayoutSchemein interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- The FieldLayoutScheme
-
getFieldConfigurationScheme
Description copied from interface:FieldLayoutManagerRetrieves the Field Configuration Scheme associated with the supplied project.- Specified by:
getFieldConfigurationSchemein interfaceFieldLayoutManager- Parameters:
project- A project- Returns:
- A
FieldConfigurationSchemeor null if none exists.
-
getFieldConfigurationSchemeForProject
Description copied from interface:FieldLayoutManagerRetrieves the Field Configuration Scheme associated with the supplied project.- Specified by:
getFieldConfigurationSchemeForProjectin interfaceFieldLayoutManager- Parameters:
projectId- The project ID- Returns:
- A
FieldConfigurationSchemeor null if none exists.
-
setFieldConfigurationScheme
public MockFieldLayoutManager setFieldConfigurationScheme(Project project, FieldConfigurationScheme fieldConfigurationScheme) -
setFieldConfigurationScheme
public MockFieldLayoutManager setFieldConfigurationScheme(Long id, FieldConfigurationScheme fieldConfigurationScheme) -
getUniqueFieldLayouts
Description copied from interface:FieldLayoutManagerRetrieves all theFieldLayout's for a project.- Specified by:
getUniqueFieldLayoutsin interfaceFieldLayoutManager- Parameters:
project- a project- Returns:
- the unique set of FieldLayout's for the provided project, an empty set if there are none.
-
getUniqueFieldLayouts
@Nonnull public Set<FieldLayout> getUniqueFieldLayouts(@Nonnull Collection<Project> projects, @Nonnull Collection<String> issueTypeIds) Description copied from interface:FieldLayoutManagerRetrieves all theFieldLayout's for a collection of projects and issue types.- Specified by:
getUniqueFieldLayoutsin interfaceFieldLayoutManager- Parameters:
projects- a collection of projects.issueTypeIds- An collection of issue type ids.- Returns:
- the unique set of FieldLayout's for the provided projects, an empty set if there are none.
-
addSchemeAssociation
public void addSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId) Description copied from interface:FieldLayoutManagerAssociates aFieldLayoutSchemeto the project supplied.- Specified by:
addSchemeAssociationin interfaceFieldLayoutManager- Parameters:
project- A projectGenericValuefieldLayoutSchemeId- ID of the FieldLayoutScheme
-
removeSchemeAssociation
public void removeSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId) Description copied from interface:FieldLayoutManagerRemoves an association between a particular project and field configuration scheme.- Specified by:
removeSchemeAssociationin interfaceFieldLayoutManager- Parameters:
project- A projectGenericValuefieldLayoutSchemeId- The fieldLayoutScheme ID
-
addSchemeAssociation
Description copied from interface:FieldLayoutManagerAssociates aFieldLayoutSchemeto the project supplied.- Specified by:
addSchemeAssociationin interfaceFieldLayoutManager- Parameters:
project- The projectfieldLayoutSchemeId- ID of the FieldLayoutScheme
-
removeSchemeAssociation
Description copied from interface:FieldLayoutManagerRemoves an association between a particular project and field configuration scheme.- Specified by:
removeSchemeAssociationin interfaceFieldLayoutManager- Parameters:
project- The projectfieldLayoutSchemeId- The fieldLayoutScheme ID
-
getFieldLayout
Description copied from interface:FieldLayoutManagerUsed to retrieveFieldLayoutinformation when rendering a screen.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Returns:
- the default FieldLayout
-
getFieldLayout
Description copied from interface:FieldLayoutManagerUsed to retrieveFieldLayoutinformation when rendering a screen given the id of the field layout. If the ID is null, the default layout is returned.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
id- The FieldLayout ID.- Returns:
- The
FieldLayout
-
setFieldLayout
-
getFieldLayout
Description copied from interface:FieldLayoutManagerReturns the fieldLayout for an issue.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
issue- An issueGenericValue- Returns:
- A
FieldLayout
-
getFieldLayout
Description copied from interface:FieldLayoutManagerReturns the fieldLayout for an issue.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
issue- AnIssue- Returns:
- A
FieldLayout
-
getFieldLayout
- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
project- A projectissueTypeId- The IssueType id of the issue.- Returns:
- A
FieldLayout - See Also:
-
getFieldLayout
Description copied from interface:FieldLayoutManagerFind the FieldLayout for the given Project and IssueType.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
projectId- the projectissueTypeId- the issue type- Returns:
- the FieldLayout for the given Project and IssueType.
-
setFieldLayout
public MockFieldLayoutManager setFieldLayout(Project project, String issueTypeId, FieldLayout fieldLayout) -
getEditableDefaultFieldLayout
Description copied from interface:FieldLayoutManagerReturns the defaultEditableDefaultFieldLayout.- Specified by:
getEditableDefaultFieldLayoutin interfaceFieldLayoutManager- Returns:
- the default
EditableDefaultFieldLayout.
-
storeEditableDefaultFieldLayout
Description copied from interface:FieldLayoutManagerPersist the given defaultEditableDefaultFieldLayout- Specified by:
storeEditableDefaultFieldLayoutin interfaceFieldLayoutManager- Parameters:
editableDefaultFieldLayout- The EditableDefaultFieldLayout.
-
storeEditableFieldLayout
Description copied from interface:FieldLayoutManagerPersists theEditableFieldLayoutprovided.- Specified by:
storeEditableFieldLayoutin interfaceFieldLayoutManager- Parameters:
editableFieldLayout- the EditableFieldLayout.
-
storeAndReturnEditableFieldLayout
public EditableFieldLayout storeAndReturnEditableFieldLayout(EditableFieldLayout editableFieldLayout) Description copied from interface:FieldLayoutManagerPersists theEditableFieldLayoutprovided and returns a new instance as stored in the database.- Specified by:
storeAndReturnEditableFieldLayoutin interfaceFieldLayoutManager- Parameters:
editableFieldLayout- the EditableFieldLayout.- Returns:
- the layout as stored in the database.
-
restoreDefaultFieldLayout
public void restoreDefaultFieldLayout()Description copied from interface:FieldLayoutManagerThis method can be used to rollback any changes to the default field configuration.- Specified by:
restoreDefaultFieldLayoutin interfaceFieldLayoutManager
-
hasDefaultFieldLayout
public boolean hasDefaultFieldLayout()Description copied from interface:FieldLayoutManagerChecks to see if aFieldLayoutentity with typeFieldLayoutManager.TYPE_DEFAULTexists- Specified by:
hasDefaultFieldLayoutin interfaceFieldLayoutManager- Returns:
- True if a default
FieldLayoutexists, false otherwise.
-
getProjects
public Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldConfigurationScheme fieldConfigurationScheme) Description copied from interface:FieldLayoutManagerReturns all projects that use the given FieldConfigurationScheme.- Specified by:
getProjectsin interfaceFieldLayoutManager- Parameters:
fieldConfigurationScheme- the FieldConfigurationScheme- Returns:
- A list of projects that use the given FieldConfigurationScheme.
-
getProjectsUsing
Description copied from interface:FieldLayoutManagerReturns all projects that use the given FieldConfigurationScheme.- Specified by:
getProjectsUsingin interfaceFieldLayoutManager- Parameters:
fieldConfigurationScheme- the FieldConfigurationScheme- Returns:
- A list of projects that use the given FieldConfigurationScheme.
-
getProjects
public Collection<org.ofbiz.core.entity.GenericValue> getProjects(FieldLayoutScheme fieldLayoutScheme) Description copied from interface:FieldLayoutManagerReturns all associated projects for theFieldLayoutSchemesupplied.- Specified by:
getProjectsin interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- the FieldLayoutScheme- Returns:
- A list of project
GenericValues
-
getProjectsUsing
Description copied from interface:FieldLayoutManagerReturns all projects that use the given FieldLayoutScheme.- Specified by:
getProjectsUsingin interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- the FieldLayoutScheme- Returns:
- A list of projects that use the given FieldLayoutScheme.
-
refresh
public void refresh()Description copied from interface:FieldLayoutManagerClears all local caches.- Specified by:
refreshin interfaceFieldLayoutManager
-
getEditableFieldLayout
Description copied from interface:FieldLayoutManagerReturns anEditableFieldLayoutfor the id supplied.- Specified by:
getEditableFieldLayoutin interfaceFieldLayoutManager- Parameters:
id- If the id is NULL, the default layout is returned.- Returns:
- An
EditableFieldLayout
-
deleteFieldLayout
Description copied from interface:FieldLayoutManagerDeletes a customFieldLayout- Specified by:
deleteFieldLayoutin interfaceFieldLayoutManager- Parameters:
fieldLayout- The FieldLayout
-
getFieldLayoutSchemeEntities
public Collection<FieldLayoutSchemeEntity> getFieldLayoutSchemeEntities(FieldLayoutScheme fieldLayoutScheme) Description copied from interface:FieldLayoutManagerReturns a collection ofFieldLayoutSchemeEntitys. These are used to record mappings fromIssueType->FieldLayoutfor theFieldLayoutSchemepassed in.- Specified by:
getFieldLayoutSchemeEntitiesin interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- The FieldLayoutScheme- Returns:
- A collection of
FieldLayoutSchemeEntitys.
-
createFieldLayoutSchemeEntity
Description copied from interface:FieldLayoutManagerPersists a newFieldLayoutSchemeEntityfor a particularFieldLayoutScheme. The appropriate scheme is retrieved usingFieldLayoutSchemeEntity.getFieldLayoutScheme()- Specified by:
createFieldLayoutSchemeEntityin interfaceFieldLayoutManager- Parameters:
fieldLayoutSchemeEntity- The FieldLayoutSchemeEntity
-
createFieldLayoutSchemeEntity
public FieldLayoutSchemeEntity createFieldLayoutSchemeEntity(FieldLayoutScheme fieldLayoutScheme, String issueTypeId, Long fieldConfigurationId) Description copied from interface:FieldLayoutManagerPersists a newFieldLayoutSchemeEntityfor a particularFieldLayoutScheme. The appropriate scheme is retrieved usingFieldLayoutSchemeEntity.getFieldLayoutScheme()- Specified by:
createFieldLayoutSchemeEntityin interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- the FieldLayoutSchemeissueTypeId- the Issue TypefieldConfigurationId- the FieldConfig
-
updateFieldLayoutSchemeEntity
Description copied from interface:FieldLayoutManagerUpdates aFieldLayoutSchemeEntity.- Specified by:
updateFieldLayoutSchemeEntityin interfaceFieldLayoutManager- Parameters:
fieldLayoutSchemeEntity- The FieldLayoutSchemeEntity
-
removeFieldLayoutSchemeEntity
Description copied from interface:FieldLayoutManagerRemoves aFieldLayoutSchemeEntity- Specified by:
removeFieldLayoutSchemeEntityin interfaceFieldLayoutManager- Parameters:
fieldLayoutSchemeEntity- The FieldLayoutSchemeEntity
-
removeFieldLayoutScheme
- Specified by:
removeFieldLayoutSchemein interfaceFieldLayoutManager- Parameters:
fieldLayoutScheme- The FieldLayoutScheme
-
getFieldConfigurationSchemes
Description copied from interface:FieldLayoutManagerReturns a collection ofFieldConfigurationSchemes that include the givenFieldLayout.This is determined by retrieving all
FieldLayoutSchemeEntitys with theFieldLayoutand calculating a set ofFieldConfigurationSchemes using these entities.- Specified by:
getFieldConfigurationSchemesin interfaceFieldLayoutManager- Parameters:
fieldLayout- The FieldLayout.- Returns:
- A collection of
FieldConfigurationSchemes
-
getRelatedProjects
Description copied from interface:FieldLayoutManagerFinds all projects that use the givenFieldLayout(via the configuredFieldConfigurationScheme).NOTE: In the case of Standard invalid input: '&' Professional, this simply returns ALL projects, as the only fieldlayout is the default field layout.
- Specified by:
getRelatedProjectsin interfaceFieldLayoutManager- Parameters:
fieldLayout- The FieldLayout.- Returns:
- The set of Projects that use the given FieldLayout.
-
getProjectsUsing
Description copied from interface:FieldLayoutManagerFinds all projects that use the givenFieldLayout(via the configuredFieldConfigurationScheme).NOTE: In the case of Standard invalid input: '&' Professional, this simply returns ALL projects, as the only fieldlayout is the default field layout.
- Specified by:
getProjectsUsingin interfaceFieldLayoutManager- Parameters:
fieldLayout- The FieldLayout.- Returns:
- The set of Projects that use the given FieldLayout.
-
isFieldLayoutSchemesVisiblyEquivalent
public boolean isFieldLayoutSchemesVisiblyEquivalent(Long fieldConfigurationSchemeId1, Long fieldConfigurationSchemeId2) Description copied from interface:FieldLayoutManagerWill determine whether or not twoFieldLayoutSchemes are "visibly equivalent".This can be useful for determining if swapping one field layout scheme for another in a project will have any affect on the visibility of fields in the project's issues. For instance, this will let us know if we need to re-index or not.
Since a scheme is a mapping from issue types to field layouts, two schemes are visibly equivalent if:
- All issue types map to the same field layouts; or else
- The field layouts that an issue type is associated with in each scheme are visibly equivalent
Note that equivalence is reflexive - all the associations in scheme1 must have equivalent associations in scheme2, and vice versa.
- Specified by:
isFieldLayoutSchemesVisiblyEquivalentin interfaceFieldLayoutManager- Parameters:
fieldConfigurationSchemeId1- the first scheme; can usenullfor the system default schemefieldConfigurationSchemeId2- the second scheme; can usenullfor the system default scheme- Returns:
- the result of the equivalence comparison
-
isFieldLayoutsVisiblyEquivalent
Description copied from interface:FieldLayoutManagerWill determine whether or not twoFieldLayouts are "visibly equivalent".This can be useful for determining if swapping one field layout for another in a project will have any affect on the visibility of fields in the project's issues. For instance, this will let us know if we need to re-index or not.
Two field layouts are visibly equivalent if:
- They contain the same fields, and
- Each field has the same shown/hidden flag
- Specified by:
isFieldLayoutsVisiblyEquivalentin interfaceFieldLayoutManager- Parameters:
fieldLayoutId1- the first layout id; null signifies the default field layout in the systemfieldLayoutId2- the second layout id; null signifies the default field layout in the system- Returns:
- the result of the equivalence comparison
-
updateFieldLayoutItemAttributesForCustomField
public void updateFieldLayoutItemAttributesForCustomField(CustomField customField, String description, boolean isRequired, boolean isHidden) Description copied from interface:FieldLayoutManagerUpdate thedescription,isHiddenandisRequiredcolumns of all thefieldlayoutitemrows associated with this custom field.- Specified by:
updateFieldLayoutItemAttributesForCustomFieldin interfaceFieldLayoutManager- Parameters:
customField- a CustomField which owns the affected fieldlayoutitemsdescription- a String containing the new descriptionisRequired- a boolean containing the new valueisHidden- a boolean containing the new value.
-
toString
-