public interface LayoutService
Modifier and Type | Method and Description |
---|---|
void |
associateToProject(Layout layout,
Long projectId)
Associate a layout to a project.
|
Layout |
create(LayoutBuilder layoutBuilder)
Create the layout.
|
void |
delete(Layout layout)
Delete the layout.
|
void |
disassociateLayoutsToProject(Long projectId)
Disassociate layout from a project
|
void |
disassociateToProject(Layout layout,
Long projectId)
Disassociate a layout from a project.
|
List<Layout> |
get()
Get the list of layouts.
|
Layout |
get(Integer id)
Get the layout by id.
|
List<com.atlassian.jira.project.Project> |
getAvailableProjects()
Get the projects that do not have a layout associated.
|
Layout |
getByName(String name)
Get the layout by name.
|
Layout |
getByProject(com.atlassian.jira.project.Project project)
Get the layout of the project.
|
ContainerViewBuilder |
getContainerViewBuilder()
Gets container view builder.
|
ContainerViewBuilder |
getContainerViewBuilderFrom(ContainerView containerView)
Get container view builder from a container
|
Layout |
getDefault(com.atlassian.jira.project.type.ProjectType projectType)
Return the default layout for a project type
|
Layout |
getDefaultEmptyLayout()
Return the default empty layout
|
FieldViewBuilder |
getFieldViewBuilder()
Get field view builder.
|
FieldViewBuilder |
getFieldViewBuilderFrom(FieldView fieldView)
Get field view builder
|
LayoutBuilder |
getLayoutBuilder()
Get the layout builder.
|
List<com.atlassian.jira.project.Project> |
getProjects(Layout layout)
Get the list of projects that have the layout.
|
List<com.atlassian.jira.project.Project> |
getProjectsWithPredefinedLayout(Layout layout)
Get the list of projects that have the layout.
|
SectionViewBuilder |
getSectionViewBuilder()
Gets section view builder.
|
SectionViewBuilder |
getSectionViewBuilderFrom(SectionView sectionView)
Get section view builder from a section
|
List<SectionViewBuilder> |
getSectionViewBuildersFrom(Layout layout)
Get all section view builders from layout
|
List<SectionViewBuilder> |
getSectionViewBuildersFrom(List<SectionView> sectionViews)
Get section view builders from a section list
|
List<com.atlassian.jira.project.Project> |
getUnassociatedProjects(Layout layout)
Get the list of projects those don't have this associated layout.
|
List<com.atlassian.jira.project.Project> |
getUnavailableProjects()
Get the projects that have a layout.
|
void |
removeDefault(com.atlassian.jira.project.type.ProjectType projectType)
Remove the default layout for a project type
|
void |
setDefault(com.atlassian.jira.project.type.ProjectType projectType,
Integer layoutId)
Deprecated.
|
void |
setDefault(com.atlassian.jira.project.type.ProjectType projectType,
Layout layout)
Set the default layout for a project type
|
void |
update(Layout layout)
Update the layout.
|
LayoutBuilder getLayoutBuilder()
SectionViewBuilder getSectionViewBuilder()
SectionViewBuilder getSectionViewBuilderFrom(SectionView sectionView)
sectionView
- List<SectionViewBuilder> getSectionViewBuildersFrom(List<SectionView> sectionViews)
sectionViews
- List<SectionViewBuilder> getSectionViewBuildersFrom(Layout layout)
layout
- ContainerViewBuilder getContainerViewBuilder()
ContainerViewBuilder getContainerViewBuilderFrom(ContainerView containerView)
containerView
- FieldViewBuilder getFieldViewBuilder()
FieldViewBuilder getFieldViewBuilderFrom(FieldView fieldView)
fieldView
- Layout create(LayoutBuilder layoutBuilder)
layoutBuilder
- the layout builderLayout get(Integer id)
id
- the id of the layoutLayout getByName(String name)
name
- the name of the layoutLayout getByProject(com.atlassian.jira.project.Project project)
project
- the projectList<com.atlassian.jira.project.Project> getProjects(Layout layout)
layout
- the layoutList<com.atlassian.jira.project.Project> getProjectsWithPredefinedLayout(Layout layout)
layout
- the layoutList<com.atlassian.jira.project.Project> getUnassociatedProjects(Layout layout)
layout
- List<com.atlassian.jira.project.Project> getAvailableProjects()
List<com.atlassian.jira.project.Project> getUnavailableProjects()
void update(Layout layout)
layout
- the layout to be updatedvoid delete(Layout layout)
layout
- the layout to be deletedvoid associateToProject(Layout layout, Long projectId)
layout
- the layout to be associatedprojectId
- the project idvoid disassociateToProject(Layout layout, Long projectId)
layout
- the layout to be disassociateprojectId
- the project idvoid disassociateLayoutsToProject(Long projectId)
projectId
- the project idLayout getDefault(com.atlassian.jira.project.type.ProjectType projectType)
projectType
- the project type@Deprecated void setDefault(com.atlassian.jira.project.type.ProjectType projectType, Integer layoutId)
projectType
- the project typelayoutId
- the id of default layoutvoid setDefault(com.atlassian.jira.project.type.ProjectType projectType, Layout layout)
projectType
- the project typelayout
- default layoutvoid removeDefault(com.atlassian.jira.project.type.ProjectType projectType)
projectType
- the project typeLayout getDefaultEmptyLayout()
Copyright © 2021 DEISER. All Rights Reserved.