public interface BBjAdminAppDeploymentApplication extends BBjAdminCommitPropertyWriter, java.lang.Comparable<BBjAdminAppDeploymentApplication>
Do not directly create a BBjAdminAppDeploymentApplication instance from one of its implementation classes. Instead, use the com.basis.api.admin.BBjAdminAppDeploymentConfiguration.createApplication() method class to create a new application or the getRemoteConfiguration() method to gain access to the remote app configurations and then get the app instance from there. See the sample code below for details.
import com.basis.api.admin.BBjAdminFactory;
import com.basis.api.admin.BBjAdminBase;
import com.basis.api.admin.BBjAdminDatabase;
import com.basis.api.admin.BBjAdminAppDeploymentApplication;
import com.basis.api.admin.BBjAdminJRE;
import java.net.InetAddress;
...
BBjAdminBase api = BBjAdminFactory.getBBjAdmin(InetAddress.getByName("myserver"), 2002, true, "admin", "admin123");
BBjAdminAppDeploymentConfiguration config = api.getRemoteConfiguration();
// Create a resource entry for a shortcut icon
BBjAdminAppDeploymentResource resource = config.createResource();
resource.setString(BBjAdminAppDeploymentResource.SOURCE_FILE_NAME, "/path/to/image.png");
config.getResources().add(resource);
config.commit();
// Add a JRE to include for the desktop app (required for desktop apps)
api.getWebAppServer().addJRE("/path/to/jre/mac-jre-installer.tgz", BBjAdminJRE.OS_MAC);
api.getWebAppServer().addJRE("/path/to/jre/windows-jre-installer.tgz", BBjAdminJRE.OS_WINDOWS);
api.getWebAppServer().addJRE("/path/to/jre/linux-jre-installer.tgz", BBjAdminJRE.OS_LINUX);
// Create the application
BBjAdminAppDeploymentApplication newApp = config.createApplication();
newApp.setString(BBjAdminAppDeploymentApplication.NAME, "MyApp");
newApp!.setString(BBjAdminAppDeploymentApplication.PROGRAM, "myapp.bbj");
newApp.setString(BBjAdminAppDeploymentApplication.CONFIG_FILE, "/path/to/config.bbx");
newApp.setString(BBjAdminAppDeploymentApplication.WORKING_DIRECTORY, "/path/to/directory");
newApp.setBoolean(BBjAdminAppDeploymentApplication.EXE_ENABLED, true);
newApp.setBoolean(BBjAdminAppDeploymentApplication.BUI_ENABLED, true);
// Set the JVMs that will be available to the apps (optional as it can use the defaults added above)
newApp.setString(BBjAdminAppDeploymentApplication.MAC_JVM, "mac-jre-installer.tgz");
newApp.setString(BBjAdminAppDeploymentApplication.WINDOWS_JVM, "win-jre-installer.tgz");
newApp.setString(BBjAdminAppDeploymentApplication.WINDOWS_32_JVM, "win32-jre-installer.tgz");
newApp.setString(BBjAdminAppDeploymentApplication.LINUX_JVM, "linux-jre-installer.tgz");
// Set the shortcut icon to the resource we created above
newApp.setString(BBjAdminAppDeploymentApplication.SHORTCUT_ICON_RESOURCE_ID, resource.getString(BBjAdminAppDeploymentResource.RESOURCE_ID));
newApp.commit();
BBjAdminList apps = config.getApplications();
for (BBjAdminAppDeploymentApplication app: apps)
{
System.out.println(app.getString(BBjAdminAppDeploymentApplication.NAME));
System.out.println(app.getBuiUrl(false));
System.out.println(app.getExeUrl(BBjAdminAppDeploymentApplication.PLATFORM_MAC, false));
}
...
use com.basis.api.admin.BBjAdminFactory
use com.basis.api.admin.BBjAdminBase
use com.basis.api.admin.BBjAdminDatabase
use com.basis.api.admin.BBjAdminAppDeploymentApplication
use com.basis.api.admin.BBjAdminAppDeploymentResource
use com.basis.api.admin.BBjAdminJRE
use java.net.InetAddress
...
api! = BBjAdminFactory.getBBjAdmin("admin", "admin123")
config! = api!.getRemoteConfiguration()
REM Create a resource entry for a shortcut icon
resource! = config!.createResource()
resource!.setString(BBjAdminAppDeploymentResource.SOURCE_FILE_NAME, "/path/to/image.png")
config!.getResources().add(resource!)
config!.commit()
REM Add a JRE to include for the desktop app (required for desktop apps)
api!.getWebAppServer().addJRE("/path/to/jre/mac-jre-installer.tgz", BBjAdminJRE.OS_MAC)
api!.getWebAppServer().addJRE("/path/to/jre/windows-jre-installer.tgz", BBjAdminJRE.OS_WINDOWS)
api!.getWebAppServer().addJRE("/path/to/jre/linux-jre-installer.tgz", BBjAdminJRE.OS_LINUX)
REM Create the application
newApp! = config!.createApplication()
newApp!.setString(BBjAdminAppDeploymentApplication.NAME, "MyApp")
newApp!.setString(BBjAdminAppDeploymentApplication.PROGRAM, "myapp.bbj")
newApp!.setString(BBjAdminAppDeploymentApplication.CONFIG_FILE, "/path/to/config.bbx")
newApp!.setString(BBjAdminAppDeploymentApplication.WORKING_DIRECTORY, "/path/to/directory")
newApp!.setBoolean(BBjAdminAppDeploymentApplication.EXE_ENABLED, 1)
newApp!.setBoolean(BBjAdminAppDeploymentApplication.BUI_ENABLED, 1)
REM Set the JVMs that will be available to the apps (optional as it can use the defaults added above)
newApp!.setString(BBjAdminAppDeploymentApplication.MAC_JVM, "mac-jre-installer.tgz")
newApp!.setString(BBjAdminAppDeploymentApplication.WINDOWS_JVM, "win-jre-installer.tgz")
newApp!.setString(BBjAdminAppDeploymentApplication.WINDOWS_32_JVM, "win32-jre-installer.tgz")
newApp!.setString(BBjAdminAppDeploymentApplication.LINUX_JVM, "linux-jre-installer.tgz")
REM Set the shortcut icon to the resource we created above
newApp!.setString(BBjAdminAppDeploymentApplication.SHORTCUT_ICON_RESOURCE_ID, resource!.getString(BBjAdminAppDeploymentResource.RESOURCE_ID))
newApp!.commit()
apps! = config!.getApplications()
for i = 0 to apps!.size() - 1
app! = apps!.get(i)
print app!.getString(BBjAdminAppDeploymentApplication.NAME)
print app!.getBuiUrl(false)
print app!.getExeUrl(BBjAdminAppDeploymentApplication.PLATFORM_MAC, false)
next i
...
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_NAME_DASH_A |
static java.lang.String |
APPLICATION_USER |
static java.lang.String |
BUI_ENABLED |
static java.lang.String |
CLASSPATH |
static java.lang.String |
CLIENT_RESPONSE_TIMEOUT |
static java.lang.String |
CLIENT_RESPONSE_TIMEOUT_USE_DEFAULT |
static java.lang.String |
CONFIG_FILE |
static java.lang.String |
CONTEXT |
static java.lang.String |
CSS_RESOURCE_ID |
static java.lang.String |
DEMO |
static java.lang.String |
DESKTOP_TERMINAL |
static java.lang.String |
DEVELOPMENT_MODE |
static java.lang.String |
DEVELOPMENT_MODE_USE_DEFAULT |
static java.lang.String |
DISALLOW_CONSOLE |
static java.lang.String |
DISALLOW_CONSOLE_USE_DEFAULT |
static java.lang.String |
EXE_ENABLED |
static java.lang.String |
HOST_OVERRIDE |
static java.lang.String |
INF |
static java.lang.String |
INTERPRETER_USER |
static java.lang.String |
LINUX_JVM |
static java.lang.String |
LOAD_IMAGE_RESOURCE_ID |
static java.lang.String |
LOCAL_PORT |
static java.lang.String |
LOOK_AND_FEEL |
static java.lang.String |
MAC_JVM |
static java.lang.String |
MANAGE_BROWSER_HISTORY |
static java.lang.String |
MANAGE_BROWSER_HISTORY_USE_DEFAULT |
static java.lang.String |
NAME |
static java.lang.String |
OMIT_BASIS_CSS |
static java.lang.String |
OMIT_BASIS_CSS_USE_DEFAULT |
static java.lang.String |
PLATFORM_LINUX |
static java.lang.String |
PLATFORM_MAC |
static java.lang.String |
PLATFORM_WIN32 |
static java.lang.String |
PLATFORM_WIN64 |
static java.lang.String |
PROGRAM |
static java.lang.String |
QUIET |
static java.lang.String |
REMOTE_HOST |
static java.lang.String |
REMOTE_HOST_DESKTOP |
static java.lang.String |
REMOTE_PORT |
static java.lang.String |
REMOTE_PORT_DESKTOP |
static java.lang.String |
SECURE |
static java.lang.String |
SECURE_DESKTOP |
static java.lang.String |
SECURE_DESKTOP_USE_DEFAULT |
static java.lang.String |
SECURE_USE_DEFAULT |
static java.lang.String |
SHORTCUT_DESCRIPTION |
static java.lang.String |
SHORTCUT_ICON_RESOURCE_ID |
static java.lang.String |
SHORTCUT_NAME |
static java.lang.String |
SHOW_BROWSER_WARNING |
static java.lang.String |
SHOW_BROWSER_WARNING_USE_DEFAULT |
static java.lang.String |
SHOW_CONFIRM_CLOSE_DIALOG |
static java.lang.String |
SHOW_CONFIRM_CLOSE_DIALOG_USE_DEFAULT |
static java.lang.String |
TCPS_HEARTBEAT |
static java.lang.String |
TCPS_PRELOAD |
static java.lang.String |
TCPS_TIMEOUT |
static java.lang.String |
TERMINAL |
static java.lang.String |
WINDOWS_32_JVM |
static java.lang.String |
WINDOWS_JVM |
static java.lang.String |
WORKING_DIRECTORY |
Modifier and Type | Method and Description |
---|---|
BBjAdminList<java.lang.String> |
getArguments()
Returns the list of the program arguments for this application.
|
java.lang.String |
getBuiUrl(boolean ssl)
Generates and returns a URL for the application that can be used to run
the application from a Web browser.
|
BBjAdminList<BBjAdminProperty> |
getDescriptiveProperties()
Used primarily by GUI applications like the Enterprise Manager to
dynamically generate an admin UI.
|
java.lang.String |
getExeUrl(java.lang.String platform,
boolean ssl)
Generates and returns a URL for the application that can be used to download
an executable launcher for the application to be run from a remote desktop.
|
BBjAdminList<java.lang.String> |
getJavaArguments()
Returns the list of the Java command line arguments for this application.
|
void |
setDescriptiveProperties(BBjAdminList<BBjAdminProperty> p_descriptiveProps)
Used primarily by GUI applications like the Enterprise Manager to
dynamically generate an admin UI.
|
getChangedProperties, getClearedProperties, getOriginalProperties
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
commit, rollback
static final java.lang.String APPLICATION_USER
static final java.lang.String INTERPRETER_USER
static final java.lang.String APPLICATION_NAME_DASH_A
static final java.lang.String CLASSPATH
static final java.lang.String CLIENT_RESPONSE_TIMEOUT
static final java.lang.String CLIENT_RESPONSE_TIMEOUT_USE_DEFAULT
static final java.lang.String CONFIG_FILE
static final java.lang.String CONTEXT
static final java.lang.String CSS_RESOURCE_ID
static final java.lang.String DEVELOPMENT_MODE
static final java.lang.String DEVELOPMENT_MODE_USE_DEFAULT
static final java.lang.String DISALLOW_CONSOLE
static final java.lang.String DISALLOW_CONSOLE_USE_DEFAULT
static final java.lang.String LOAD_IMAGE_RESOURCE_ID
static final java.lang.String MANAGE_BROWSER_HISTORY
static final java.lang.String MANAGE_BROWSER_HISTORY_USE_DEFAULT
static final java.lang.String NAME
static final java.lang.String OMIT_BASIS_CSS
static final java.lang.String OMIT_BASIS_CSS_USE_DEFAULT
static final java.lang.String PROGRAM
static final java.lang.String QUIET
static final java.lang.String SECURE
static final java.lang.String SECURE_DESKTOP
static final java.lang.String SECURE_USE_DEFAULT
static final java.lang.String SECURE_DESKTOP_USE_DEFAULT
static final java.lang.String SHORTCUT_DESCRIPTION
static final java.lang.String SHORTCUT_ICON_RESOURCE_ID
static final java.lang.String SHORTCUT_NAME
static final java.lang.String SHOW_BROWSER_WARNING
static final java.lang.String SHOW_BROWSER_WARNING_USE_DEFAULT
static final java.lang.String SHOW_CONFIRM_CLOSE_DIALOG
static final java.lang.String SHOW_CONFIRM_CLOSE_DIALOG_USE_DEFAULT
static final java.lang.String TERMINAL
static final java.lang.String DESKTOP_TERMINAL
static final java.lang.String WORKING_DIRECTORY
static final java.lang.String EXE_ENABLED
static final java.lang.String BUI_ENABLED
static final java.lang.String REMOTE_HOST
static final java.lang.String REMOTE_PORT
static final java.lang.String REMOTE_HOST_DESKTOP
static final java.lang.String REMOTE_PORT_DESKTOP
static final java.lang.String LOCAL_PORT
static final java.lang.String LOOK_AND_FEEL
static final java.lang.String INF
static final java.lang.String TCPS_PRELOAD
static final java.lang.String TCPS_TIMEOUT
static final java.lang.String TCPS_HEARTBEAT
static final java.lang.String HOST_OVERRIDE
static final java.lang.String PLATFORM_MAC
static final java.lang.String PLATFORM_WIN32
static final java.lang.String PLATFORM_WIN64
static final java.lang.String PLATFORM_LINUX
static final java.lang.String MAC_JVM
static final java.lang.String WINDOWS_JVM
static final java.lang.String WINDOWS_32_JVM
static final java.lang.String LINUX_JVM
static final java.lang.String DEMO
BBjAdminList<java.lang.String> getArguments() throws BBjAdminException
BBjAdminException
BBjAdminList<java.lang.String> getJavaArguments() throws BBjAdminException
BBjAdminException
BBjAdminList<BBjAdminProperty> getDescriptiveProperties() throws BBjAdminException
BBjAdminException
java.lang.String getBuiUrl(boolean ssl) throws BBjAdminException
BBjAdminException
java.lang.String getExeUrl(java.lang.String platform, boolean ssl) throws BBjAdminException
platform
- One of the following platform constants:
PLATFORM_MAC, PLATFORM_WIN32, PLATFORM_WIN64, PLATFORM_LINUXssl
- True for an SSL URLBBjAdminException
void setDescriptiveProperties(BBjAdminList<BBjAdminProperty> p_descriptiveProps) throws BBjAdminException
BBjAdminException