Class AbstractInfo
java.lang.Object
com.inet.taskplanner.server.api.common.AbstractInfo
- Direct Known Subclasses:
JobInfo,ResultActionInfo,SeriesInfo,TriggerInfo
POJO containing information about a dynamic component in the
TaskPlanner.
Contains information about how the component is to be presented.
- Since:
- taskplanner 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractInfo(@Nonnull String extensionName, @Nonnull String displayName, @Nonnull String description, URL iconURL, String helpKey) Creates a new AbstractInfo instance only with required fields.AbstractInfo(@Nonnull String extensionName, @Nonnull String displayName, @Nonnull String description, URL iconURL, String helpKey, List<Field> fields) Creates a new info instance. -
Method Summary
Modifier and TypeMethodDescription@Nonnull StringGet the localized description of the component.@Nonnull StringGet the localized display name of the component.@Nonnull StringReturns the extensionName for the component this info is describing.Returns the list of fields that contains the property entries.@Nullable StringGet the help-key of the page to open for the component.@Nullable URLGet the URL of the Icon for the component.
-
Constructor Details
-
AbstractInfo
public AbstractInfo(@Nonnull @Nonnull String extensionName, @Nonnull @Nonnull String displayName, @Nonnull @Nonnull String description, URL iconURL, String helpKey) Creates a new AbstractInfo instance only with required fields.- Parameters:
extensionName- the unique extensionName, there must be aJobFactoryfor this extensionName.displayName- localized name of the component to showdescription- localized description of the component to showiconURL- url to the icon of the componenthelpKey- key of the helppage to open for this component- Since:
- taskplanner 3.0
-
AbstractInfo
public AbstractInfo(@Nonnull @Nonnull String extensionName, @Nonnull @Nonnull String displayName, @Nonnull @Nonnull String description, URL iconURL, String helpKey, List<Field> fields) Creates a new info instance. To be called by subclasses.- Parameters:
extensionName- the unique extensionName, there must be a Factory for this extensionName.displayName- localized name of the component to showdescription- localized description of the component to showiconURL- url to the icon of the componenthelpKey- key of the helppage to open for this componentfields- List of fields which represents the editable properties of the component- Throws:
IllegalArgumentException- if extensionName, displayName, description, or fields are null- Since:
- taskplanner 3.0
-
-
Method Details
-
getExtensionName
Returns the extensionName for the component this info is describing.- Returns:
- the extension name.
-
getDisplayName
Get the localized display name of the component.- Returns:
- the localized display name
- Since:
- taskplanner 3.0
-
getDescription
Get the localized description of the component.- Returns:
- the description for the component.
- Since:
- taskplanner 3.0
-
getIconURL
Get the URL of the Icon for the component.- Returns:
- the url of the icon
- Since:
- taskplanner 3.0
-
getHelpKey
Get the help-key of the page to open for the component.- Returns:
- the help key
- Since:
- taskplanner 3.0
-
getFields
Returns the list of fields that contains the property entries.- Returns:
- the list of
Fields. - Since:
- taskplanner 3.0
-