Class DefaultFieldLayoutManager
- All Implemented Interfaces:
InitializingComponent,FieldLayoutManager
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager
cacheManager, DESCRIPTION, FIELD_LAYOUT, fieldManager, i18nFactory, NAME, ofBizDelegator, SCHEME, SCHEME_ASSOCIATION, TYPEFields inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager
TYPE_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, ConstantsManager constantsManager, SubTaskManager subTaskManager, ProjectManager projectManager, I18nHelper.BeanFactory i18nFactory, NodeAssociationStore nodeAssociationStore, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher, ApplicationProperties applicationProperties, QueryDslAccessor queryDslAccessor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchemeAssociation(Project project, Long fieldLayoutSchemeId) Associates aFieldLayoutSchemeto the project supplied.voidaddSchemeAssociation(org.ofbiz.core.entity.GenericValue project, Long fieldLayoutSchemeId) Associates aFieldLayoutSchemeto the project supplied.voidCalled after all the beans are constructed and the ApplicationContext is fully populated.protected voidcopyFieldLayoutScheme(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 fieldLayoutId) Persists a newFieldLayoutSchemeEntityfor a particularFieldLayoutScheme.protected FieldLayoutSchemeEntitycreateFieldLayoutSchemeEntityNoEvent(FieldLayoutScheme fieldLayoutScheme, String issueTypeId, Long fieldLayoutId) voiddeleteFieldLayout(FieldLayout fieldLayout) Deletes a customFieldLayoutvoiddeleteFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) Removes theFieldLayoutSchemesupplied.booleanfieldConfigurationSchemeExists(String schemeName) Checks if a FieldConfigurationScheme with the given name exists.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.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.booleanisFieldLayoutSchemesVisiblyEquivalent(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".voidonClearCache(ClearCacheEvent event) voidrefresh()Clears all local caches.voidremoveFieldLayoutScheme(FieldLayoutScheme fieldLayoutScheme) voidremoveFieldLayoutSchemeEntity(FieldLayoutSchemeEntity fieldLayoutSchemeEntity) Removes aFieldLayoutSchemeEntityprotected voidremoveFieldLayoutSchemeEntityNoEvent(FieldLayoutSchemeEntity fieldLayoutSchemeEntity) voidremoveSchemeAssociation(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.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.Methods inherited from class com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager
getDefaultDescription, getDefaultFieldLayoutItems, getEditableDefaultFieldLayout, getFieldLayout, getFieldLayout, getI18nHelper, getRelevantFieldLayout, hasDefaultFieldLayout, onCustomFieldUpdated, refreshCaches, refreshCacheWhenUpdateAllowUnassignedOption, restoreDefaultFieldLayout, restoreFieldLayout, storeAndReturnEditableFieldLayout, storeEditableDefaultFieldLayout, storeEditableFieldLayoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager
getEditableDefaultFieldLayout, getFieldLayout, getFieldLayout, hasDefaultFieldLayout, restoreDefaultFieldLayout, storeAndReturnEditableFieldLayout, storeEditableDefaultFieldLayout, storeEditableFieldLayout
-
Constructor Details
-
DefaultFieldLayoutManager
public DefaultFieldLayoutManager(FieldManager fieldManager, OfBizDelegator ofBizDelegator, ConstantsManager constantsManager, SubTaskManager subTaskManager, ProjectManager projectManager, I18nHelper.BeanFactory i18nFactory, NodeAssociationStore nodeAssociationStore, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher, ApplicationProperties applicationProperties, QueryDslAccessor queryDslAccessor)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiationin interfaceInitializingComponent- Overrides:
afterInstantiationin classAbstractFieldLayoutManager- Throws:
Exception
-
onClearCache
-
getFieldLayout
Description copied from interface:FieldLayoutManagerReturns the fieldLayout for an issue.- Specified by:
getFieldLayoutin interfaceFieldLayoutManager- Parameters:
issue- An issueGenericValue- 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.
-
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.
-
getRelatedProjects
Description copied from interface:FieldLayoutManagerFinds all projects that use the givenFieldLayout(via the configuredFieldConfigurationScheme).NOTE: In the case of Standard & 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 & 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.
-
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
-
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
-
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
-
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
-
updateFieldLayoutSchemeEntity
Description copied from interface:FieldLayoutManagerUpdates aFieldLayoutSchemeEntity.- Specified by:
updateFieldLayoutSchemeEntityin interfaceFieldLayoutManager- Parameters:
fieldLayoutSchemeEntity- The FieldLayoutSchemeEntity
-
removeFieldLayoutSchemeEntityNoEvent
protected void removeFieldLayoutSchemeEntityNoEvent(FieldLayoutSchemeEntity 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
-
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.
-
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
-
createFieldLayoutSchemeEntity
public FieldLayoutSchemeEntity createFieldLayoutSchemeEntity(@Nonnull FieldLayoutScheme fieldLayoutScheme, @Nullable String issueTypeId, @Nullable Long fieldLayoutId) 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 TypefieldLayoutId- the FieldConfig
-
createFieldLayoutSchemeEntityNoEvent
protected FieldLayoutSchemeEntity createFieldLayoutSchemeEntityNoEvent(@Nonnull FieldLayoutScheme fieldLayoutScheme, @Nullable String issueTypeId, @Nullable Long fieldLayoutId) -
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.
-
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.
-
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.
-
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
-
addSchemeAssociation
Description copied from interface:FieldLayoutManagerAssociates aFieldLayoutSchemeto the project supplied.- Specified by:
addSchemeAssociationin interfaceFieldLayoutManager- Parameters:
project- The projectfieldLayoutSchemeId- 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
-
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 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
-
refresh
public void refresh()Description copied from interface:FieldLayoutManagerClears all local caches.- Specified by:
refreshin interfaceFieldLayoutManager- Overrides:
refreshin classAbstractFieldLayoutManager
-
clearCaches
protected void clearCaches() -
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(@Nonnull CustomField customField, @Nonnull 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.
-
getAllRelevantIssueTypeIds
-