Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Used to provide additional option to create new App in create App page.
public String getPluginIcon();
Get the icon for the option.
public Boolean isAvailable();
Whether this option should appear in the create app page
public Collection<String> createAppDefinition(String appId, String appName, HttpServletRequest request);
Create app definition to database. Return errors message if fail to create app definition.
Parameters
Please refer to Plugin Properties Options for more information.
@Override public Collection<String> createAppDefinition(String appId, String appName, HttpServletRequest request) { Collection<String> result = new ArrayList<>(); //to keep error messages //this will create an empty app AppDefinition appDef = new AppDefinition(); appDef.setAppId(appId); appDef.setVersion(1l); appDef.setId(appId); appDef.setName(appName); appDef.setPublished(Boolean.FALSE); appDef.setDateCreated(new Date()); appDef.setDateModified(new Date()); appDefinitionDao.saveOrUpdate(appDef); return result; }