Interface LayoutService
public interface LayoutService
Layout service
- 
Method SummaryModifier and TypeMethodDescriptionvoidassociateToProject(Layout layout, Long projectId) Associate a layout to a project.create(LayoutBuilder layoutBuilder) Create the layout.voidDelete the layout.voiddisassociateLayoutsToProject(Long projectId) Disassociate layout from a projectvoiddisassociateToProject(Layout layout, Long projectId) Disassociate a layout from a project.List<com.atlassian.jira.project.Project>filterProjectsWithAssociatePermission(List<com.atlassian.jira.project.Project> projectList) Get the list of projects those have associate permission.get()Get the list of layouts.Get the layout by id.List<com.atlassian.jira.project.Project>Get the projects that do not have a layout associated.Get the layout by name.getByProject(com.atlassian.jira.project.Project project) Get the layout of the project.Gets container view builder.getContainerViewBuilderFrom(ContainerView containerView) Get container view builder from a containergetDefault(com.atlassian.jira.project.type.ProjectType projectType) Return the default layout for a project typeReturn the default empty layoutGet field view builder.getFieldViewBuilderFrom(FieldView fieldView) Get field view builderGet 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>Get the list of projects that have the layout.Gets section view builder.getSectionViewBuilderFrom(SectionView sectionView) Get section view builder from a sectiongetSectionViewBuildersFrom(Layout layout) Get all section view builders from layoutgetSectionViewBuildersFrom(List<SectionView> sectionViews) Get section view builders from a section listList<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>Get the projects that have a layout.voidremoveDefault(com.atlassian.jira.project.type.ProjectType projectType) Remove the default layout for a project typevoidsetDefault(com.atlassian.jira.project.type.ProjectType projectType, Layout layout) Set the default layout for a project typevoidsetDefault(com.atlassian.jira.project.type.ProjectType projectType, Integer layoutId) Deprecated.voidUpdate the layout.
- 
Method Details- 
getLayoutBuilderLayoutBuilder getLayoutBuilder()Get the layout builder.- Returns:
- the layout builder
 
- 
getSectionViewBuilderSectionViewBuilder getSectionViewBuilder()Gets section view builder.- Returns:
- the section view builder
 
- 
getSectionViewBuilderFromGet section view builder from a section- Parameters:
- sectionView-
- Returns:
- the section view builder
 
- 
getSectionViewBuildersFromGet section view builders from a section list- Parameters:
- sectionViews-
- Returns:
- list of section view builders
 
- 
getSectionViewBuildersFromGet all section view builders from layout- Parameters:
- layout-
- Returns:
- list of section view builders
 
- 
getContainerViewBuilderContainerViewBuilder getContainerViewBuilder()Gets container view builder.- Returns:
- the container view builder
 
- 
getContainerViewBuilderFromGet container view builder from a container- Parameters:
- containerView-
- Returns:
- the container view builder
 
- 
getFieldViewBuilderFieldViewBuilder getFieldViewBuilder()Get field view builder.- Returns:
- the field view builder
 
- 
getFieldViewBuilderFromGet field view builder- Parameters:
- fieldView-
- Returns:
- the field view builder
 
- 
createCreate the layout.- Parameters:
- layoutBuilder- the layout builder
- Returns:
- the layout created
 
- 
getGet the list of layouts.- Returns:
- the list of layouts
 
- 
getGet the layout by id.- Parameters:
- id- the id of the layout
- Returns:
- the layout
 
- 
getByNameGet the layout by name.- Parameters:
- name- the name of the layout
- Returns:
- the layout
 
- 
getByProjectGet the layout of the project. If the project doesn't have any layout, It gets the default empty layout.- Parameters:
- project- the project
- Returns:
- the layout of the project
 
- 
getProjectsGet the list of projects that have the layout. The layout predefined will not be taken to get the projects due to this layout has not associated projects.- Parameters:
- layout- the layout
- Returns:
- the list of projects that have the layout
 
- 
getProjectsWithPredefinedLayoutGet the list of projects that have the layout. If the layout is a predefined, it return the projects without layout associated.- Parameters:
- layout- the layout
- Returns:
- the list of projects that have the layout
 
- 
getUnassociatedProjectsGet the list of projects those don't have this associated layout.- Parameters:
- layout-
- Returns:
- the list of projects those don't have this layout.
 
- 
filterProjectsWithAssociatePermissionList<com.atlassian.jira.project.Project> filterProjectsWithAssociatePermission(List<com.atlassian.jira.project.Project> projectList) Get the list of projects those have associate permission.- Parameters:
- projectList-
- Returns:
- the list of projects those have associate permission.
 
- 
getAvailableProjectsList<com.atlassian.jira.project.Project> getAvailableProjects()Get the projects that do not have a layout associated.- Returns:
- the list of projects available
 
- 
updateUpdate the layout.- Parameters:
- layout- the layout to be updated
 
- 
deleteDelete the layout.- Parameters:
- layout- the layout to be deleted
 
- 
associateToProjectAssociate a layout to a project.- Parameters:
- layout- the layout to be associated
- projectId- the project id
 
- 
disassociateToProjectDisassociate a layout from a project.- Parameters:
- layout- the layout to be disassociate
- projectId- the project id
 
- 
disassociateLayoutsToProjectDisassociate layout from a project- Parameters:
- projectId- the project id
 
- 
getDefaultReturn the default layout for a project type- Parameters:
- projectType- the project type
- Returns:
- the default layout for this project type
 
- 
setDefault@Deprecated void setDefault(com.atlassian.jira.project.type.ProjectType projectType, Integer layoutId) Deprecated.Set the default layout for a project type- Parameters:
- projectType- the project type
- layoutId- the id of default layout
 
- 
setDefaultSet the default layout for a project type- Parameters:
- projectType- the project type
- layout- default layout
 
- 
removeDefaultvoid removeDefault(com.atlassian.jira.project.type.ProjectType projectType) Remove the default layout for a project type- Parameters:
- projectType- the project type
 
- 
getDefaultEmptyLayoutLayout getDefaultEmptyLayout()Return the default empty layout- Returns:
- the default layout for this project type
 
 
-