
com.almworks.jira.structure.api2g.process.ProcessInfo 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.api2g.process;
import com.atlassian.jira.user.ApplicationUser;
import org.jetbrains.annotations.Nullable;
/**
* ProcessInfo allows communication between process owner and process itself.
*
* If you know processId, you can access its state using {@link ProcessHandleManager#getInfo(Long)} method.
*/
public interface ProcessInfo {
/**
* @return Actual status of the process. Null if there is no such process
*/
@Nullable
ProcessStatus getStatus();
/**
* @return Process display parameters (process name, buttons). Null if there is no such process
*/
@Nullable
ProcessDisplayParameters getParameters();
/**
* @param user User key
* @return true if state is visible for the user. false if there is no such process
*/
boolean isVisibleTo(@Nullable ApplicationUser user);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy