com.almworks.jira.structure.api.template.NewStructureTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-api Show documentation
Show all versions of structure-api Show documentation
Public API for the Structure Plugin for JIRA
package com.almworks.jira.structure.api.template;
import com.almworks.jira.structure.api.structure.Structure;
import org.jetbrains.annotations.NotNull;
import java.util.Map;
/**
* @author alexeypegov
*/
public interface NewStructureTemplate {
boolean isEnabled();
@NotNull
String getInitialStep();
@NotNull
NewStructureTemplateStep createStep(@NotNull String step, @NotNull Map params, NewStructureTemplateContext context) throws StructureTemplateException;
void configureNewStructure(@NotNull Structure structure, @NotNull Map params) throws StructureTemplateException;
default String getCreateButtonTextKey() {
return "s.tpl.btn.finish.name";
}
default String prepareNewStructureUrl(Structure structure) {
return "/secure/StructureBoard.jspa?s=" + structure.getId();
}
default boolean shouldRedirectForNewStructure() {
return false;
}
default boolean hasCustomFinalStep() {
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy