Package com.basis.api.admin.internal
Class BBjAdminRemoteWrapper
java.lang.Object
com.basis.api.admin.internal.BBjAdminRemoteWrapper
- All Implemented Interfaces:
BBjAdminBase,BBjAdminCommitPropertyWriter,BBjAdminCommitWriter,BBjAdminPropertyReader,BBjAdminPropertyWriter,Serializable,Remote
- See Also:
-
Field Summary
Fields inherited from interface com.basis.api.admin.BBjAdminBase
FILTER_OP_CONTAINS, FILTER_OP_EQ, FILTER_OP_GT, FILTER_OP_LT, FILTER_OP_REGEX, LOG, OPEN_FILE_FILTER_ADVISORY, OPEN_FILE_FILTER_EXTRACTED, OPEN_FILE_FILTER_FILENAME, OPEN_FILE_FILTER_IP_ADDRESS, OPEN_FILE_FILTER_LOCKED, OPEN_FILE_FILTER_MESSAGE, OPEN_FILE_FILTER_OPEN_ID, OPEN_FILE_FILTER_OPEN_TYPE, OPEN_FILE_FILTER_READ_ONLY, OPEN_FILE_FILTER_USER, PERMISSION_ADD_USER, PERMISSION_ALLOW_ADMIN, PERMISSION_ALLOW_ALL, PERMISSION_ASYNCH_TRIGGER, PERMISSION_ATTACH_EXISTING_DB, PERMISSION_AUDITING, PERMISSION_CLOSE_FILES, PERMISSION_CONNECTION_POOLS, PERMISSION_COPY_JOBS, PERMISSION_CREATE_NEW_DB, PERMISSION_CREATE_NEW_TRIGGER, PERMISSION_DELETE_DB, PERMISSION_DELETE_USER, PERMISSION_DOCUMENT_INDEXES, PERMISSION_EMAIL_SERVICES, PERMISSION_JDBC_CONNECTIONS, PERMISSION_METRICS, PERMISSION_OPEN_FILES, PERMISSION_PROCESSES, PERMISSION_REPLICATION, PERMISSION_SCHEDULING, PERMISSION_SERVER_CONFIG, PERMISSION_SET_PASSWORDS, PERMISSION_SET_PERMISSIONS, PERMISSION_TABLE_ANALYSIS_QUEUE, SUPPORT_UPLOAD_COMPANY, SUPPORT_UPLOAD_SENDER_EMAIL, SUPPORT_UPLOAD_SUPPORT_INCIDENT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabortSupportUploadJob(String p_uploadId) Cancels the specified support upload job.voidacceptLdapCertificate(String p_certificate) Called to accept the LDAP certificate and add it to the accepted certificate list.voidAdd the specified replication job to the list of running jobs.voidaddType(String p_property, BBjAdminType p_type) Adds a type for the specified property if this object was created with the ability to add new properties.Create a new user (committed).attachDatabaseOnDisk(String p_name, String p_dictionary) Attach to an existing database on disk.attachDatabaseOnDisk(String p_name, String p_dictionary, boolean p_errorOnBadDictionary) Attach to an existing database on disk.booleanIs the user allowed to add new properties?booleancanClear()Is the user allowed to clear properties?voidchangePassword(String p_user, String p_password) Change user password.booleancheck2FACode(String p_secretKey, String p_code, long p_validitySeconds) Checks to see if the specified code is valid given the specified secret key and the validity in seconds used to generate the secret key.booleancheckUserPermission(int p_permission) Returns true if the user logged into the API has the specified permission.booleancheckValueEqual(String p_property, Object p_value) Is the provided value equal to the current value (if any)?voidclear()Clear all properties that are not read only.voidClear the BBj program cache.voidClears the file open statistics gathered when a file is opened.booleanclearProperties(Set<String> p_properties) Clear a set of properties.booleanclearProperty(String p_property) Clear out the value of a property.voidcommit()Commit all property changes.voidSpecify a specific commit message that will accompany the commit to the configuration Git archive.booleanDoes a given property exist?booleanDo any of a set of properties exist?voidconvertFiles(String[] p_files, int p_targetType) Converts the list of full paths to files on the BBjServices server to the specified file type.voidcopyDictionaryToTarget(String p_sourceDb, String p_targetDirectory, String p_targetHost, int p_targetPort, boolean p_targetSsl, String p_targetAuthToken) Copies all the data dictionary files from the source database to the target directory.createAsynchTriggerJob(String p_name, String p_address, int p_port, double p_kbps, boolean p_ssl, String p_user, String p_pwd, String p_workingDir, String p_config, boolean p_useDefaultAlias, String p_writeProgram, String p_removeProgram) Creates a new asynchronous trigger job.createAsynchTriggerJob(String p_name, String p_user, String p_pwd, String p_workingDir, String p_config, boolean p_useDefaultAlias, String p_writeProgram, String p_removeProgram) Creates a new asynchronous trigger job that will run on the same machine.createAuditReplicationJob(String p_name, String p_dbRoot, boolean p_synchronous, int p_rolloverType, int p_rolloverFrequency) Creates a new filesystem audit job.<E> BBjAdminList<E>Create a new BBjAdminList instance.<K,V> BBjAdminMap<K, V> Create a BBjAdminMap.<E> BBjAdminSet<E>Create a BBjAdminSet.createBBjReplicationJob(String p_name, boolean p_synchronous) Creates a new BBj replication job.createBBjReplicationJob(String p_name, String p_address, int p_port, boolean p_ssl, String p_user, String p_pwd, boolean p_synchronous) Creates a new BBj replication job with the specified configuration info.createBBjReplicationJob(String p_name, String p_address, int p_port, double p_kbps, boolean p_ssl, String p_user, String p_pwd, boolean p_synchronous) Creates a new BBj replication job with the specified configuration info.createBBjReplicationJob(String p_name, String p_address, int p_port, double p_kbps, boolean p_ssl, String p_user, String p_pwd, boolean p_synchronous, String p_eventHandlerProgram, String p_eventHandlerUser, String p_eventHandlerPassword, String p_eventHandlerConfig, String p_eventHandlerWorkingDir, String p_eventHandlerClasspath, String p_eventEmailService, String p_eventEmailRecipients) Creates a new BBj replication job with the specified configuration info.Create a new BUI application configuration.createDatabaseOnDisk(String p_name, String p_dictionary, BBjAdminDatabase.DatabaseType p_type) Create a new database and create the data dictionary files.voidcreateDirectory(String p_fullPath, boolean p_recursive) Creates the specified directory on the server.createDocumentIndex(String p_name, String p_type) Creates a new BBjAdminDocumentIndex with the given name.createDownloadPackage(List<String> p_files) Used to combine the specified list of files into a zip file that can be downloaded from the returned URL.Create an empty OnlineCopyJob.createOnlineCopyJobConfig(String p_file) Create an OnlineCopyJob from a file.Create a new remote application configuration.Create an empty server configuration of the specified type.Creates a new SQL replication job.Returns a new instance of a Web service.voiddropDatabase(String p_name, boolean p_deleteAllFiles) Drop a database by name, optionally deleting all files.voiddropDocumentIndex(String p_name) Drops the specified document index.voiddropSecurityGroup(String p_group) Drops the specified security group (committed).voidDrop a user (committed).voiddumpHeap()Dump the memory heap to the log.voidDump the properties currently in memory to a file in the log directory.voidDump JVM threads to the log.voidduplicateDatabaseConfig(String p_sourceDb, String p_newName) Creates a copy of the specified database configuration.voidexportReplicationJob(BBjAdminReplicationJob p_job, String p_filename) Exports the replication job in a format that can then be read in using the import() method.intforceCloseOpenFiles(String p_filenameMatchRegex, Map<String, String> p_modeMatchRegex) Forces any open files matching the p_filenameMatchRegex value (null means ignore this match) and/or open files with MODE information matching p_modeMatchRegex.Generates a secret key to use for TOTP and the Google Authenticator app.generateKeyPair(String p_user, String p_description) Generates a public/private key pair.voidgenerateWebStartCertificate(String p_company, String p_host, int p_port) Tells BBj Services to have BASIS generate the Web Start certificates on the server.get2FACode(String p_secretKey, long p_validitySeconds) Generates a new TOTP code based on the secret key and validity in seconds.getAbsolutePath(String p_filename) Returns the absolute path for the specified file or directory as a string.Returns all the information about active authorization tokens.Returns a list of BBjAdminLicenseFeatureInfo object for each feature the license uses.Returns a list of all the asynchronous trigger jobs currently configured on the system.Returns a list of all the asynchronous trigger job targets on this machine.getAuditDatabase(String p_dbRoot) Returns a list of all the audit jobs currently configured on the server.Returns a list of all the audit target currently on this server.Get the autorun configuration.Returns a list of the system permissions that are available on the server.getBBjFile(String p_parent) Returns a BBjAdminBBjFile for the specified full path.byte[]getBBjFileRecord(String p_path, int p_recNum) Reads the record at the specified record location and returns the contents of the record as a byte[].getBBjProcess(String p_id) Returns the BBjAdminBBjProcess for the specified ID.Get the set of BBj processes (read-only).Returns a Map containing all the properties and their values found in the BBj.properties file.Returns a read-only copy of the contents of the BBj.properties file.booleangetBoolean(String p_property) Get a boolean value for a property.Returns the configuration object for managing the BUI applications and settings on the server.Get the changed properties.getClasspath(String p_cpName) Returns the list of items that make up the specified classpath.Returns a list of the session specific classpaths on the server.Get the set of cleared properties.getClientBBjProcess(String p_id) Returns the BBjAdminBBjProcess for the specified ID.Get the set of BBj processes (read-only).Get the list of open files (read-only).getClientOpenFiles(int p_field, int p_operator, String p_value) Get the list of open files (read-only).Returns a list of the replication jobs currently running on the system.getConfigCommitDiffText(String p_commitId1, String p_commitId2) Returns the Git diff patch text between two commits.getConfigCommits(int p_startDate, int p_endDate) Returns a list of the config directory commits that have occurred during the optional range of dates.Returns an object which provides access to server configuration settings.getConnectionPool(String p_poolName) Returns the specified connection pool for administration purposes.Returns a list of available connection pools for administration purposes.getDatabase(String p_name) Get a single existing database.Get the names of all accessible databases.Get all accessible databases.getDocumentIndex(String p_name) Returns a document index for the specified name.Returns a list of all the document indexes available on the server.doubleGet a double value for a property.getEmailService(String p_name) Get the email service with the specified name.Returns a list of the currently configured email services on the server.Returns a list of all the currently enabled replication jobs.The event manager manages the system events that may occur on the server.Returns a BBjAdminFile for the specified full path.Returns the file open statistics gathered when a file is opened.longgetFreeSpace(String p_path) Returns the number of free bytes availableReturns a list of the currently running index builder jobs on the server.intGet an integer value for a property.getJarIndexJars(String p_jarFilePath) Returns a list of the jars referenced in a JarIndex if one is present in the specified jar file.getJavaInfo(String p_javaHome, boolean p_server) Returns the information about the Java Virtual Machine located at the specified location.Returns the configuration object for managing the JNLP applications and settings on the server.getKeyTemplateForFile(String p_filename, int p_keyNum) Returns a string template (if one can be found) for the specified data file defining the layout of the key specified in p_keyNum.Returns the configuration information for the BBj Language Server.getLicenseFeatureInfo(String p_feature) Returns the license information for the specified feature.Returns information about the license used by BBjServices.Get a BBjAdminList value for a property.Returns the Locale as a string.longGet a long value for a property.getMemoryUsageData(String p_alternateLocation) Returns a list of the trigger directories that are currently mounted by the server.Get all currently running Online Copy Jobs.getOpenFile(String p_id) Get the open file (read-only) with the specified ID.Get the set of open files (read-only).Get the original properties list.getOSFiles(BBjAdminClientOSFile p_parent, String[] p_filenameFilter, Date p_modifiedFilterStart, Date p_modifiedFilterEnd) Returns a list of files from the operating system.Get the password of the user who got this BBjAdmin instance.Get a copy of all properties.Returns a list of all the public key info available on the server for all users.getPublicKeys(String p_username) Returns a list of all the public key info available on the server for the specified user.Set the complete set of read-only properties.Returns the configuration object for managing the remote-launch applications (including BUI) and settings on the server.getReplicationJob(String p_uuid) Returns the replication job running on the system that has the specified UUID.Returns a list of the replication jobs currently running on the system.Returns a list of the replication targets on the system.getRoots()Returns a list of all the roots or drives on the machine.Returns a list of available security group names.Returns a list of available security groups.Get the server configuration.Get the server configurations for a single type of server.Get the services configurations.getSingleUserPermissions(String p_user) Get the permissions for a single user.Get the set of SQL connections (read-only).Returns the time that the currently running BBjServices was started as a formatted timestamp string including the timezone.Returns a list of any startup exceptions that occured while BBj Services was attempting to start.Get a String value for a property.getSupportUploadJob(String p_uploadId) Returns an instance of BBjAdminSupportUploadJob containing the information about the current status of the specified upload job ID.Returns a list of all the currently running support upload jobs.getSystemProperty(String p_property, String p_default) Returns a system property from the server.Returns a list of the currently queued and/or running table analysis jobs on the server.Returns a list of all the currently configured task groups on the server.getTemplateForFile(String p_filename) Returns a string template (if one can be found) for the specified data file.getTextFileContents(String p_fullPath) Returns the contents of the specified file from the remote machine as a string.getTokenInfo(String p_tokenOrTokenId) Takes the specified token and returns the BBjAdminTokenInfo object containing the payload for the token.Returns the authorization token that was used to acquire this connection to the Admin API.longgetTotalSpace(String p_path) Returns the total space available on the specified root or drive.getTriggers(String p_filename) Get the trigger configuration for a file.Get the value type of a property.getTypes()Get a copy of all of the type information.getUser()Get the name of the user who got this BBjAdmin instance.getUserInfo(String p_user) Returns additional user info for the specified user.Get the names of users.Get the permissions for all users.getUsers()Returns a list of all users including their additional info such as name, email, etc.Get a object value for a property.Get the Web App Server configuration.getWebService(String p_name) Returns the BBjAdminWebService instance for the specified service, or null if no service by that name exists.Returns a list of available web services.voidhardResetConfigCommit(String p_id, String p_name, String p_email) Performs a hard reset of the configuration, returning it to the specified commit ID state.booleanHave properties been changed?importReplicationJob(String p_filename, String p_user, String p_password) Loads the contents of a replication job export file into the object.voidinvalidateToken(String p_tokenOrTokenId) Invalidates the specified token.booleanisAddressSameAsServer(String p_address) Returns true if the specified host address resolves to the same address as the machine running the Admin Server.booleanAsks the server if it is currently set to admin only mode.Returns whether FULLTEXT indexes are allowed on this BBj Services installation.booleanReturns true if the server side OS is MS Windows of some type.booleanisReadOnly(String p_property) Is a given property read-only.Asks the server if it is allowed to peform replication jobs.booleanAsks the server if it is currently RUNNING in admin only mode.booleanisSAM()Checks to verify that the server has a valid Software Asset Management license available.booleanisServiceRunning(BBjAdminServerConfig p_config) Returns true if the specified service is running.booleanReturns true or false as to whether the SQL engine server is using SSL.booleanChecks to see if the specified user is using TOTP 2 factor authentication.booleanReturns true if the WebUI functionality was installed with BBj.booleanReturns true if the WebUI functionality is enabled on the server.booleanReturns true if the BBjServices installation has a valid WEBUI license.booleanChecks if Version 3 WebServices are available.jsonExecute(String p_json) Executes some server-side processing defined by the supplied JSON string.voidmigrateToEnhancedDatabase(String p_sourceDictionary, String p_destinationDatabase, String p_destinationDirectory) Creates a new data dictionary in the specified format at the specified destination location using the dictionary at p_sourceDictionary.voidmountTriggerDirectory(String p_fullPath) Mounts a directory to be listed when asking for a list of mounted trigger directories.Returns a new connection pool definition.newDatabaseInstance(Map<String, Object> p_properties) Returns a new, empty database instance.Creates and returns a new Email Service that provides the ability to send email messages using the Admin API or easily configure various parts of the system to send notifications via email such as replication problems, etc.Returns a new, blank LDAP search instance.newSecurityGroup(String p_groupName) Returns a new SecurityGroup instance.newTask(BBjAdminTask.TaskType p_type) Returns a new task of the specified type.Returns a new task group from the server.voidnotifyAllProcesses(String p_message, String p_title) Sends a notification to all running processes where it will pop up a message box to display to display the provided message and title to the user of that process.voidnotifyProcess(int p_id, String p_message, String p_title) Sends a notification to the specified process where it will pop up a message box to display to display the provided message and title to the user of that process.voidreceiveDictionaryFiles(byte[] p_bytes, String p_targetDirectory) voidThis method can be called to reconfigure the services.voidrefresh()Refresh properties that may have changed on the server, locally changed properties will not be overridden.voidrelease()Release resources held.voidReload the Database configuration file.voidremoveAllPublicKeys(String p_username) Removes all the public keys for the specified user.voidremoveAsynchTriggerJob(String p_uuid) Removes the asynchronous trigger job identified by the specified UUID or name.voidremoveBuiApplication(String p_name) Removes the specified BUI application configuration.voidremoveConnectionPool(String p_poolName) Removes the specified connection pool from the server.voidremoveEmailService(String p_name) Removes the specified email service configuration from the server.voidremovePublicKey(String p_username, String p_publicKeyId) Removes the specified public key if present.voidremoveReplicationJob(String p_uuid, boolean p_erase) Removes the replication job identified by the specified UUID or name.voidremoveReplicationTarget(String p_uuid, boolean p_erase) Removes the replication target identified by the specified UUID.voidremoveService(BBjAdminServerConfig p_service) Removes the specified service configuration.voidremoveTaskGroup(BBjAdminTaskGroup p_group) Removes the specified task group from the server.voidremoveTriggers(String p_filename) Removes the trigger from the specified file.voidremoveWebService(String p_name) Removes the specified web service from the server.renewToken(long p_duration) Renews the current token for that Admin API connection setting the duration of validity to the value specified in p_duration.renewToken(long p_duration, boolean p_invalidateOld) Renews the current token for that Admin API connection setting the duration of validity to the value specified in p_duration.renewToken(String p_token, long p_duration) Renews the current token for that Admin API connection setting the duration of validity to the value specified in p_duration.voidrestartBBjServices(boolean p_waitForClients) Tells the remote BBj Services to shutdown and restart.voidrollback()Roll back all property changes.booleansend2FACode(String p_user) Sends the specified user a 2-factor authentication code via email.voidsend2FASetupEmail(String p_subject, Set<String> p_usernames) Once 2-factor authorization is enabled in the EM or Admin API, this call will send an email to each user in the specified list of usernames with any setup instructions (e.g.voidsetAdminOnlyMode(boolean p_adminOnly) Tells the server to set itself into admin only mode the next time it is restarted.voidsetAutoRenewToken(boolean p_autorenew) voidsetAutorunConfiguration(BBjAdminAutorun p_autorun) Set the autorun configuration (not committed).voidsetBoolean(String p_property, boolean p_value) Set the boolean value of a property.voidsetClasspath(String p_cpName, List<String> p_values) Sets the list of items that make up the specified named classpath.voidSet the double value of a property.voidSet the integer value of a property.voidUpdates the configuration for the BBj Language Server.voidsetList(String p_property, BBjAdminList p_value) Set the BBjAdminList value of a property.voidSet the long value of a property.voidsetProperties(Map<String, Object> p_properties) Set properties as a group from a Map.voidsetReplicationJobEnabled(String p_replicationID, boolean p_enabled) Enables/Disables the specified replication job.voidsetServerConfigurations(BBjAdminMap<BBjAdminServer.ServerType, BBjAdminSet<BBjAdminServer>> p_config) Set the server configuration (not committed).voidsetServerConfigurations(BBjAdminServer.ServerType p_type, BBjAdminSet<BBjAdminServer> p_servers) Set the server configurations for a single type of server (not committed).voidsetServices(List<BBjAdminServerConfig> p_configs) Sets the services configurations.voidsetSingleUserPermissions(BBjAdminUserPermissions p_permissions) Set an individual user's permissions (not committed).voidSet the String value of a property.voidsetTableAnalysisEnabled(String p_database, boolean p_enabled) Enables or disabled the ability to perform a table analysis on the specified database.voidsetTriggers(BBjAdminTriggers p_triggers) Set the trigger configuration for a file (not committed).voidsetUser2FASettings(String p_user, String p_secretKey, boolean p_enabled) Enables/disables TOTP 2 factor authentication for the specified user.voidsetUserInfo(BBjAdminUser p_info) Sets additional user info such as first/last/middle name, email, text number, etc.voidsetUserInfo(List<BBjAdminUser> p_infos) Sets additional user info such as first/last/middle name, email, text number, etc.voidsetUserPermissions(BBjAdminSet<BBjAdminUserPermissions> p_permissions) Set permissions for a whole set of users (not committed).voidSet the object value of a property.voidshutdownBBjServices(boolean p_waitForClients) Tells BBj Services to shutdown.voidstartDatabaseReloadHelper(String p_dbName) voidStart the BBj Language Server using the current configuration.Start an online copy job.voidstartService(BBjAdminServerConfig p_config) Starts the specified service if not running.voidStop the BBj Language Server.voidstopService(BBjAdminServerConfig p_config) Stops the specified service if running.voidtestJdbcConnection(String p_driver, String p_url, String p_user, String p_password) Tests connecting with the specified JDBC driver, URL, user and password from the server.voidtestRemoteFilesystemAccessibility(String p_host, int p_port, boolean p_ssl, String p_user, String p_password) Called to test and see if the server can connect to the specified remote filesystem.voidunmountTriggerDirectory(String p_fullPath) Unmounts a trigger directory.voidUnpin all programs.voidupdateEventManager(BBjAdminEventManager p_manager) voidUpdates the replication job on the server with the same ID, with the information in the specified replication job.uploadSupportFiles(BBjAdminSet<String> p_files, BBjAdminMap<String, String> p_properties) Send the specified list of files to support.voiduseExistingWebStartCertificate(String p_keystore, String p_keystorePassword, String p_privateKey, String p_privateKeyPassword) Configures BBj Services to use the specified certificate for Web start applications.booleanvalidate2FACode(String p_code) Validates the specified 2FA code for the user who created this Admin API object.
-
Constructor Details
-
BBjAdminRemoteWrapper
-
-
Method Details
-
addReplicationJob
Description copied from interface:BBjAdminBaseAdd the specified replication job to the list of running jobs. The job will also be started.- Specified by:
addReplicationJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
addType
Description copied from interface:BBjAdminPropertyWriterAdds a type for the specified property if this object was created with the ability to add new properties.- Specified by:
addTypein interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException
-
addUser
Description copied from interface:BBjAdminBaseCreate a new user (committed).- Specified by:
addUserin interfaceBBjAdminBase- Throws:
BBjAdminException
-
attachDatabaseOnDisk
public BBjAdminDatabase attachDatabaseOnDisk(String p_name, String p_dictionary) throws BBjAdminException Description copied from interface:BBjAdminBaseAttach to an existing database on disk. An existing database consists of a data dictionary and the table's data files. In this step you only specify the data dictionary location. To set the location of the data files, set the DATABASE property on the BBjAdminDatabase instance.- Specified by:
attachDatabaseOnDiskin interfaceBBjAdminBase- Parameters:
p_name- Name of the new database.p_dictionary- Existing dictionary directory for the new database.- Returns:
- A new BBjAdminDatabase instance with the given name and dictionary location.
- Throws:
BBjAdminException
-
attachDatabaseOnDisk
public BBjAdminDatabase attachDatabaseOnDisk(String p_name, String p_dictionary, boolean p_errorOnBadDictionary) throws BBjAdminException Description copied from interface:BBjAdminBaseAttach to an existing database on disk. An existing database consists of a data dictionary and the table's data files. In this step you only specify the data dictionary location. To set the location of the data files, set the DATABASE property on the BBjAdminDatabase instance.- Specified by:
attachDatabaseOnDiskin interfaceBBjAdminBase- Parameters:
p_name- Name of the new database.p_dictionary- Existing dictionary directory for the new database.p_errorOnBadDictionary- True if you want the method to error if the specified dictionary location does not contain a valid data dictionary.- Returns:
- A new BBjAdminDatabase instance with the given name and dictionary location.
- Throws:
BBjAdminException
-
canAddNewProperties
Description copied from interface:BBjAdminPropertyWriterIs the user allowed to add new properties?- Specified by:
canAddNewPropertiesin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
canClear
Description copied from interface:BBjAdminPropertyWriterIs the user allowed to clear properties?- Specified by:
canClearin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
changePassword
Description copied from interface:BBjAdminBaseChange user password. This call immediately changes the user's password and does not require commit() to be called.- Specified by:
changePasswordin interfaceBBjAdminBase- Parameters:
p_user- User to change the password for.p_password- New password for the user.- Throws:
BBjAdminException
-
checkUserPermission
public boolean checkUserPermission(int p_permission) Description copied from interface:BBjAdminBaseReturns true if the user logged into the API has the specified permission.- Specified by:
checkUserPermissionin interfaceBBjAdminBase
-
checkValueEqual
Description copied from interface:BBjAdminPropertyReaderIs the provided value equal to the current value (if any)?- Specified by:
checkValueEqualin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
clear
Description copied from interface:BBjAdminPropertyWriterClear all properties that are not read only.- Specified by:
clearin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException
-
clearCache
Description copied from interface:BBjAdminBaseClear the BBj program cache.- Specified by:
clearCachein interfaceBBjAdminBase- Throws:
BBjAdminException
-
clearProperties
Description copied from interface:BBjAdminPropertyWriterClear a set of properties.- Specified by:
clearPropertiesin interfaceBBjAdminPropertyWriter- Parameters:
p_properties- Property names.- Returns:
- Whether any of the properties has a non-null value.
- Throws:
BBjAdminException
-
clearProperty
Description copied from interface:BBjAdminPropertyWriterClear out the value of a property.- Specified by:
clearPropertyin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.- Returns:
- Whether the property existed.
- Throws:
BBjAdminException
-
commit
Description copied from interface:BBjAdminCommitWriterCommit all property changes.- Specified by:
commitin interfaceBBjAdminCommitWriter- Throws:
BBjAdminException
-
commit
Description copied from interface:BBjAdminBaseSpecify a specific commit message that will accompany the commit to the configuration Git archive.- Specified by:
commitin interfaceBBjAdminBase- Parameters:
p_message- Message to accompany the commit.- Throws:
BBjAdminException
-
contains
Description copied from interface:BBjAdminPropertyReaderDo any of a set of properties exist?- Specified by:
containsin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
contains
Description copied from interface:BBjAdminPropertyReaderDoes a given property exist?- Specified by:
containsin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
createAsynchTriggerJob
public BBjAdminAsynchTriggerJob createAsynchTriggerJob(String p_name, String p_address, int p_port, double p_kbps, boolean p_ssl, String p_user, String p_pwd, String p_workingDir, String p_config, boolean p_useDefaultAlias, String p_writeProgram, String p_removeProgram) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new asynchronous trigger job. See getAsynchTriggerJobs() for complete details on asynchronous trigger jobs.- Specified by:
createAsynchTriggerJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the job to display in the Enterprise Manager.p_address- Host name or IP address of the BBj Services installation to use as a target for this job.p_port- Port number of the Filesystem Server running on the specified BBj Services installation.p_kbps- Bandwidth in KBPS that the system should be allowed to use for processing job operations. If zero, it will use all that it needs to.p_ssl- True if the Filesystem Server of the target is configured to use SSL or false otherwise.p_user- User to use to connect to the job's target machine.p_pwd- Password for the user.p_workingDir- Optional working directory to use when executing the configured BBj write/remove programs.p_config- Optional location of the config.bbx file used by the interpreter running the BBj write/remove programs.p_writeProgram- Absolute path to the location of the program to be executed when any write operation occurs on a monitored file.p_removeProgram- Absolute path to the location of the program to be executed when any remove operation occurs on a monitored file.- Returns:
- Instance of a new BBjAdminAsynchTriggerJob.
- Throws:
BBjAdminException
-
createAsynchTriggerJob
public BBjAdminAsynchTriggerJob createAsynchTriggerJob(String p_name, String p_user, String p_pwd, String p_workingDir, String p_config, boolean p_useDefaultAlias, String p_writeProgram, String p_removeProgram) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new asynchronous trigger job that will run on the same machine. See getAsynchTriggerJobs() for complete details on asynchronous trigger jobs.- Specified by:
createAsynchTriggerJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the job to display in the Enterprise Manager.p_user- User to use to connect to the job's target machine.p_pwd- Password for the user.p_workingDir- Optional working directory to use when executing the configured BBj write/remove programs.p_config- Optional location of the config.bbx file used by the interpreter running the BBj write/remove programs.p_writeProgram- Absolute path to the location of the program to be executed when any write operation occurs on a monitored file.p_removeProgram- Absolute path to the location of the program to be executed when any remove operation occurs on a monitored file.- Returns:
- Instance of a new BBjAdminAsynchTriggerJob.
- Throws:
BBjAdminException
-
createAuditReplicationJob
public BBjAdminAuditReplicationJob createAuditReplicationJob(String p_name, String p_dbRoot, boolean p_synchronous, int p_rolloverType, int p_rolloverFrequency) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new filesystem audit job. Audit jobs allow you to monitor a list of files and/or directories for changes to files. When a change occurs, that change will be logged to the audit database. See Auditing in the BBj Enterprise Manager documentation for more information.- Specified by:
createAuditReplicationJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the audit job.p_dbRoot- A directory where the audit database will be created. The audit database is a standard BBj database containing special tables that hold the audit data. This location is where the audit database and any subsequent audit databases for this job (when they rollover) will be created.p_synchronous- Always set this to false.p_rolloverType- Rollover type is the when the audit log should rollover. Valid options are in the BBjAdminAuditReplicationJob interface and are: ROLLOVER_NONE, ROLLOVER_DAILY, ROLLOVER_WEEKLY, ROLLOVER_MONTHLY, ROLLOVER_YEARLY.- Returns:
- A new BBjAdminAuditReplicationJob.
- Throws:
BBjAdminException
-
createBBjAdminList
Description copied from interface:BBjAdminBaseCreate a new BBjAdminList instance. Always use this method to create a new BBjAdminList rather than directly using one of its implementation classes.- Specified by:
createBBjAdminListin interfaceBBjAdminBase- Returns:
- New BBjAdminList.
- Throws:
BBjAdminException
-
createBBjAdminMap
Description copied from interface:BBjAdminBaseCreate a BBjAdminMap. Always use this method to create a new BBjAdminMap rather than directly using one of its implementation classes.- Specified by:
createBBjAdminMapin interfaceBBjAdminBase- Returns:
- New BBjAdminMap
- Throws:
BBjAdminException
-
createBBjAdminSet
Description copied from interface:BBjAdminBaseCreate a BBjAdminSet. Always use this method to create a new BBjAdminSet rather than directly using one of its implementation classes.- Specified by:
createBBjAdminSetin interfaceBBjAdminBase- Returns:
- New BBjAdminSet.
- Throws:
BBjAdminException
-
createBBjReplicationJob
public BBjAdminBBjReplicationJob createBBjReplicationJob(String p_name, boolean p_synchronous) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new BBj replication job.- Specified by:
createBBjReplicationJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the replication job.p_synchronous- Whether the job's replication operations should occur synchronously or asynchronously. This value SHOULD ALMOST ALWAYS BE false.- Returns:
- New BBjAdminReplicationJob.
- Throws:
BBjAdminException
-
createBBjReplicationJob
public BBjAdminBBjReplicationJob createBBjReplicationJob(String p_name, String p_address, int p_port, boolean p_ssl, String p_user, String p_pwd, boolean p_synchronous) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new BBj replication job with the specified configuration info. Target is the machine destination for the replicated data while the source is the machine where the data being replicated resides.- Specified by:
createBBjReplicationJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the replication job.p_address- Host name of the target filesystem server to connect to.p_port- Port number for the target filesystem server to connect to. Usually 2000.p_ssl- Whether the target filesystem server you are connecting to uses SSL. Must match the server's configuration.p_user- Username to use to connect to the target filesystem server.p_pwd- Password to use to connect to the target filesystem server.p_synchronous- Whether the job's replication operations should occur synchronously or asynchronously. This value SHOULD ALMOST ALWAYS BE false.- Returns:
- New BBjAdminReplication job.
- Throws:
BBjAdminException
-
createBBjReplicationJob
public BBjAdminBBjReplicationJob createBBjReplicationJob(String p_name, String p_address, int p_port, double p_kbps, boolean p_ssl, String p_user, String p_pwd, boolean p_synchronous) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new BBj replication job with the specified configuration info.- Specified by:
createBBjReplicationJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the replication job.p_address- Host name of the target filesystem server to connect to.p_port- Port number for the target filesystem server to connect to. Usually 2000.p_kbps- Optional way to limit the rate of replication. Kilobits per seconds to send replication operations.p_ssl- Whether the target filesystem server you are connecting to uses SSL. Must match the server's configuration.p_user- Username to use to connect to the target filesystem server.p_pwd- Password to use to connect to the target filesystem server.p_synchronous- Whether the job's replication operations should occur synchronously or asynchronously. This value SHOULD ALMOST ALWAYS BE false.- Returns:
- New BBjAdminReplication job.
- Throws:
BBjAdminException
-
createBuiApplication
Description copied from interface:BBjAdminBaseCreate a new BUI application configuration. Make changes to the application configuration object and then call the commit() method to save the changes.- Specified by:
createBuiApplicationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
createRemoteApplication
Description copied from interface:BBjAdminBaseCreate a new remote application configuration. Make changes to the application configuration object and then call the commit() method to save the changes. This includes BUI and remote-launch exe application.- Specified by:
createRemoteApplicationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
createDatabaseOnDisk
public BBjAdminDatabase createDatabaseOnDisk(String p_name, String p_dictionary, BBjAdminDatabase.DatabaseType p_type) throws BBjAdminException Description copied from interface:BBjAdminBaseCreate a new database and create the data dictionary files. Used for creating a new database entirely from scratch.- Specified by:
createDatabaseOnDiskin interfaceBBjAdminBase- Parameters:
p_name- Name of the new database.p_dictionary- Dictionary directory for the new database data dictionary files. Must be empty.p_type- Type of database to create. Valid types are in BBjAdminDatabase.DatabaseType enum and include LEGACY, ENHANCED, and LINKED.- Returns:
- New BBjAdminDatabase instance.
- Throws:
BBjAdminException
-
createDirectory
Description copied from interface:BBjAdminBaseCreates the specified directory on the server. This uses the BBj Filesystem to create the directory which means it supports using the data server syntax in file names (i.e. /<myhost, port=2100>/mypath)- Specified by:
createDirectoryin interfaceBBjAdminBase- Parameters:
p_fullPath- Full path to data file. Supports BBj data server syntax.p_recursive- True if it should create all parent directories. If false and one of the parent directories does not exist, it will throw an exception.- Throws:
BBjAdminException
-
createOnlineCopyJobConfig
Description copied from interface:BBjAdminBaseCreate an empty OnlineCopyJob. To run the copy job, call the startOnlineCopyJob() method, passing in the BBjAdminOnlineCopyJobConfig instance returned by this method.- Specified by:
createOnlineCopyJobConfigin interfaceBBjAdminBase- Throws:
BBjAdminException
-
createOnlineCopyJobConfig
public BBjAdminOnlineCopyJobConfig createOnlineCopyJobConfig(String p_file) throws BBjAdminException Description copied from interface:BBjAdminBaseCreate an OnlineCopyJob from a file. To run the copy job, call the startOnlineCopyJob() method, passing in the BBjAdminOnlineCopyJobConfig instance returned by this method.- Specified by:
createOnlineCopyJobConfigin interfaceBBjAdminBase- Parameters:
p_file- Name of the file.- Throws:
BBjAdminException
-
createServerConfiguration
public BBjAdminServer createServerConfiguration(BBjAdminServer.ServerType p_type) throws BBjAdminException Description copied from interface:BBjAdminBaseCreate an empty server configuration of the specified type.- Specified by:
createServerConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
createSQLReplicationJob
Description copied from interface:BBjAdminBaseCreates a new SQL replication job.- Specified by:
createSQLReplicationJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
createWebService
Description copied from interface:BBjAdminBaseReturns a new instance of a Web service. Use commit() to save the changes to the web service.- Specified by:
createWebServicein interfaceBBjAdminBase- Throws:
BBjAdminException
-
dropDatabase
Description copied from interface:BBjAdminBaseDrop a database by name, optionally deleting all files.- Specified by:
dropDatabasein interfaceBBjAdminBase- Throws:
BBjAdminException
-
dropSecurityGroup
Description copied from interface:BBjAdminBaseDrops the specified security group (committed). This does not affect any of the users who are members of the group.- Specified by:
dropSecurityGroupin interfaceBBjAdminBase- Throws:
BBjAdminException
-
dropUser
Description copied from interface:BBjAdminBaseDrop a user (committed).- Specified by:
dropUserin interfaceBBjAdminBase- Throws:
BBjAdminException
-
dumpProperties
Description copied from interface:BBjAdminBaseDump the properties currently in memory to a file in the log directory.- Specified by:
dumpPropertiesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
dumpHeap
Description copied from interface:BBjAdminBaseDump the memory heap to the log.- Specified by:
dumpHeapin interfaceBBjAdminBase- Throws:
BBjAdminException
-
dumpThreads
Description copied from interface:BBjAdminBaseDump JVM threads to the log.- Specified by:
dumpThreadsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
generateWebStartCertificate
public void generateWebStartCertificate(String p_company, String p_host, int p_port) throws BBjAdminException Description copied from interface:BBjAdminBaseTells BBj Services to have BASIS generate the Web Start certificates on the server. This will replace any certificates already in place.- Specified by:
generateWebStartCertificatein interfaceBBjAdminBase- Parameters:
p_company- Your company or organization name that will appear to clients when they run your application.p_host- Specify the BBj application Jetty server name as seen by your clients (external to the server itself). This can be an IP address. Do not use ‘localhost’ or local IP address if clients on other computers will use Web Start to run applications on this server.p_port- Port number of the BBj Jetty web server.- Throws:
BBjAdminException
-
getAbsolutePath
Description copied from interface:BBjAdminBaseReturns the absolute path for the specified file or directory as a string. Use this method to ask the server to resolve the file path according to its current working directory and OS.- Specified by:
getAbsolutePathin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getAsynchTriggerJobs
Description copied from interface:BBjAdminBaseReturns a list of all the asynchronous trigger jobs currently configured on the system. An asynchronous trigger job consists of a list of directories and/or files to monitor for changes, a BBj program to be run when a monitored file is written to, and another program to execute when a file has a record removed from it.
These triggers differ from standard file triggers in that the file operation does not wait for the trigger operation to complete, before continuing. This means there is almost no overhead on the file system. Further, these triggers can be configured to run on a remote BBj Services installation to allow the administrator to distribute the interpreter workload to another machine.- Specified by:
getAsynchTriggerJobsin interfaceBBjAdminBase- Returns:
- List of all the asynchronous trigger jobs.
- Throws:
BBjAdminException
-
getAsynchTriggerTargets
Description copied from interface:BBjAdminBaseReturns a list of all the asynchronous trigger job targets on this machine. See getAsynchTriggerJobs() for information about asynchronous triggers.- Specified by:
getAsynchTriggerTargetsin interfaceBBjAdminBase- Returns:
- List of all the asynchronous trigger job targets on this machine.
- Throws:
BBjAdminException
-
getAuditDatabase
- Specified by:
getAuditDatabasein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getAuditJobs
Description copied from interface:BBjAdminBaseReturns a list of all the audit jobs currently configured on the server.- Specified by:
getAuditJobsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getAuditTargets
Description copied from interface:BBjAdminBaseReturns a list of all the audit target currently on this server.- Specified by:
getAuditTargetsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getAutorunConfiguration
Description copied from interface:BBjAdminBaseGet the autorun configuration.- Specified by:
getAutorunConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getAvailableSystemPermissions
public BBjAdminList<BBjAdminSystemPermission> getAvailableSystemPermissions() throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseReturns a list of the system permissions that are available on the server. This information is used to find out which permissions the server supports getting and setting.- Specified by:
getAvailableSystemPermissionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBBjFile
Description copied from interface:BBjAdminBaseReturns a BBjAdminBBjFile for the specified full path. This type of object is generated by examining the file using the BBj file system so the information is related to the specific types of BBj data and program files.- Specified by:
getBBjFilein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBBjProcess
Description copied from interface:BBjAdminBaseReturns the BBjAdminBBjProcess for the specified ID. Use this to get a current fresh copy of the process information.- Specified by:
getBBjProcessin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBBjProcesses
Description copied from interface:BBjAdminBaseGet the set of BBj processes (read-only).- Specified by:
getBBjProcessesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBBjProperties
Description copied from interface:BBjAdminBaseReturns a Map containing all the properties and their values found in the BBj.properties file.- Specified by:
getBBjPropertiesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBBjPropertiesFile
Description copied from interface:BBjAdminBaseReturns a read-only copy of the contents of the BBj.properties file.- Specified by:
getBBjPropertiesFilein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBoolean
Description copied from interface:BBjAdminPropertyReaderGet a boolean value for a property.- Specified by:
getBooleanin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Boolean value for a property, some properties do not have an boolean value.
- Throws:
BBjAdminException
-
getBuiConfiguration
Description copied from interface:BBjAdminBaseReturns the configuration object for managing the BUI applications and settings on the server.- Specified by:
getBuiConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getRemoteConfiguration
Description copied from interface:BBjAdminBaseReturns the configuration object for managing the remote-launch applications (including BUI) and settings on the server. This replaces the previous (and now deprecated) getBuiConfiguration() method.- Specified by:
getRemoteConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getChangedProperties
Description copied from interface:BBjAdminCommitPropertyWriterGet the changed properties.- Specified by:
getChangedPropertiesin interfaceBBjAdminCommitPropertyWriter- Throws:
BBjAdminException- TODO
-
getClasspath
Description copied from interface:BBjAdminBaseReturns the list of items that make up the specified classpath. Use empty string for the default classpath or specify a valid sessions specific classpath (SSCP) name.- Specified by:
getClasspathin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getClasspathNames
Description copied from interface:BBjAdminBaseReturns a list of the session specific classpaths on the server.- Specified by:
getClasspathNamesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getClearedProperties
Description copied from interface:BBjAdminCommitPropertyWriterGet the set of cleared properties.- Specified by:
getClearedPropertiesin interfaceBBjAdminCommitPropertyWriter- Throws:
BBjAdminException- TODO
-
getClientBBjProcess
Description copied from interface:BBjAdminBaseReturns the BBjAdminBBjProcess for the specified ID. Use this to get a current fresh copy of the process information.- Specified by:
getClientBBjProcessin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getClientBBjProcesses
Description copied from interface:BBjAdminBaseGet the set of BBj processes (read-only).- Specified by:
getClientBBjProcessesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getClientReplicationJobs
Description copied from interface:BBjAdminBaseReturns a list of the replication jobs currently running on the system. The objects returned are read-only and only contain data but do not implement functionality for any method calls. These are used for display purposes to optimize network performance.- Specified by:
getClientReplicationJobsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getConfiguration
Description copied from interface:BBjAdminBaseReturns an object which provides access to server configuration settings.- Specified by:
getConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getConnectionPool
Description copied from interface:BBjAdminBaseReturns the specified connection pool for administration purposes.- Specified by:
getConnectionPoolin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getConnectionPools
Description copied from interface:BBjAdminBaseReturns a list of available connection pools for administration purposes.- Specified by:
getConnectionPoolsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getDatabase
Description copied from interface:BBjAdminBaseGet a single existing database.- Specified by:
getDatabasein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getDatabaseNames
Description copied from interface:BBjAdminBaseGet the names of all accessible databases.- Specified by:
getDatabaseNamesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getDatabases
Description copied from interface:BBjAdminBaseGet all accessible databases.- Specified by:
getDatabasesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getDouble
Description copied from interface:BBjAdminPropertyReaderGet a double value for a property.- Specified by:
getDoublein interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Double value for a property, some properties do not have a double value.
- Throws:
BBjAdminException
-
getFile
Description copied from interface:BBjAdminBaseReturns a BBjAdminFile for the specified full path. If null, the object will contain all the roots for the file system on the remote machine.- Specified by:
getFilein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getFreeSpace
Description copied from interface:BBjAdminBaseReturns the number of free bytes available- Specified by:
getFreeSpacein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getInt
Description copied from interface:BBjAdminPropertyReaderGet an integer value for a property.- Specified by:
getIntin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Integer value for a property, some properties do not have an integer value.
- Throws:
BBjAdminException
-
getJavaInfo
Description copied from interface:BBjAdminBaseReturns the information about the Java Virtual Machine located at the specified location.- Specified by:
getJavaInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getJnlpConfiguration
Description copied from interface:BBjAdminBaseReturns the configuration object for managing the JNLP applications and settings on the server.- Specified by:
getJnlpConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getList
Description copied from interface:BBjAdminPropertyReaderGet a BBjAdminList value for a property.- Specified by:
getListin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- BBjAdminList value for a property.
- Throws:
BBjAdminException
-
getLocaleString
Description copied from interface:BBjAdminBaseReturns the Locale as a string.- Specified by:
getLocaleStringin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getLong
Description copied from interface:BBjAdminPropertyReaderGet a long value for a property.- Specified by:
getLongin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Long value for a property, some properties do not have an long value.
- Throws:
BBjAdminException
-
getMemoryUsageData
public List<BBjAdminMemoryUsage> getMemoryUsageData(String p_alternateLocation) throws BBjAdminException - Specified by:
getMemoryUsageDatain interfaceBBjAdminBase- Throws:
BBjAdminException
-
getMountedTriggerDirectories
Description copied from interface:BBjAdminBaseReturns a list of the trigger directories that are currently mounted by the server. We keep track of directories that are mounted for triggers so that we can provide a nice interface to the user for looking at triggers. We only show those that are mounted because it would be too difficult to search the entire drive for all files that have a trigger on them. So, this is a convenience method.- Specified by:
getMountedTriggerDirectoriesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getOnlineCopyJobs
Description copied from interface:BBjAdminBaseGet all currently running Online Copy Jobs.- Specified by:
getOnlineCopyJobsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getOpenFiles
Description copied from interface:BBjAdminBaseGet the set of open files (read-only).- Specified by:
getOpenFilesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getOpenFile
Description copied from interface:BBjAdminBaseGet the open file (read-only) with the specified ID.- Specified by:
getOpenFilein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getClientOpenFiles
Description copied from interface:BBjAdminBaseGet the list of open files (read-only). This is different from getOpenFiles() in that it returns a list of objects that are not connected to the server making calls on these objects much faster.- Specified by:
getClientOpenFilesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getOriginalProperties
Description copied from interface:BBjAdminCommitPropertyWriterGet the original properties list.- Specified by:
getOriginalPropertiesin interfaceBBjAdminCommitPropertyWriter- Throws:
BBjAdminException- TODO
-
getOSFiles
public List<BBjAdminClientOSFile> getOSFiles(BBjAdminClientOSFile p_parent, String[] p_filenameFilter, Date p_modifiedFilterStart, Date p_modifiedFilterEnd) throws BBjAdminException Description copied from interface:BBjAdminBaseReturns a list of files from the operating system. This does NOT use the BBj filesystem handling code, but rather, looks at the files on the operating system.- Specified by:
getOSFilesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getPassword
Description copied from interface:BBjAdminBaseGet the password of the user who got this BBjAdmin instance. THIS IS DEPRECATED. You should no longer use this method as it presents a security vulnerability to provide access to a user password once they've been authenticated.- Specified by:
getPasswordin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getProperties
Description copied from interface:BBjAdminPropertyReaderGet a copy of all properties.- Specified by:
getPropertiesin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getReadOnly
Description copied from interface:BBjAdminPropertyWriterSet the complete set of read-only properties.- Specified by:
getReadOnlyin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
getReplicationJob
Description copied from interface:BBjAdminBaseReturns the replication job running on the system that has the specified UUID.- Specified by:
getReplicationJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getReplicationJobs
Description copied from interface:BBjAdminBaseReturns a list of the replication jobs currently running on the system.- Specified by:
getReplicationJobsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getEnabledReplicationJobs
Description copied from interface:BBjAdminBaseReturns a list of all the currently enabled replication jobs. Any jobs currently paused (disabled) will not show in this list.- Specified by:
getEnabledReplicationJobsin interfaceBBjAdminBase- Returns:
- List of all enabled replication jobs.
- Throws:
BBjAdminException
-
getReplicationTargets
Description copied from interface:BBjAdminBaseReturns a list of the replication targets on the system. A replication target is a job that is replicating from a machine, to this machine.- Specified by:
getReplicationTargetsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getRoots
Description copied from interface:BBjAdminBaseReturns a list of all the roots or drives on the machine.- Specified by:
getRootsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getSecurityGroupNames
Description copied from interface:BBjAdminBaseReturns a list of available security group names.- Specified by:
getSecurityGroupNamesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getSecurityGroups
Description copied from interface:BBjAdminBaseReturns a list of available security groups.- Specified by:
getSecurityGroupsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getServerConfigurations
public BBjAdminMap<BBjAdminServer.ServerType,BBjAdminSet<BBjAdminServer>> getServerConfigurations() throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseGet the server configuration. Deprecated. @see BBjAdminBase.getServices()- Specified by:
getServerConfigurationsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getServerConfigurations
public BBjAdminSet<BBjAdminServer> getServerConfigurations(BBjAdminServer.ServerType p_type) throws BBjAdminException Description copied from interface:BBjAdminBaseGet the server configurations for a single type of server. Deprecated. @see BBjAdminBase.getServices()- Specified by:
getServerConfigurationsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getSingleUserPermissions
Description copied from interface:BBjAdminBaseGet the permissions for a single user.- Specified by:
getSingleUserPermissionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getSQLConnections
Description copied from interface:BBjAdminBaseGet the set of SQL connections (read-only).- Specified by:
getSQLConnectionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getStartupExceptions
Description copied from interface:BBjAdminBaseReturns a list of any startup exceptions that occured while BBj Services was attempting to start. If any server fails to start, a startup exception will be in this list for it.- Specified by:
getStartupExceptionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getString
Description copied from interface:BBjAdminPropertyReaderGet a String value for a property.- Specified by:
getStringin interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- String value for a property, all property values can be retrieved as Strings.
- Throws:
BBjAdminException
-
getSystemProperty
Description copied from interface:BBjAdminBaseReturns a system property from the server. Basically it is the equivalent to calling System.getProperty() on the server side.- Specified by:
getSystemPropertyin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getTableAnalysisJobs
Description copied from interface:BBjAdminBaseReturns a list of the currently queued and/or running table analysis jobs on the server.- Specified by:
getTableAnalysisJobsin interfaceBBjAdminBase- Returns:
- List of the queued and running table analysis jobs.
- Throws:
BBjAdminException
-
getIndexBuilderJobs
Description copied from interface:BBjAdminBaseReturns a list of the currently running index builder jobs on the server.- Specified by:
getIndexBuilderJobsin interfaceBBjAdminBase- Returns:
- List of running index builder jobs.
- Throws:
BBjAdminException
-
getTaskQueue
Description copied from interface:BBjAdminBaseReturns a list of all the currently configured task groups on the server.- Specified by:
getTaskQueuein interfaceBBjAdminBase- Returns:
- List of all the configured task groups.
- Throws:
BBjAdminException
-
getTemplateForFile
Description copied from interface:BBjAdminBaseReturns a string template (if one can be found) for the specified data file. It searches all the databases to see if there is a table that points to the data file. If if finds one, it returns the string template for that table.- Specified by:
getTemplateForFilein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getKeyTemplateForFile
Description copied from interface:BBjAdminBaseReturns a string template (if one can be found) for the specified data file defining the layout of the key specified in p_keyNum. It searches all the databases to see if there is a table that points to the data file. If if finds one, it returns the string template for that table's key based on the index definitions present for the table. NOTE: This does not apply to ESQL files.- Specified by:
getKeyTemplateForFilein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getTextFileContents
Description copied from interface:BBjAdminBaseReturns the contents of the specified file from the remote machine as a string. This method is only designed to retrieve text based files.- Specified by:
getTextFileContentsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getTotalSpace
Description copied from interface:BBjAdminBaseReturns the total space available on the specified root or drive.- Specified by:
getTotalSpacein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getTriggers
Description copied from interface:BBjAdminBaseGet the trigger configuration for a file.- Specified by:
getTriggersin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getType
Description copied from interface:BBjAdminPropertyReaderGet the value type of a property. The value type can be unknown.- Specified by:
getTypein interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getTypes
Description copied from interface:BBjAdminPropertyReaderGet a copy of all of the type information.- Specified by:
getTypesin interfaceBBjAdminPropertyReader- Throws:
BBjAdminException- TODO
-
getUser
Description copied from interface:BBjAdminBaseGet the name of the user who got this BBjAdmin instance.- Specified by:
getUserin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getTokenValue
Description copied from interface:BBjAdminBaseReturns the authorization token that was used to acquire this connection to the Admin API.- Specified by:
getTokenValuein interfaceBBjAdminBase- Returns:
- Authorization token used by this connection.
- Throws:
BBjAdminException
-
getUserNames
Description copied from interface:BBjAdminBaseGet the names of users.- Specified by:
getUserNamesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getUserPermissions
Description copied from interface:BBjAdminBaseGet the permissions for all users.- Specified by:
getUserPermissionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getValue
Description copied from interface:BBjAdminPropertyReaderGet a object value for a property.- Specified by:
getValuein interfaceBBjAdminPropertyReader- Parameters:
p_property- Property name.- Returns:
- Boolean value for a property, some properties do not have an boolean value.
- Throws:
BBjAdminException
-
getWebAppServer
Description copied from interface:BBjAdminBaseGet the Web App Server configuration.- Specified by:
getWebAppServerin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getWebService
Description copied from interface:BBjAdminBaseReturns the BBjAdminWebService instance for the specified service, or null if no service by that name exists.- Specified by:
getWebServicein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getWebServices
Description copied from interface:BBjAdminBaseReturns a list of available web services.- Specified by:
getWebServicesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
hasChanged
Description copied from interface:BBjAdminPropertyWriterHave properties been changed?- Specified by:
hasChangedin interfaceBBjAdminPropertyWriter- Throws:
BBjAdminException- TODO
-
isAddressSameAsServer
Description copied from interface:BBjAdminBaseReturns true if the specified host address resolves to the same address as the machine running the Admin Server.- Specified by:
isAddressSameAsServerin interfaceBBjAdminBase- Throws:
BBjAdminException
-
isAdminOnlyMode
Description copied from interface:BBjAdminBaseAsks the server if it is currently set to admin only mode. If you need to know if the server is currently running in admin only mode, call isRunningAdminOnlyMode() instead.- Specified by:
isAdminOnlyModein interfaceBBjAdminBase- Throws:
BBjAdminException
-
isOSWindows
Description copied from interface:BBjAdminBaseReturns true if the server side OS is MS Windows of some type. Otherwise it returns false. Since Mac follows Unix path and other information of that nature we typically are only concerned with whether it is Windows or Mac/Unix. If you need detailed OS information, access this by calling the getServerConfiguration() method, and then calling the getAdminProperties() method on the BBjAdminServerConfiguration instance.- Specified by:
isOSWindowsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
isReadOnly
Description copied from interface:BBjAdminPropertyWriterIs a given property read-only. By default they are _not_ read only.- Specified by:
isReadOnlyin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.- Throws:
BBjAdminException- TODO
-
isReplicationAllowed
Description copied from interface:BBjAdminBaseAsks the server if it is allowed to peform replication jobs.- Specified by:
isReplicationAllowedin interfaceBBjAdminBase- Throws:
BBjAdminException
-
isRunningAdminOnlyMode
Description copied from interface:BBjAdminBaseAsks the server if it is currently RUNNING in admin only mode.- Specified by:
isRunningAdminOnlyModein interfaceBBjAdminBase- Throws:
BBjAdminException
-
isWS3Allowed
Description copied from interface:BBjAdminBaseChecks if Version 3 WebServices are available.- Specified by:
isWS3Allowedin interfaceBBjAdminBase- Returns:
- a boolean value
- Throws:
BBjAdminException
-
migrateToEnhancedDatabase
public void migrateToEnhancedDatabase(String p_sourceDictionary, String p_destinationDatabase, String p_destinationDirectory) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new data dictionary in the specified format at the specified destination location using the dictionary at p_sourceDictionary. This Allows you to create a new-format data dictionary.- Specified by:
migrateToEnhancedDatabasein interfaceBBjAdminBase- Throws:
BBjAdminException
-
mountTriggerDirectory
Description copied from interface:BBjAdminBaseMounts a directory to be listed when asking for a list of mounted trigger directories. See getMountedTriggerDirectories() for more information.- Specified by:
mountTriggerDirectoryin interfaceBBjAdminBase- Throws:
BBjAdminException
-
newConnectionPool
Description copied from interface:BBjAdminBaseReturns a new connection pool definition.- Specified by:
newConnectionPoolin interfaceBBjAdminBase- Throws:
BBjAdminException
-
newDatabaseInstance
public BBjAdminDatabase newDatabaseInstance(Map<String, Object> p_properties) throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseReturns a new, empty database instance. Call commit() on the BBjAdminDatabase instance to save the changes you make to it.- Specified by:
newDatabaseInstancein interfaceBBjAdminBase- Throws:
BBjAdminException
-
newLDAPSearch
Description copied from interface:BBjAdminBaseReturns a new, blank LDAP search instance.- Specified by:
newLDAPSearchin interfaceBBjAdminBase- Throws:
BBjAdminException
-
newSecurityGroup
Description copied from interface:BBjAdminBaseReturns a new SecurityGroup instance.- Specified by:
newSecurityGroupin interfaceBBjAdminBase- Throws:
BBjAdminException
-
newTask
Description copied from interface:BBjAdminBaseReturns a new task of the specified type.- Specified by:
newTaskin interfaceBBjAdminBase- Throws:
BBjAdminException
-
newTaskGroup
Description copied from interface:BBjAdminBaseReturns a new task group from the server.- Specified by:
newTaskGroupin interfaceBBjAdminBase- Throws:
BBjAdminException
-
refresh
Description copied from interface:BBjAdminBaseRefresh properties that may have changed on the server, locally changed properties will not be overridden.- Specified by:
refreshin interfaceBBjAdminBase- Throws:
BBjAdminException
-
release
public void release()Description copied from interface:BBjAdminBaseRelease resources held.- Specified by:
releasein interfaceBBjAdminBase
-
reloadDatabaseConfig
Description copied from interface:BBjAdminBaseReload the Database configuration file.- Specified by:
reloadDatabaseConfigin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeBuiApplication
Description copied from interface:BBjAdminBaseRemoves the specified BUI application configuration.- Specified by:
removeBuiApplicationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeConnectionPool
Description copied from interface:BBjAdminBaseRemoves the specified connection pool from the server.- Specified by:
removeConnectionPoolin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeReplicationJob
Description copied from interface:BBjAdminBaseRemoves the replication job identified by the specified UUID or name.- Specified by:
removeReplicationJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeAsynchTriggerJob
Description copied from interface:BBjAdminBaseRemoves the asynchronous trigger job identified by the specified UUID or name.- Specified by:
removeAsynchTriggerJobin interfaceBBjAdminBase- Parameters:
p_uuid- UUID or name for the trigger job.- Throws:
BBjAdminException
-
removeReplicationTarget
Description copied from interface:BBjAdminBaseRemoves the replication target identified by the specified UUID.- Specified by:
removeReplicationTargetin interfaceBBjAdminBase- Parameters:
p_uuid- ID for the replication target.p_erase- True if you want the target(destination) replicated files removed. False otherwise.- Throws:
BBjAdminException
-
removeTaskGroup
Description copied from interface:BBjAdminBaseRemoves the specified task group from the server.- Specified by:
removeTaskGroupin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeTriggers
Description copied from interface:BBjAdminBaseRemoves the trigger from the specified file. Does not simply disable it, but actually removes the trigger definition file for that particular file.- Specified by:
removeTriggersin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeWebService
Description copied from interface:BBjAdminBaseRemoves the specified web service from the server.- Specified by:
removeWebServicein interfaceBBjAdminBase- Throws:
BBjAdminException
-
restartBBjServices
Description copied from interface:BBjAdminBaseTells the remote BBj Services to shutdown and restart.- Specified by:
restartBBjServicesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
rollback
Description copied from interface:BBjAdminCommitWriterRoll back all property changes. This will discard any changes that have been made in the properties and not committed.- Specified by:
rollbackin interfaceBBjAdminCommitWriter- Throws:
BBjAdminException
-
setAdminOnlyMode
Description copied from interface:BBjAdminBaseTells the server to set itself into admin only mode the next time it is restarted. Subsequent restarts will come back in normal mode.- Specified by:
setAdminOnlyModein interfaceBBjAdminBase- Throws:
BBjAdminException
-
setAutorunConfiguration
Description copied from interface:BBjAdminBaseSet the autorun configuration (not committed).- Specified by:
setAutorunConfigurationin interfaceBBjAdminBase- Parameters:
p_autorun- New autorun configuration.- Throws:
BBjAdminException
-
setBoolean
Description copied from interface:BBjAdminPropertyWriterSet the boolean value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setBooleanin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setClasspath
Description copied from interface:BBjAdminBaseSets the list of items that make up the specified named classpath. Use empty string for the default classpath or specify a valid sessions specific classpath (SSCP) name.- Specified by:
setClasspathin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setDouble
Description copied from interface:BBjAdminPropertyWriterSet the double value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setDoublein interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setInt
Description copied from interface:BBjAdminPropertyWriterSet the integer value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setIntin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setList
Description copied from interface:BBjAdminPropertyWriterSet the BBjAdminList value of a property. This can fail if the property is read-only.- Specified by:
setListin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setLong
Description copied from interface:BBjAdminPropertyWriterSet the long value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setLongin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setProperties
Description copied from interface:BBjAdminPropertyWriterSet properties as a group from a Map.- Specified by:
setPropertiesin interfaceBBjAdminPropertyWriter- Parameters:
p_properties- Properties to set.- Throws:
BBjAdminException
-
setReplicationJobEnabled
public void setReplicationJobEnabled(String p_replicationID, boolean p_enabled) throws BBjAdminException Description copied from interface:BBjAdminBaseEnables/Disables the specified replication job. This is essentially a pause/resume feature that can be used to take a snapshot of the destination replicated database.- Specified by:
setReplicationJobEnabledin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setServerConfigurations
public void setServerConfigurations(BBjAdminMap<BBjAdminServer.ServerType, BBjAdminSet<BBjAdminServer>> p_config) throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseSet the server configuration (not committed). Deprecated. @see BBjAdminBase.setServices().- Specified by:
setServerConfigurationsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setServerConfigurations
public void setServerConfigurations(BBjAdminServer.ServerType p_type, BBjAdminSet<BBjAdminServer> p_servers) throws BBjAdminException Description copied from interface:BBjAdminBaseSet the server configurations for a single type of server (not committed). Deprecated. @see BBjAdminBase.setServices().- Specified by:
setServerConfigurationsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setSingleUserPermissions
public void setSingleUserPermissions(BBjAdminUserPermissions p_permissions) throws BBjAdminException Description copied from interface:BBjAdminBaseSet an individual user's permissions (not committed).- Specified by:
setSingleUserPermissionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setString
Description copied from interface:BBjAdminPropertyWriterSet the String value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setStringin interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
setTableAnalysisEnabled
Description copied from interface:BBjAdminBaseEnables or disabled the ability to perform a table analysis on the specified database. It does not change the database configuration (this should be done with the BBjAdminDatabase object property). If BBj Services is restarted, this setting returns to the default of "true".- Specified by:
setTableAnalysisEnabledin interfaceBBjAdminBase- Parameters:
p_database- Name of database to enable or disable.p_enabled- True if analysis should be allowed to perform, or false to disable all analysis operations on this database.- Throws:
BBjAdminException
-
setTriggers
Description copied from interface:BBjAdminBaseSet the trigger configuration for a file (not committed).- Specified by:
setTriggersin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setUserPermissions
public void setUserPermissions(BBjAdminSet<BBjAdminUserPermissions> p_permissions) throws BBjAdminException Description copied from interface:BBjAdminBaseSet permissions for a whole set of users (not committed).- Specified by:
setUserPermissionsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setValue
Description copied from interface:BBjAdminPropertyWriterSet the object value of a property. This can fail if the property needs a specific type of value or is read-only.- Specified by:
setValuein interfaceBBjAdminPropertyWriter- Parameters:
p_property- Property name.p_value- New value for the property.- Throws:
BBjAdminException
-
shutdownBBjServices
Description copied from interface:BBjAdminBaseTells BBj Services to shutdown.- Specified by:
shutdownBBjServicesin interfaceBBjAdminBase- Parameters:
p_waitForClients- True if you want it to wait for clients to disconnect before shutting down.- Throws:
BBjAdminException
-
startOnlineCopyJob
public BBjAdminOnlineCopyJobRun startOnlineCopyJob(BBjAdminOnlineCopyJobConfig p_config) throws BBjAdminException Description copied from interface:BBjAdminBaseStart an online copy job. The BBjAdminOnlineCopyJobRun instance returned by this method provides access to the finish(), abort() and getProgress() methods to interact with the running job.- Specified by:
startOnlineCopyJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
testRemoteFilesystemAccessibility
public void testRemoteFilesystemAccessibility(String p_host, int p_port, boolean p_ssl, String p_user, String p_password) throws BBjAdminException Description copied from interface:BBjAdminBaseCalled to test and see if the server can connect to the specified remote filesystem.- Specified by:
testRemoteFilesystemAccessibilityin interfaceBBjAdminBase- Throws:
BBjAdminException
-
unmountTriggerDirectory
Description copied from interface:BBjAdminBaseUnmounts a trigger directory. See mountTriggerDirectory() and getMountedTriggerDirectories() for more information.- Specified by:
unmountTriggerDirectoryin interfaceBBjAdminBase- Throws:
BBjAdminException
-
unpinAllPrograms
Description copied from interface:BBjAdminBaseUnpin all programs.- Specified by:
unpinAllProgramsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
updateReplicationJob
Description copied from interface:BBjAdminBaseUpdates the replication job on the server with the same ID, with the information in the specified replication job.- Specified by:
updateReplicationJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
useExistingWebStartCertificate
public void useExistingWebStartCertificate(String p_keystore, String p_keystorePassword, String p_privateKey, String p_privateKeyPassword) throws BBjAdminException Description copied from interface:BBjAdminBaseConfigures BBj Services to use the specified certificate for Web start applications.- Specified by:
useExistingWebStartCertificatein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getDocumentIndexes
Description copied from interface:BBjAdminBaseReturns a list of all the document indexes available on the server. A document index is one or more directories and filters that are monitored for new or modified documents. All documents in a monitored directory that match a filter will be indexed in one of the supported index types such as Lucene or elasticsearch.- Specified by:
getDocumentIndexesin interfaceBBjAdminBase- Returns:
- List of all the document indexes on the server.
- Throws:
BBjAdminException
-
createDocumentIndex
public BBjAdminDocumentIndex createDocumentIndex(String p_name, String p_type) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new BBjAdminDocumentIndex with the given name. If the name is already in use it will throw an exception.- Specified by:
createDocumentIndexin interfaceBBjAdminBase- Parameters:
p_name- Name of the document index. Must be unique to the server.p_type- Type of index. Use one of the types from BBjAdminDocumentIndex.- Returns:
- New BBjAdminDocumentIndex with the given name.
- Throws:
BBjAdminException- If there is a problem or if the name is already in use.
-
dropDocumentIndex
Description copied from interface:BBjAdminBaseDrops the specified document index.- Specified by:
dropDocumentIndexin interfaceBBjAdminBase- Parameters:
p_name- Name of the document index to drop.- Throws:
BBjAdminException
-
getDocumentIndex
Description copied from interface:BBjAdminBaseReturns a document index for the specified name. A document index is one or more directories and filters that are monitored for new or modified documents. All documents in a monitored directory that match a filter will be indexed in one of the supported index types such as Lucene or elasticsearch.- Specified by:
getDocumentIndexin interfaceBBjAdminBase- Parameters:
p_name- The name of the document index to retrieve.- Returns:
- The index or null if not found.
- Throws:
BBjAdminException
-
uploadSupportFiles
public String uploadSupportFiles(BBjAdminSet<String> p_files, BBjAdminMap<String, String> p_properties) throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseSend the specified list of files to support. The list of files from the server will be zipped up, server side, and sent to the support upload site. It will include information such as the sender email address, attention of email, support incident ID and a message.- Specified by:
uploadSupportFilesin interfaceBBjAdminBase- Returns:
- Unique identifier for this upload job. This ID will be used to check progress.
- Throws:
BBjAdminException
-
getSupportUploadJob
Description copied from interface:BBjAdminBaseReturns an instance of BBjAdminSupportUploadJob containing the information about the current status of the specified upload job ID.- Specified by:
getSupportUploadJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getSupportUploadJobs
Description copied from interface:BBjAdminBaseReturns a list of all the currently running support upload jobs.- Specified by:
getSupportUploadJobsin interfaceBBjAdminBase- Throws:
BBjAdminException
-
abortSupportUploadJob
Description copied from interface:BBjAdminBaseCancels the specified support upload job.- Specified by:
abortSupportUploadJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
acceptLdapCertificate
Description copied from interface:BBjAdminBaseCalled to accept the LDAP certificate and add it to the accepted certificate list.- Specified by:
acceptLdapCertificatein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getFileOpenInfo
public BBjAdminMap<BBjAdminFileOpenInfoKey,BBjAdminFileOpenInfoValue> getFileOpenInfo() throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseReturns the file open statistics gathered when a file is opened. These stats contain information about the prefix examined during the open and the path that it decided to use to open the file. This information is not persisted through BBjServices restart but only contained in memory.- Specified by:
getFileOpenInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
clearFileOpenInfo
Description copied from interface:BBjAdminBaseClears the file open statistics gathered when a file is opened. These stats contain information about the prefix examined during the open and the path that it decided to use to open the file. This information is not persisted through BBjServices restart but only contained in memory.- Specified by:
clearFileOpenInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
testJdbcConnection
public void testJdbcConnection(String p_driver, String p_url, String p_user, String p_password) throws BBjAdminException Description copied from interface:BBjAdminBaseTests connecting with the specified JDBC driver, URL, user and password from the server. This is generally used to test linked database connection information.- Specified by:
testJdbcConnectionin interfaceBBjAdminBase- Throws:
BBjAdminException
-
createBBjReplicationJob
public BBjAdminBBjReplicationJob createBBjReplicationJob(String p_name, String p_address, int p_port, double p_kbps, boolean p_ssl, String p_user, String p_pwd, boolean p_synchronous, String p_eventHandlerProgram, String p_eventHandlerUser, String p_eventHandlerPassword, String p_eventHandlerConfig, String p_eventHandlerWorkingDir, String p_eventHandlerClasspath, String p_eventEmailService, String p_eventEmailRecipients) throws BBjAdminException Description copied from interface:BBjAdminBaseCreates a new BBj replication job with the specified configuration info. This method allows you to specify an event hanlder BBj program. The event handler will be executed when a change occurs in the status of the replication job such as when it is paused, resumed, etc.- Specified by:
createBBjReplicationJobin interfaceBBjAdminBase- Parameters:
p_name- Name of the replication job.p_address- Host name of the target filesystem server to connect to.p_port- Port number for the target filesystem server to connect to. Usually 2000.p_kbps- Optional way to limit the rate of replication. Kilobits per seconds to send replication operations.p_ssl- Whether the target filesystem server you are connecting to uses SSL. Must match the server's configuration.p_user- Username to use to connect to the target filesystem server.p_pwd- Password to use to connect to the target filesystem server.p_synchronous- Whether the job's replication operations should occur synchronously or asynchronously. This value SHOULD ALMOST ALWAYS BE false.p_eventHandlerProgram- BBj program to use to handle replication events. This program will be executed when each replication operation occurs. The program should decide how to handle each operation.p_eventHandlerUser- User to use to run the handler program.p_eventHandlerPassword- Password to use to run the handler program.p_eventHandlerConfig- config.bbx file to use for the interpreter that runs the handler program.p_eventHandlerWorkingDir- Working directory to use for the handler program.p_eventHandlerClasspath- Optional session specific classpath (SSCP) to use for the handler program.p_eventEmailService- Email service to be used to send notifications. See Email Services for more info.p_eventEmailRecipients- Comma separated list of email recipients for notifications.- Returns:
- New replication job.
- Throws:
BBjAdminException
-
newEmailService
Description copied from interface:BBjAdminBaseCreates and returns a new Email Service that provides the ability to send email messages using the Admin API or easily configure various parts of the system to send notifications via email such as replication problems, etc.- Specified by:
newEmailServicein interfaceBBjAdminBase- Returns:
- New Email Service instance.
- Throws:
BBjAdminException
-
removeEmailService
Description copied from interface:BBjAdminBaseRemoves the specified email service configuration from the server.- Specified by:
removeEmailServicein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getEmailServices
Description copied from interface:BBjAdminBaseReturns a list of the currently configured email services on the server.- Specified by:
getEmailServicesin interfaceBBjAdminBase- Returns:
- List of email services.
- Throws:
BBjAdminException
-
getEmailService
Description copied from interface:BBjAdminBaseGet the email service with the specified name.- Specified by:
getEmailServicein interfaceBBjAdminBase- Returns:
- The BBjAdminEmailService instance by the specified name.
- Throws:
BBjAdminException
-
getEventManager
Description copied from interface:BBjAdminBaseThe event manager manages the system events that may occur on the server. There are numerous types of events that can be configured. Events will optionally notify a specified program or send an email notification through a configured email service (see getEmailServices() method). Each type of event may have different configuration options since each event is unique in its requirements. The available events cannot be modified, only the settings of those events returned by calling this method.- Specified by:
getEventManagerin interfaceBBjAdminBase- Returns:
- The event manager from the server.
- Throws:
BBjAdminException
-
updateEventManager
- Specified by:
updateEventManagerin interfaceBBjAdminBase- Throws:
BBjAdminException
-
exportReplicationJob
public void exportReplicationJob(BBjAdminReplicationJob p_job, String p_filename) throws BBjAdminException Description copied from interface:BBjAdminBaseExports the replication job in a format that can then be read in using the import() method. This provides a means for creating an exported replication job that can be imported into another installation.- Specified by:
exportReplicationJobin interfaceBBjAdminBase- Parameters:
p_job- Replication job to export.p_filename- Full path to the replication job export file. The path will be server side.- Throws:
BBjAdminException
-
importReplicationJob
public BBjAdminReplicationJob importReplicationJob(String p_filename, String p_user, String p_password) throws BBjAdminException Description copied from interface:BBjAdminBaseLoads the contents of a replication job export file into the object. Note that this file must be located on the BBjServices machine and the path specified should be the path on that machine, as opposed to a client machine.- Specified by:
importReplicationJobin interfaceBBjAdminBase- Throws:
BBjAdminException
-
jsonExecute
Description copied from interface:BBjAdminBaseExecutes some server-side processing defined by the supplied JSON string. The result should be another JSON string.- Specified by:
jsonExecutein interfaceBBjAdminBase- Returns:
- a JSON String
- Throws:
BBjAdminException
-
getConfigCommits
public List<BBjAdminGitCommit> getConfigCommits(int p_startDate, int p_endDate) throws BBjAdminException Description copied from interface:BBjAdminBaseReturns a list of the config directory commits that have occurred during the optional range of dates.- Specified by:
getConfigCommitsin interfaceBBjAdminBase- Parameters:
p_startDate- Number of seconds since the epoch start time range or zero for none.p_endDate- Number of seconds since the epoch end time range or zero for none.- Throws:
BBjAdminException
-
hardResetConfigCommit
public void hardResetConfigCommit(String p_id, String p_name, String p_email) throws BBjAdminException Description copied from interface:BBjAdminBasePerforms a hard reset of the configuration, returning it to the specified commit ID state. The directory will return to the exact state it was in at the time of the specified commit so any uncommitted changes to files will be lost.- Specified by:
hardResetConfigCommitin interfaceBBjAdminBase- Parameters:
p_id- ID of the Git commit to which the state of the directory should return.p_name- Name of the user committing the changes or null to use the default.p_email- Email address of the user committing the changes or null to use the default.- Throws:
BBjAdminException
-
getConfigCommitDiffText
public String getConfigCommitDiffText(String p_commitId1, String p_commitId2) throws BBjAdminException Description copied from interface:BBjAdminBaseReturns the Git diff patch text between two commits.- Specified by:
getConfigCommitDiffTextin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getStartTime
Description copied from interface:BBjAdminBaseReturns the time that the currently running BBjServices was started as a formatted timestamp string including the timezone.- Specified by:
getStartTimein interfaceBBjAdminBase- Throws:
BBjAdminException
-
getLicenseFeatureInfo
Description copied from interface:BBjAdminBaseReturns the license information for the specified feature.- Specified by:
getLicenseFeatureInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getAllLicenseFeatureInfo
Description copied from interface:BBjAdminBaseReturns a list of BBjAdminLicenseFeatureInfo object for each feature the license uses.- Specified by:
getAllLicenseFeatureInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getBBjFileRecord
Description copied from interface:BBjAdminBaseReads the record at the specified record location and returns the contents of the record as a byte[]. Access to the file is granted based on the Admin API connected user's access permissions to the file.- Specified by:
getBBjFileRecordin interfaceBBjAdminBase- Parameters:
p_path- Full path to the data file. This does not take into account any prefixes defined.p_recNum- Zero-based record number for the record of interest.- Returns:
- Contents of the record. Returns null if there is no record at the specified record number.
- Throws:
BBjAdminException- If there is a problem accessing the file.
-
getJarIndexJars
Description copied from interface:BBjAdminBaseReturns a list of the jars referenced in a JarIndex if one is present in the specified jar file. To be completely honest, it is highly unlikely anyone will ever use this method outside the BBj Enterprise Manager user interface as this information is not particularly useful in other contexts.- Specified by:
getJarIndexJarsin interfaceBBjAdminBase- Parameters:
p_jarFilePath- Full path to the jar file to examine.- Returns:
- List of jars present in the INDEX.LIST file within the specified jar if such file exists.
- Throws:
BBjAdminException
-
isSqlServerSecure
Description copied from interface:BBjAdminBaseReturns true or false as to whether the SQL engine server is using SSL.- Specified by:
isSqlServerSecurein interfaceBBjAdminBase- Returns:
- True if SSL is configured. False otherwise.
- Throws:
BBjAdminException
-
getServices
Description copied from interface:BBjAdminBaseGet the services configurations.- Specified by:
getServicesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setServices
Description copied from interface:BBjAdminBaseSets the services configurations.- Specified by:
setServicesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
removeService
Description copied from interface:BBjAdminBaseRemoves the specified service configuration. This only applies to "general" servers such as SQL, Filesystem, XCALL, Admin, PRO/5 DS, and MMP.- Specified by:
removeServicein interfaceBBjAdminBase- Parameters:
p_service- Service to remove.- Throws:
BBjAdminException
-
stopService
Description copied from interface:BBjAdminBaseStops the specified service if running.- Specified by:
stopServicein interfaceBBjAdminBase- Parameters:
p_config- BBjAdminServerConfig instance to stop.- Throws:
BBjAdminException
-
startService
Description copied from interface:BBjAdminBaseStarts the specified service if not running.- Specified by:
startServicein interfaceBBjAdminBase- Parameters:
p_config- BBjAdminServerConfig instance to stop.- Throws:
BBjAdminException
-
isServiceRunning
Description copied from interface:BBjAdminBaseReturns true if the specified service is running.- Specified by:
isServiceRunningin interfaceBBjAdminBase- Throws:
BBjAdminException
-
getClientOpenFiles
public List<BBjAdminClientOpenFile> getClientOpenFiles(int p_field, int p_operator, String p_value) throws BBjAdminException Description copied from interface:BBjAdminBaseGet the list of open files (read-only). This is different from getOpenFiles() in that it returns a list of objects that are not connected to the server making calls on these objects much faster.- Specified by:
getClientOpenFilesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
duplicateDatabaseConfig
Description copied from interface:BBjAdminBaseCreates a copy of the specified database configuration. This does not copy the database files such as the table data files or data dictionary but rather, only the configuration.- Specified by:
duplicateDatabaseConfigin interfaceBBjAdminBase- Parameters:
p_sourceDb- Name of database to duplicate it's configuration.p_newName- New name for the new database configuration.- Throws:
BBjAdminException
-
copyDictionaryToTarget
public void copyDictionaryToTarget(String p_sourceDb, String p_targetDirectory, String p_targetHost, int p_targetPort, boolean p_targetSsl, String p_targetAuthToken) throws BBjAdminException Description copied from interface:BBjAdminBaseCopies all the data dictionary files from the source database to the target directory.- Specified by:
copyDictionaryToTargetin interfaceBBjAdminBase- Throws:
BBjAdminException
-
receiveDictionaryFiles
public void receiveDictionaryFiles(byte[] p_bytes, String p_targetDirectory) throws BBjAdminException - Specified by:
receiveDictionaryFilesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
startDatabaseReloadHelper
- Specified by:
startDatabaseReloadHelperin interfaceBBjAdminBase- Throws:
BBjAdminException
-
renewToken
Description copied from interface:BBjAdminBaseRenews the current token for that Admin API connection setting the duration of validity to the value specified in p_duration. To use the default value configured for the server, specify 0.- Specified by:
renewTokenin interfaceBBjAdminBase- Parameters:
p_duration- The duration of the validity of the new token. 0 uses the default duration configured for the server. Note: You cannot set a duration that exceeds the default configured for the server. No exception is thrown, but it will simply defer to the default value.- Returns:
- Renews the current token for the Admin API connection and returns the new token.
- Throws:
BBjAdminException- If there is a problem or if the provided token is no longer valid/expired.
-
renewToken
Description copied from interface:BBjAdminBaseRenews the current token for that Admin API connection setting the duration of validity to the value specified in p_duration. To use the default value configured for the server, specify 0.- Specified by:
renewTokenin interfaceBBjAdminBase- Parameters:
p_duration- The duration of the validity of the new token. 0 uses the default duration configured for the server. Note: You cannot set a duration that exceeds the default configured for the server. No exception is thrown, but it will simply defer to the default value.p_invalidateOld- If true, this will invalidate the old token and remove it from the list.- Returns:
- Renews the current token for the Admin API connection and returns the new token.
- Throws:
BBjAdminException- If there is a problem or if the provided token is no longer valid/expired.
-
renewToken
Description copied from interface:BBjAdminBaseRenews the current token for that Admin API connection setting the duration of validity to the value specified in p_duration. To use the default value configured for the server, specify 0.- Specified by:
renewTokenin interfaceBBjAdminBase- Parameters:
p_token- The token to renew. The token must be currently valid or an exception will be thrown.p_duration- The duration of the validity of the new token. 0 uses the default duration configured for the server. Note: You cannot set a duration that exceeds the default configured for the server. No exception is thrown, but it will simply defer to the default value.- Returns:
- Renews the current token for the Admin API connection and returns the new token.
- Throws:
BBjAdminException- If there is a problem or if the provided token is no longer valid/expired.
-
getActiveTokens
Description copied from interface:BBjAdminBaseReturns all the information about active authorization tokens. It does not return the token itself.- Specified by:
getActiveTokensin interfaceBBjAdminBase- Returns:
- List of all the active authorization tokens.
- Throws:
BBjAdminException
-
getTokenInfo
Description copied from interface:BBjAdminBaseTakes the specified token and returns the BBjAdminTokenInfo object containing the payload for the token. The token must be currently active.- Specified by:
getTokenInfoin interfaceBBjAdminBase- Parameters:
p_tokenOrTokenId- The token itself or the ID returned in a BBjAdminTokenInfo object.- Returns:
- The BBjAdminTokenInfo for the specified token.
- Throws:
BBjAdminException
-
invalidateToken
Description copied from interface:BBjAdminBaseInvalidates the specified token. The value specified can be either the token itself or the ID returned in a BBjAdminTokenInfo object.- Specified by:
invalidateTokenin interfaceBBjAdminBase- Parameters:
p_tokenOrTokenId- The token itself or the ID returned in a BBjAdminTokenInfo object.- Throws:
BBjAdminException
-
getLicenseInformation
Description copied from interface:BBjAdminBaseReturns information about the license used by BBjServices.- Specified by:
getLicenseInformationin interfaceBBjAdminBase- Returns:
- The license information.
- Throws:
BBjAdminException- If there is a problem.
-
forceCloseOpenFiles
public int forceCloseOpenFiles(String p_filenameMatchRegex, Map<String, String> p_modeMatchRegex) throws BBjAdminExceptionDescription copied from interface:BBjAdminBaseForces any open files matching the p_filenameMatchRegex value (null means ignore this match) and/or open files with MODE information matching p_modeMatchRegex.- Specified by:
forceCloseOpenFilesin interfaceBBjAdminBase- Parameters:
p_filenameMatchRegex- Regular expression to determine filename matches. Null to ignore the filename.p_modeMatchRegex- Map of MODE names to a regular expression to determine matches on open files. Null to ignore the MODEs.- Returns:
- The number of matching files found and thus closed.
- Throws:
BBjAdminException
-
reconfigureServices
Description copied from interface:BBjAdminBaseThis method can be called to reconfigure the services. This checks the current configurations and starts/stops/restarts any services as necessary to apply the configuration changes. This method can be used to stop or start a service after configuration changes have been made. Keep in mind that it applies to all configured services. So, if any configuration changes were made to any services, those changes will be applied.- Specified by:
reconfigureServicesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setUser2FASettings
public void setUser2FASettings(String p_user, String p_secretKey, boolean p_enabled) throws BBjAdminException Description copied from interface:BBjAdminBaseEnables/disables TOTP 2 factor authentication for the specified user. NOTE: Once enabled, the user will not be able to login without also providing the TOTP code valid at the time of the login attempt.- Specified by:
setUser2FASettingsin interfaceBBjAdminBase- Parameters:
p_user- User to enable/disable TOTPp_secretKey- Provide a valid key generated by calling generateTotpSecretKey(). Set to null to disable TOTP for the user.p_enabled- Whether 2FA is enabled for this user. Only applies if 2FA is enabled at the global level. This allows the admin to disable it for some users.- Throws:
BBjAdminException- If there is a problem.
-
isUser2FA
Description copied from interface:BBjAdminBaseChecks to see if the specified user is using TOTP 2 factor authentication.- Specified by:
isUser2FAin interfaceBBjAdminBase- Parameters:
p_user- User to check.- Returns:
- True if the user is using TOTP 2 factor authentication.
- Throws:
BBjAdminException
-
generate2FASecretKey
Description copied from interface:BBjAdminBaseGenerates a secret key to use for TOTP and the Google Authenticator app.- Specified by:
generate2FASecretKeyin interfaceBBjAdminBase- Throws:
BBjAdminException
-
check2FACode
public boolean check2FACode(String p_secretKey, String p_code, long p_validitySeconds) throws BBjAdminException Description copied from interface:BBjAdminBaseChecks to see if the specified code is valid given the specified secret key and the validity in seconds used to generate the secret key. The validity in seconds must match the validity in seconds used when calling generateTotpSecretKey().- Specified by:
check2FACodein interfaceBBjAdminBase- Parameters:
p_secretKey- Secret key used to generate the code.p_code- The code.p_validitySeconds- The validity in seconds used to generate the secret key when calling getTotpCode().- Returns:
- True if the code is valid. False otherwise.
- Throws:
BBjAdminException
-
get2FACode
Description copied from interface:BBjAdminBaseGenerates a new TOTP code based on the secret key and validity in seconds. Note that the validity in seconds must match when making calls to checkTotpCode().- Specified by:
get2FACodein interfaceBBjAdminBase- Parameters:
p_secretKey- Secret key used to generate the code.p_validitySeconds- The validity in seconds used to generate the secret key when calling generateTotpSecretKey().- Throws:
BBjAdminException
-
send2FACode
Description copied from interface:BBjAdminBaseSends the specified user a 2-factor authentication code via email. If the user is not set up to receive 2FA codes via email, the user does not have their email address configured, or if the default 2FA settings for BBjServices are disabled or not set up to send codes via email, the method returns false.- Specified by:
send2FACodein interfaceBBjAdminBase- Parameters:
p_user- User to send the code to.- Returns:
- True if a code was successfully sent. False if it was unable or not supposed to send a code to the user.
- Throws:
BBjAdminException- If there is some kind of error that occurs during the process.
-
setUserInfo
Description copied from interface:BBjAdminBaseSets additional user info such as first/last/middle name, email, text number, etc.- Specified by:
setUserInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setUserInfo
Description copied from interface:BBjAdminBaseSets additional user info such as first/last/middle name, email, text number, etc. for a list of users in bulk.- Specified by:
setUserInfoin interfaceBBjAdminBase- Parameters:
p_infos- List of BBjAdminUser objects to set the values for in bulk.- Throws:
BBjAdminException
-
getUserInfo
Description copied from interface:BBjAdminBaseReturns additional user info for the specified user.- Specified by:
getUserInfoin interfaceBBjAdminBase- Throws:
BBjAdminException
-
send2FASetupEmail
Description copied from interface:BBjAdminBaseOnce 2-factor authorization is enabled in the EM or Admin API, this call will send an email to each user in the specified list of usernames with any setup instructions (e.g. information to download the TOTP app used by your organization, a QR code, etc. See the template file multifactor-auth-template.html located in the BBj install cfg directory to customize the message and layout.- Specified by:
send2FASetupEmailin interfaceBBjAdminBase- Parameters:
p_subject- Subject to include for the email sent to users.p_usernames- Set of usernames to send the email to.- Throws:
BBjAdminException
-
getUsers
Description copied from interface:BBjAdminBaseReturns a list of all users including their additional info such as name, email, etc.- Specified by:
getUsersin interfaceBBjAdminBase- Returns:
- List of all the users.
- Throws:
BBjAdminException
-
validate2FACode
Description copied from interface:BBjAdminBaseValidates the specified 2FA code for the user who created this Admin API object.- Specified by:
validate2FACodein interfaceBBjAdminBase- Parameters:
p_code- 2FA code to validate.- Returns:
- True if the code is valid as of the time of this call. False if not.
- Throws:
BBjAdminException
-
generateKeyPair
Description copied from interface:BBjAdminBaseGenerates a public/private key pair. BBjServices will store the public key while this method returns the private key. Make sure to keep the private key because it cannot be retrieved again and the server does not keep a record of it. The string returned is a string representation of a JSON document containing the private key. This should be stored in a plain text file name private-key in a subdirectory named .bbj under the user's home directory.- Specified by:
generateKeyPairin interfaceBBjAdminBase- Parameters:
p_user- User to generate the key for. If the user does not have server config permissions, they will only have the ability to generate a key for themselves.p_description- A description for the key pair to use for bookkeeping purposes.- Returns:
- The private key.
- Throws:
BBjAdminException
-
getPublicKeys
Description copied from interface:BBjAdminBaseReturns a list of all the public key info available on the server for the specified user.- Specified by:
getPublicKeysin interfaceBBjAdminBase- Parameters:
p_username- Return the keys for the specified username.- Returns:
- List of key information for the user.
- Throws:
BBjAdminException
-
removePublicKey
Description copied from interface:BBjAdminBaseRemoves the specified public key if present.- Specified by:
removePublicKeyin interfaceBBjAdminBase- Parameters:
p_username- User the key belongs to.p_publicKeyId- The ID for the public key.- Throws:
BBjAdminException
-
removeAllPublicKeys
Description copied from interface:BBjAdminBaseRemoves all the public keys for the specified user. Note that only an admin with the ability to add/remove user accounts can remove the keys for another user. Anyone else may only remove their own keys.- Specified by:
removeAllPublicKeysin interfaceBBjAdminBase- Parameters:
p_username- Username for the public keys to remove.- Throws:
BBjAdminException
-
getPublicKeys
Description copied from interface:BBjAdminBaseReturns a list of all the public key info available on the server for all users. If the user does not have admin permissions, they will only see their own keys.- Specified by:
getPublicKeysin interfaceBBjAdminBase- Returns:
- List of key information for all visible users.
- Throws:
BBjAdminException
-
notifyProcess
Description copied from interface:BBjAdminBaseSends a notification to the specified process where it will pop up a message box to display to display the provided message and title to the user of that process.- Specified by:
notifyProcessin interfaceBBjAdminBase- Parameters:
p_id- BBj process ID (INFO 3,0)p_message- Message to display.p_title- Title for the message dialog.- Throws:
BBjAdminException- If there is a problem.
-
notifyAllProcesses
Description copied from interface:BBjAdminBaseSends a notification to all running processes where it will pop up a message box to display to display the provided message and title to the user of that process.- Specified by:
notifyAllProcessesin interfaceBBjAdminBase- Parameters:
p_message- Message to display.p_title- Title for the message dialog.- Throws:
BBjAdminException- If there is a problem.
-
createDownloadPackage
Description copied from interface:BBjAdminBaseUsed to combine the specified list of files into a zip file that can be downloaded from the returned URL. Once the file is downloaded, it will be deleted from the server.- Specified by:
createDownloadPackagein interfaceBBjAdminBase- Parameters:
p_files- List of files to include in the zip package. Must include full paths.- Returns:
- URL for the path to download the file from Jetty.
- Throws:
BBjAdminException
-
isSAM
Description copied from interface:BBjAdminBaseChecks to verify that the server has a valid Software Asset Management license available. This is really only used by the Enterprise Manager.- Specified by:
isSAMin interfaceBBjAdminBase- Returns:
- True if SAM is available.
- Throws:
BBjAdminException
-
getLanguageServer
Description copied from interface:BBjAdminBaseReturns the configuration information for the BBj Language Server.- Specified by:
getLanguageServerin interfaceBBjAdminBase- Returns:
- Throws:
BBjAdminException
-
setLanguageServerConfiguration
public void setLanguageServerConfiguration(BBjAdminLanguageServer p_service) throws BBjAdminException Description copied from interface:BBjAdminBaseUpdates the configuration for the BBj Language Server.- Specified by:
setLanguageServerConfigurationin interfaceBBjAdminBase- Throws:
BBjAdminException
-
startLanguageServer
Description copied from interface:BBjAdminBaseStart the BBj Language Server using the current configuration.- Specified by:
startLanguageServerin interfaceBBjAdminBase- Throws:
BBjAdminException
-
stopLanguageServer
Description copied from interface:BBjAdminBaseStop the BBj Language Server.- Specified by:
stopLanguageServerin interfaceBBjAdminBase- Throws:
BBjAdminException
-
setAutoRenewToken
- Specified by:
setAutoRenewTokenin interfaceBBjAdminBase- Throws:
BBjAdminException
-
convertFiles
Description copied from interface:BBjAdminBaseConverts the list of full paths to files on the BBjServices server to the specified file type.- Specified by:
convertFilesin interfaceBBjAdminBase- Throws:
BBjAdminException
-
isWebUiAvailable
Description copied from interface:BBjAdminBaseReturns true if the WebUI functionality was installed with BBj.- Specified by:
isWebUiAvailablein interfaceBBjAdminBase- Returns:
- true if the WebUI functionality was installed with BBj.
- Throws:
BBjAdminException
-
isWebUiLicensed
Description copied from interface:BBjAdminBaseReturns true if the BBjServices installation has a valid WEBUI license.- Specified by:
isWebUiLicensedin interfaceBBjAdminBase- Returns:
- true if the BBjServices installation has a valid WEBUI license.
- Throws:
BBjAdminException
-
isFulltextIndexesAllowed
Description copied from interface:BBjAdminBaseReturns whether FULLTEXT indexes are allowed on this BBj Services installation.- Specified by:
isFulltextIndexesAllowedin interfaceBBjAdminBase- Returns:
- null if FULLTEXT indexes are allowed. If not allowed, returns a message indicating why not.
- Throws:
BBjAdminException
-
isWebUiEnabled
Description copied from interface:BBjAdminBaseReturns true if the WebUI functionality is enabled on the server.- Specified by:
isWebUiEnabledin interfaceBBjAdminBase- Returns:
- true if the WebUI functionality is enabled on the server.
- Throws:
BBjAdminException
-