public class AdminServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements AdminService
AdminService.App| Constructor and Description |
|---|
AdminServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAcl(java.lang.String resourceType,
Acl acl,
java.util.Map<java.lang.Integer,java.lang.String> subjMap)
Adds new set of ACLs based on the contents of the given ACL definition.
|
boolean |
addAclInstance(java.lang.String instanceName)
Creates an empty container for the specified ACL instance.
|
boolean |
addCert(CertDef cert)
Adds a new certificate according to its definition.
|
boolean |
addDatabase(java.lang.String name,
DatabaseDef logging)
Adds the database definition for the given instance name
|
java.lang.Boolean |
addDatabaseToTenant(java.lang.String tenantName,
TenantDatabaseDescriptor db)
Function for adding a database instance to a tenant.
|
boolean |
addExports(java.lang.String name,
ExportsDef logging)
Adds the export definition for the given name
|
boolean |
addGroup(GroupDef group)
Adds new group account definition.
|
boolean |
addLogging(java.lang.String name,
LoggingDef logging)
Adds the logging definition for the given name
|
boolean |
addOsUser(OsUserDef user)
Adds the OS user.
|
boolean |
addPersistence(java.lang.String name,
PersistenceDef persistence)
Adds the persistence definition for the given instance name
|
boolean |
addProcess(ProcessDef process,
java.io.Serializable ext)
Adds new process account definition.
|
boolean |
addRuntime(java.lang.String serverName,
java.lang.String accountName,
RuntimeDef runtime)
Adds the runtime definition for the given server and account names.
|
boolean |
addStartup(java.lang.String name,
StartupDef logging)
Adds the startup definition for the given instance name
|
java.lang.Boolean |
addTenant(java.lang.String tenantName,
java.util.List<TenantDatabaseDescriptor> databases)
Add a tenant to the list.
|
boolean |
addUser(UserDef user,
java.io.Serializable ext)
Adds new user account definition.
|
boolean |
backupDirectory(java.lang.String newfile)
Backup the directory into a new file.
|
int |
bulkAuthModeUpdate(int targetAccounts,
java.lang.String[] excludedAccounts,
int authMode,
java.lang.String authPlugin)
Preforms bulk update of authentication settings of the accounts of the
specified type.
|
void |
cancelRereadDir()
Cancel (possibly) planned refreshing operation.
|
boolean |
canRefresh()
Check if current user can perform a refresh.
|
boolean |
changeGroupUsers(java.lang.String name,
java.lang.String[] additions,
java.lang.String[] deletions)
Changes the group by adding and/or removing users.
|
boolean |
changeHolidays(java.util.Date[] additions,
java.util.Date[] deletions)
Modifies defined holidays.
|
JarOpErrorCode |
changeJarHookClass(java.lang.String jar,
java.lang.String hookClass)
Change the server-wide or global hook class of the specific jar.
|
JarOpErrorCode |
changeJarHooksType(boolean serverWide,
boolean move)
Make the current server use server-wide or global hooks, optionally
copying or moving hooks from one scope to another.
|
boolean |
changeResourceNames(java.lang.String[] additions,
java.lang.String[] deletions)
Modifies resource name definitions.
|
java.lang.Boolean |
changeTenantStatus(java.lang.String tenantName,
boolean enable)
Enable/Disable a specific tenant.
|
TaggedName |
checkGroup(java.lang.String name)
Check the group account existence.
|
TaggedName |
checkOsUser(java.lang.String name)
Check the user account existence.
|
TaggedName |
checkProcess(java.lang.String name)
Check the process account existence.
|
TaggedName |
checkUser(java.lang.String name)
Check the user account existence.
|
void |
clearMessages()
Clears the old messages saved on the server, if any.
|
boolean |
cloneAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid,
int cloneOid)
Clones the specified ACL to another position within the same ACL instance.
|
boolean |
cloneAclInstance(java.lang.String instanceFrom,
java.lang.String instanceTo)
Clones entire ACL instance.
|
boolean |
cloneAclInstance(java.lang.String resourceType,
java.lang.String instanceFrom,
java.lang.String instanceTo)
Clones the resource specific part of an ACL instance.
|
boolean |
cloneDatabase(java.lang.String nameFrom,
java.lang.String nameTo)
Clones the database definition from the source to the target.
|
boolean |
cloneExports(java.lang.String nameFrom,
java.lang.String nameTo)
Clones the export definition from the source to the target.
|
boolean |
cloneGroup(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
Clones an existing group account into a new one.
|
boolean |
cloneLogging(java.lang.String nameFrom,
java.lang.String nameTo)
Clones the logging definition from the source to the target.
|
boolean |
clonePersistence(java.lang.String nameFrom,
java.lang.String nameTo)
Clones the persistence definition from the source to the target.
|
boolean |
cloneProcess(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
Clones an existing process account into a new one.
|
boolean |
cloneRuntime(java.lang.String serverNameFrom,
java.lang.String accountNameFrom,
java.lang.String serverNameTo,
java.lang.String accountNameTo)
Clones the runtime definition from the source to the target.
|
boolean |
cloneStartup(java.lang.String nameFrom,
java.lang.String nameTo)
Clones the startup definition from the source to the target.
|
boolean |
cloneUser(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
Clones an existing user account into a new one, password included.
|
boolean |
cloneUser(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls,
java.lang.String newPassword)
Clones an existing user account into a new one and assigns the provided
password to the clone.
|
boolean |
deleteAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid)
Deletes the specified ACL from the specified ACL instance.
|
boolean |
deleteAclInstance(java.lang.String instanceName)
Deletes entire ACL instance from the directory.
|
boolean |
deleteAclInstance(java.lang.String resourceType,
java.lang.String instanceName)
Deletes the resource specific part of an ACL instance from the directory.
|
boolean |
deleteCert(java.lang.String alias,
boolean force)
Deletes an existing certificate conditionally or unconditionally.
|
boolean |
deleteDatabase(java.lang.String name)
Deletes the database definition of the given database name.
|
java.lang.Boolean |
deleteDatabaseFromTenant(java.lang.String tenantName,
java.lang.String pdbName)
Delete a database instance that is assigned to a tenant.
|
boolean |
deleteExports(java.lang.String name)
Deletes the export definition of the given name.
|
boolean |
deleteGroup(java.lang.String name)
Deletes a group account definition.
|
boolean |
deleteLogging(java.lang.String name)
Deletes the logging definition of the given name.
|
boolean |
deleteOsUser(java.lang.String name)
Deletes an OS user account definition.
|
boolean |
deletePersistence(java.lang.String name)
Deletes the persistence definition of the given name.
|
boolean |
deleteProcess(java.lang.String name)
Deletes a process account definition.
|
boolean |
deleteRuntime(java.lang.String serverName,
java.lang.String accountName)
Deletes the runtime definition for the given server and account names.
|
boolean |
deleteStartup(java.lang.String name)
Deletes the startup definition of the given name.
|
java.lang.Boolean |
deleteTenant(java.lang.String tenantName)
Function for deleting a tenant from the master table.
|
boolean |
deleteUser(java.lang.String name)
Deletes a user account definition.
|
JarOpErrorCode |
deregisterJar(java.lang.String jar,
boolean force,
boolean removeFromDirectory)
Remove registration for the specified jar.
|
JarOpErrorCode |
deregisterJarAPI(java.lang.String jar,
java.lang.String interfaceClass,
boolean force)
Remove registration of the specified API in the specified jar.
|
JarOpErrorCode |
deregisterJarFromDirectory(java.lang.String jar,
java.lang.String storedHookClass)
Remove jar registration from the directory.
|
java.lang.Float |
forceFloatSerialization()
This method forces GWT to include Float into the list of serializable types.
|
private date[] |
fromDTO(java.util.Date[] dts)
Converts
java.util.Date[], the array of data transferable objects, into
the array of com.goldencode.p2j.util.date objects. |
AclDef |
getAcl(java.lang.String resourceType,
java.lang.String instanceName)
Gets the full ACL definition information from the directory for the
specified ACL instance and resource type.
|
SessionInfo[] |
getActiveSessions(java.lang.String jar,
java.lang.String apiInterfaceClass)
Get the list of all active sessions which have executed the specified
API or API(s) associated to the specified jar.
|
AdminDef |
getAdminDef()
Returns the configuration information about the administration interface
itself.
|
AclDef[] |
getAllAcls(java.lang.String instanceName)
Gets the full ACL definition information from the directory for the
specified ACL instance or all of them.
|
AuditDef |
getAudit()
Gets the audit.
|
AuthConfigDef |
getAuthConfig()
Gets authentication configuration, which includes authentication mode,
password aging and security tracing level.
|
java.lang.String[] |
getAvailableJarAPIImplClasses(java.lang.String jar,
java.lang.String interfaceClass)
Get the list of classes which reside in the specified jar and
statically implement all methods defined by the specified interface.
|
java.lang.String[] |
getAvailableJarAPIInterfaces(java.lang.String jar,
boolean showRegistered)
Get the list of interfaces available in the specified jar file.
|
java.lang.String[] |
getAvailableJarHookClasses(java.lang.String jar)
Get the list of classes which reside into the specified jar file and
implement the
InitTermListener
interface. |
CertDef |
getCert(java.lang.String alias)
Returns a DER-encoded certificate like those found in *.PEM files.
|
TaggedName[] |
getCertAccounts(java.lang.String alias)
Returns an array of all account names with their description for accounts
sharing this certificate.
|
java.util.Map<java.lang.String,java.lang.String> |
getCertificateDNProperties(CertDef cd,
boolean owner)
Get a map of the owner or issuer Distinctive Name properties.
|
java.lang.String |
getCertificateDNProperty(CertDef cd,
java.lang.String prop,
boolean owner)
Get the value of the specified property, from the Distinctive Name entry associated
with the owner or issuer.
|
TaggedName[] |
getCertificateHierarchy(java.lang.String alias)
Given a certificate alias, it will compute the certificate signing chain.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCertificateProperties(CertDef cd)
Loads the X509 certificate from the specified definition and returns
a map with properties for:
CertificateUtils.CERT_OWNER - this property will keep a Map of Distinctive
Name properties for the owner
CertificateUtils.CERT_ISSUER - this property will keep a Map of Distinctive
Name properties for the issuer
CertificateUtils.CERT_VALIDITY_NOT_BEFORE - the date from which this
certificate starts to be valid. |
TaggedName[] |
getCertProcesses(java.lang.String alias)
Returns an array of process account names with their description for
processes sharing this certificate.
|
TaggedName[] |
getCertUsers(java.lang.String alias)
Returns an array of user account names with their description for users
sharing this certificate.
|
DatabaseDef |
getDatabase(java.lang.String name)
Returns the database definition by the given database instance name.
|
java.lang.String[] |
getDatabases()
Get the list of databases managed by this P2J server.
|
java.lang.String[] |
getDatabaseTables(java.lang.String database)
Get the list of tables of the given database.
|
AclDef |
getEffectiveAcls(java.lang.String resourceType)
Gets the combined ACL definition information from the directory for the
specified resource type.
|
ExportsDef |
getExports(java.lang.String name)
Returns the export definition by the given export instance name.
|
GroupDef |
getGroup(java.lang.String name)
Returns the group definition for the specified group name.
|
RecordInfo[] |
getLockRecords()
Gets the records which have been previously locked in the given context
using
lockRecords(com.goldencode.p2j.admin.RecordInfo[]). |
LoggingDef |
getLogging(java.lang.String name)
Returns the logging definition by the given name.
|
TaggedName |
getManagedLibsDirInformation()
Get information about managed libraries directory (path to it and
information whether it exists).
|
java.lang.String[][] |
getMessages(boolean all)
Returns an array of messages accumulated since the previous call or
all messages since the last message cleanup.
|
OsUserDef |
getOsUser(java.lang.String name)
Returns the OS user account definition for the specified account name.
|
PersistenceDef |
getPersistence(java.lang.String name)
Returns the persistence definition by the given persistence instance name.
|
ReportPreview |
getPreviewImages(ReportRequest reportRequest,
com.google.gwt.view.client.Range range)
Gets report preview.
|
ProcessDef |
getProcess(java.lang.String name)
Returns the process definition for the specified process name.
|
AdminProfile[] |
getProfile(java.lang.String[] name)
Returns the admin permissions profile for an arbitrary set of resource
instance names.
|
AdminProfile[] |
getProfile(java.lang.String name,
int[] perm)
Returns the admin permissions profile for an arbitrary set of permissions
for a resource instance name.
|
RecordLockInfo[] |
getRecordLockList()
Creates a report of all record locks for the server.
|
TaggedName[] |
getRegisteredJarAPIs(java.lang.String jar)
Get the list of APIs registered for the specified jar.
|
TaggedName[] |
getRegisteredJars()
Get the list of registered jars (which represent customer libs).
|
java.util.Map<java.lang.String,java.lang.Object> |
getReportParametersMap()
Returns the map of report parameters to their values saved in the directory.
|
java.lang.String |
getResourceType(java.lang.String name)
Returns the registered resource type name for the given resource plugin.
|
RuntimeDef |
getRuntime(java.lang.String serverName,
java.lang.String accountName)
Returns the runtime definition for the given server and account names.
|
java.lang.String |
getServerName()
Returns the server's name.
|
SessionInfo[] |
getSessionList()
Creates a report of all current user and process sessions.
|
StartupDef |
getStartup(java.lang.String name)
Returns the startup definition by the given startup instance name.
|
java.lang.String |
getStoredJarHookClass(java.lang.String jar)
Get hook class specified in the directory for the target jar.
|
java.lang.String[] |
getUnregisteredJars()
Get the list of jars, which reside in the customer libs directory,
but haven't been registered yet and do not present in the server
classpath.
|
UserDef |
getUser(java.lang.String name)
Returns the user account definition for the specified account name.
|
java.lang.String |
getVersionInfo()
Returns the current application version.
|
boolean |
isMaster()
Tells whether the server can modify the directory.
|
boolean |
isRefreshPending()
Check if there is pending security cache refresh.
|
java.lang.Boolean |
isSelfSigned(CertDef cert)
Check if the given certificate is self-signed.
|
java.lang.Boolean |
isTenantEnabled(java.lang.String tenantName)
Check if a specific tenant is enabled or not.
|
java.lang.Boolean |
isUsingMultiClassLoader()
Allows to determine whether
MultiClassLoader is used as the
system class loader. |
java.lang.Boolean |
isUsingServerWideHooks()
Returns information whether server-wide or global hooks are used for
the current server.
|
java.lang.String[] |
listAclInstances()
Locates all instances of ACLs in the directory and returns their names.
|
java.lang.String[] |
listAclInstances(java.lang.String resourceType)
Locates all instances of ACLs in the directory and returns their names
for those instances which have ACLs defined for the specified resource
type.
|
TaggedName[] |
listAssociatedFwdUsers(java.lang.String osUser)
Returns an array of defined FWD user names, associated with the OS user.
|
TaggedName[] |
listAuthCerts(boolean unusedOnly)
Returns an array of defined Certificate Authority certificates
with their distinctive names.
|
TaggedName[] |
listAuthPlugins()
Get the list of available auth plugins.
|
java.lang.String[] |
listDatabaseInstances()
Returns the list of database instances.
|
java.lang.String[] |
listExportsInstances()
Returns the list of export instances.
|
TaggedName[] |
listGroups()
Returns an array of defined group names.
|
TaggedName[] |
listGroupUsers(java.lang.String name)
Enumerates the users of a named group.
|
java.util.Date[] |
listHolidays()
Returns an array of defined holidays.
|
java.lang.String[] |
listInstanceAcls(java.lang.String instanceName)
Lists resource names for which the specified ACL instance has ACLs
defined.
|
java.lang.String[] |
listLoggingInstances()
Returns the list of logging instances.
|
TaggedName[] |
listOsUsers()
Returns an array of defined OS user names and their hashed passwords.
|
TaggedName[] |
listPeerCerts(boolean unusedOnly)
Returns an array of defined peer (non-CA) certificates
with their distinctive names.
|
java.lang.String[] |
listPersistenceInstances()
Returns the list of persistence instances.
|
TaggedName[] |
listProcesses()
Returns an array of defined process names with their descriptions.
|
java.lang.String[] |
listResourceNames()
Returns an array of resource plugin names.
|
java.lang.String[] |
listRuntimeAccounts()
Returns the list of runtime accounts names.
|
java.lang.String[] |
listRuntimeNames()
Returns the list of runtime names.
|
java.lang.String[] |
listRuntimeServers()
Returns the list of runtime servers.
|
java.lang.String[] |
listServers()
Returns the list of all server instances found in the directory
under the "/server" node.
|
java.lang.String[] |
listServers(java.lang.String containers)
Returns the list of server instances under the "/server" node, that
have the specified container (or nested chain of) as a child.
|
java.lang.String[] |
listStartupInstances()
Returns the list of startup instances.
|
java.util.List<TenantManager.Tenant> |
listTenants()
Get a list with all the tenants.
|
TaggedName[] |
listUserGroups(java.lang.String name)
Enumerates the groups the named user is part of.
|
TaggedName[] |
listUsers()
Returns an array of defined user account names and their owners.
|
boolean |
lockForRereadDir(int seconds)
Lock directory for rereading from the file.
|
boolean |
lockRecords(RecordInfo[] records)
Lock the specified records.
|
boolean |
moveAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid,
int newOid)
Moves the specified ACL to another position within the same ACL instance.
|
boolean |
moveAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid,
java.lang.String newInstanceName)
Moves the specified ACL to another ACL instance, private or shared.
|
boolean |
moveAclInstance(java.lang.String instanceFrom,
java.lang.String instanceTo)
Moves entire ACL instance.
|
boolean |
moveAclInstance(java.lang.String resourceType,
java.lang.String instanceFrom,
java.lang.String instanceTo)
Moves the resource specific part of an ACL instance.
|
boolean |
moveCert(java.lang.String aliasFrom,
java.lang.String aliasTo)
Changes the certificate's alias.
|
boolean |
moveDatabase(java.lang.String nameFrom,
java.lang.String nameTo)
Moves the database definition from the source to the target.
|
boolean |
moveExports(java.lang.String nameFrom,
java.lang.String nameTo)
Moves the export definition from the source to the target.
|
boolean |
moveLogging(java.lang.String nameFrom,
java.lang.String nameTo)
Moves the logging definition from the source to the target.
|
boolean |
movePersistence(java.lang.String nameFrom,
java.lang.String nameTo)
Moves the persistence definition from the source to the target.
|
boolean |
moveRuntime(java.lang.String serverNameFrom,
java.lang.String accountNameFrom,
java.lang.String serverNameTo,
java.lang.String accountNameTo)
Moves the runtime definition from the source to the target.
|
boolean |
moveStartup(java.lang.String nameFrom,
java.lang.String nameTo)
Moves the startup definition from the source to the target.
|
java.lang.String |
peekMessage()
Returns the most recent server message without changing its state
on the server.
|
JarOpErrorCode |
registerJar(java.lang.String jar,
java.lang.String hookClass,
boolean storeInDirectory)
Register the specified jar file (which represent a customer lib).
|
JarOpErrorCode |
registerJarAPI(java.lang.String interfaceClass,
java.lang.String implementationClass)
Register API specified by the given interface and implementation class.
|
int |
rereadDirectory()
Reread the directory file into the backend's cache after obtaining
a refresh lock.
|
boolean |
resequenceAcls(java.lang.String resourceType,
java.lang.String instanceName,
int start,
int step)
Assigns new object IDs sequentially for all ACLs in the given ACL instance
and resource type.
|
java.lang.String |
searchCert(java.lang.String dn)
Searches the CA directory for an alias of the certificate by the
distinctive name of the subject.
|
java.lang.String[] |
searchRuntimeByAccount(java.lang.String account,
java.lang.String itemName)
Returns the list of target runtime names for the given account and the given item name.
|
boolean |
setAcl(java.lang.String resourceType,
Acl acl,
java.util.Map<java.lang.Integer,java.lang.String> subjMap,
boolean setInstance,
boolean setInstanceMode,
boolean setSubjects,
boolean setRights)
Conditionally edits the existing ACL based on the contents of the given
ACL and the selected conditions.
|
boolean |
setAudit(AuditDef audit)
Sets the audit.
|
boolean |
setAuthConfig(AuthConfigDef authConfig)
Sets authentication configuration from the specified instance, which
includes authentication mode, password aging and security tracing level.
|
boolean |
setCert(CertDef cert)
Replaces an existing certificate with the given one.
|
boolean |
setDatabase(DatabaseDef database)
Sets the database definition.
|
boolean |
setExports(ExportsDef logging)
Sets the export definition.
|
boolean |
setGroup(GroupDef group)
Changes the group definition for the named group.
|
boolean |
setLogging(LoggingDef logging)
Sets the logging definition.
|
boolean |
setOsUser(OsUserDef user)
Sets the OS user.
|
boolean |
setPersistence(PersistenceDef persistence)
Sets the persistence definition.
|
boolean |
setProcess(ProcessDef process)
Changes the process definition for the named process.
|
boolean |
setProcess(ProcessDef process,
java.io.Serializable ext)
Changes the process definition for the named process.
|
boolean |
setRuntime(RuntimeDef runtime)
Sets the runtime definition.
|
boolean |
setStartup(StartupDef startup)
Sets the startup definition.
|
boolean |
setTargetFile(java.lang.String name,
boolean create)
Sets the specified directory file as the offline target.
|
int |
setTargetLive(boolean stayCurrent)
Sets the live server's directory as the target.
|
boolean |
setUser(UserDef user)
Changes the user account definition for the named account.
|
boolean |
setUser(UserDef user,
java.io.Serializable ext)
Changes the user account definition for the named account.
|
boolean |
shutdown()
Shuts the server down.
|
int |
targetRefresh()
Refreshes the current security cache if the target is the live directory
and only if there were changes performed since the last call to the
targetRefresh().
|
void |
terminateSession(int sid)
Forcibly terminate the specified session.
|
private java.util.Date[] |
toDTO(date[] dts)
Converts
com.goldencode.p2j.util.date[] to the array of
java.util.Date data transferable objects. |
boolean |
unlockRecords()
Unlock the records which has been previously locked in the given context
using
lockRecords(com.goldencode.p2j.admin.RecordInfo[]). |
private static UserDef |
updateHashedPassword(UserDef userDef)
Update the hashed password if the value of the plain password is given and then the plain
password is cleared.
|
java.lang.Boolean |
updateTenant(java.lang.String tenantName,
java.lang.String pdbName,
java.util.Map<java.lang.String,java.lang.String> values)
Update a tenant from the master table.
|
int |
validateCertificate(CertDef cert)
Validate the given certificate, by its PEM data.
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic java.lang.String getServerName()
getServerName in interface AdminServicepublic boolean isMaster()
isMaster in interface AdminServicetrue if it canpublic int setTargetLive(boolean stayCurrent)
setTargetLive in interface AdminServicestayCurrent - if true, all operations affect the most current
generation of the security cache, otherwise they affect
the generation attached to the admin sessionpublic boolean setTargetFile(java.lang.String name,
boolean create)
setTargetFile in interface AdminServicename - name of a directory file to use as the targetcreate - true means a new directory file should be created,
otherwise the named directory file should exist.true if the new target was set successfullypublic int targetRefresh()
targetRefresh in interface AdminServicepublic boolean isRefreshPending()
isRefreshPending in interface AdminServicetrue if refresh is pending and false
is there is no pending refresh or current user has not enough
rights to perform it.public boolean canRefresh()
canRefresh in interface AdminServicetrue user has enough rights to perform refresh.public java.lang.String[][] getMessages(boolean all)
getMessages in interface AdminServiceall - if true, then old and new messages are retrieved,
otherwise new messages onlypublic java.lang.String peekMessage()
peekMessage in interface AdminServicenull if nothing is generatedpublic void clearMessages()
clearMessages in interface AdminServicepublic AdminDef getAdminDef()
getAdminDef in interface AdminServicepublic AdminProfile[] getProfile(java.lang.String[] name)
getProfile in interface AdminServicename - array of admin non-leaf resource instance names to querynullpublic AdminProfile[] getProfile(java.lang.String name, int[] perm)
getProfile in interface AdminServicename - admin leaf resource instance name to queryperm - array of permissions to querynullpublic boolean backupDirectory(java.lang.String newfile)
backupDirectory in interface AdminServicenewfile - name of a backup file to createtrue if backup was successful.public boolean lockForRereadDir(int seconds)
lockForRereadDir in interface AdminServiceseconds - Seconds to wait before lock will expire.true if lock was successful.public int rereadDirectory()
rereadDirectory in interface AdminServiceAdminConstants.ERR_NO_LOCK - is returned when no lock is presentAdminConstants.ERR_LOCK_EXPIRED- is returned if lock is present
but it is expired or belongs to other thread.AdminConstants.ERR_CANT_REFRESH_BACKEND - is returned when
backend can't update directory.AdminConstants.ERR_ILLEGAL - is returned when no rights etcpublic void cancelRereadDir()
cancelRereadDir in interface AdminServicepublic SessionInfo[] getSessionList()
getSessionList in interface AdminServicenull if insufficient rights exist to obtain the
list.public void terminateSession(int sid)
terminateSession in interface AdminServicesid - Session identifier.public RecordLockInfo[] getRecordLockList()
getRecordLockList in interface AdminServicenull if insufficient rights exist to obtain the
list.public java.lang.String[] getDatabases()
getDatabases in interface AdminServicepublic java.lang.String[] getDatabaseTables(java.lang.String database)
getDatabaseTables in interface AdminServicedatabase - Target database.public boolean lockRecords(RecordInfo[] records)
You can unlock records using unlockRecords().
lockRecords in interface AdminServicerecords - Records to lock.true if records were successfully locked.public RecordInfo[] getLockRecords()
lockRecords(com.goldencode.p2j.admin.RecordInfo[]).getLockRecords in interface AdminServicepublic boolean unlockRecords()
lockRecords(com.goldencode.p2j.admin.RecordInfo[]).unlockRecords in interface AdminServicetrue if records were successfully unlocked.public boolean shutdown()
shutdown in interface AdminServicetrue if successfulpublic java.lang.String[] listResourceNames()
listResourceNames in interface AdminServicepublic java.lang.String getResourceType(java.lang.String name)
getResourceType in interface AdminServicename - plugin namenull if no matchpublic boolean changeResourceNames(java.lang.String[] additions,
java.lang.String[] deletions)
changeResourceNames in interface AdminServiceadditions - array of resource names to add or null
if no additions are specifieddeletions - array of resource names to delete or null
if no deletions are specifiedpublic AuthConfigDef getAuthConfig()
getAuthConfig in interface AdminServicepublic boolean setAuthConfig(AuthConfigDef authConfig)
setAuthConfig in interface AdminServiceauthConfig - an instance loaded with the required configurationprivate date[] fromDTO(java.util.Date[] dts)
java.util.Date[], the array of data transferable objects, into
the array of com.goldencode.p2j.util.date objects.dts - The array of data transferable objects representing by java.util.Datecom.goldencode.p2j.util.date objectsprivate java.util.Date[] toDTO(date[] dts)
com.goldencode.p2j.util.date[] to the array of
java.util.Date data transferable objects.dts - The array of com.goldencode.p2j.util.date objectspublic java.util.Date[] listHolidays()
listHolidays in interface AdminServicepublic boolean changeHolidays(java.util.Date[] additions,
java.util.Date[] deletions)
changeHolidays in interface AdminServiceadditions - array of dates to add or null
if no additions are specifieddeletions - array of dates to delete or null
if no deletions are specifiedpublic AuditDef getAudit()
getAudit in interface AdminServicepublic boolean setAudit(AuditDef audit)
setAudit in interface AdminServiceaudit - The auditpublic TaggedName[] listGroups()
listGroups in interface AdminServicenullpublic TaggedName checkGroup(java.lang.String name)
checkGroup in interface AdminServicename - group namenull if the named group does not existpublic GroupDef getGroup(java.lang.String name)
getGroup in interface AdminServicename - group namenull if no such grouppublic boolean setGroup(GroupDef group)
setGroup in interface AdminServicegroup - group definitiontrue if successfully changed the grouppublic boolean addGroup(GroupDef group)
addGroup in interface AdminServicegroup - group definition for a new accounttrue if successfully added the grouppublic boolean deleteGroup(java.lang.String name)
deleteGroup in interface AdminServicename - group name for the group being deletedtrue if successfully deleted the grouppublic boolean cloneGroup(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
cloneGroup in interface AdminServicenameFrom - group name for the source groupnameTo - group name for the cloneacls - true tells to clone ACLs as welltrue if successfully cloned the grouppublic TaggedName[] listGroupUsers(java.lang.String name)
listGroupUsers in interface AdminServicename - group namenull
if there is no such grouppublic boolean changeGroupUsers(java.lang.String name,
java.lang.String[] additions,
java.lang.String[] deletions)
changeGroupUsers in interface AdminServicename - group nameadditions - array of user names to be added to the group; may be emptydeletions - array of user names to be excluded from the group;
may be emptytrue if successfully changed the grouppublic TaggedName[] listUsers()
listUsers in interface AdminServicenullpublic TaggedName checkUser(java.lang.String name)
checkUser in interface AdminServicename - user account namenull if the named account does not existpublic UserDef getUser(java.lang.String name)
getUser in interface AdminServicename - user account namenull if no such userpublic boolean setUser(UserDef user)
setUser in interface AdminServiceuser - user account definitiontrue if successfully changed the accountpublic boolean setUser(UserDef user, java.io.Serializable ext)
setUser in interface AdminServiceuser - user account definitionext - optional extension container for custom account extensionstrue if successfully changed the accountpublic boolean addUser(UserDef user, java.io.Serializable ext)
addUser in interface AdminServiceuser - user account definitionext - optional extension container for custom account extensionstrue if successfully added the accountpublic boolean deleteUser(java.lang.String name)
deleteUser in interface AdminServicename - user account name being deletedtrue if successfully deleted the accountpublic boolean cloneUser(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
cloneUser in interface AdminServicenameFrom - user account name for the sourcenameTo - user account name for the cloneacls - true tells to clone ACLs as welltrue if successfully cloned the user accountpublic OsUserDef getOsUser(java.lang.String name)
getOsUser in interface AdminServicename - OS user account namenull if no such userpublic boolean deleteOsUser(java.lang.String name)
deleteOsUser in interface AdminServicename - OS user account name being deletedtrue if successfully deleted the accountpublic boolean addOsUser(OsUserDef user)
addOsUser in interface AdminServiceuser - the usertrue if successfully added the userpublic boolean setOsUser(OsUserDef user)
setOsUser in interface AdminServiceuser - the usertrue if successfully changed the userpublic TaggedName[] listAssociatedFwdUsers(java.lang.String osUser)
listAssociatedFwdUsers in interface AdminServiceosUser - The OS user namenullpublic boolean cloneUser(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls,
java.lang.String newPassword)
cloneUser in interface AdminServicenameFrom - user account name for the sourcenameTo - user account name for the cloneacls - true tells to clone ACLs as wellnewPassword - a replacement password for the clonetrue if successfully cloned the user accountpublic TaggedName[] listUserGroups(java.lang.String name)
listUserGroups in interface AdminServicename - user account namenull if there is no such user etcpublic TaggedName[] listOsUsers()
listOsUsers in interface AdminServicenullpublic TaggedName checkOsUser(java.lang.String name)
checkOsUser in interface AdminServicename - Os user account namenull if the account doesn't existpublic TaggedName[] listProcesses()
listProcesses in interface AdminServicenullpublic TaggedName checkProcess(java.lang.String name)
checkProcess in interface AdminServicename - process account namenull if the named account does not existpublic ProcessDef getProcess(java.lang.String name)
getProcess in interface AdminServicename - process namenull if no such processpublic boolean setProcess(ProcessDef process)
setProcess in interface AdminServiceprocess - process definitiontrue if successfully changed the processpublic boolean setProcess(ProcessDef process, java.io.Serializable ext)
setProcess in interface AdminServiceprocess - process definitionext - optional extension container for custom account extensionstrue if successfully changed the processpublic boolean addProcess(ProcessDef process, java.io.Serializable ext)
addProcess in interface AdminServiceprocess - process definition for a new accountext - optional extension container for custom account extensionstrue if successfully added the processpublic boolean deleteProcess(java.lang.String name)
deleteProcess in interface AdminServicename - process account name being deletedtrue if successfully deleted the processpublic boolean cloneProcess(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
cloneProcess in interface AdminServicenameFrom - process name for the sourcenameTo - process name for the cloneacls - true tells to clone ACLs as welltrue if successfully cloned the processpublic TaggedName[] listAuthCerts(boolean unusedOnly)
listAuthCerts in interface AdminServiceunusedOnly - if true, lists unused certificates only, otherwise
all certificatesnullpublic TaggedName[] listPeerCerts(boolean unusedOnly)
listPeerCerts in interface AdminServiceunusedOnly - if true, lists unused certificates only, otherwise
all certificatesnullpublic TaggedName[] getCertUsers(java.lang.String alias)
getCertUsers in interface AdminServicealias - certificate alias namenullpublic TaggedName[] getCertProcesses(java.lang.String alias)
getCertProcesses in interface AdminServicealias - certificate alias namenullpublic TaggedName[] getCertAccounts(java.lang.String alias)
getCertAccounts in interface AdminServicealias - certificate alias namenullpublic CertDef getCert(java.lang.String alias)
getCert in interface AdminServicealias - the alias of the certificate to getnullpublic boolean setCert(CertDef cert)
setCert in interface AdminServicecert - encoded certificatetrue if replaced, false if errorspublic boolean addCert(CertDef cert)
addCert in interface AdminServicecert - encoded certificatetrue if added, false if errorspublic boolean moveCert(java.lang.String aliasFrom,
java.lang.String aliasTo)
moveCert in interface AdminServicealiasFrom - current certificate's aliasaliasTo - new certificate's aliastrue if changed, false if errorspublic java.lang.String searchCert(java.lang.String dn)
searchCert in interface AdminServicedn - distinctive namenull.public boolean deleteCert(java.lang.String alias,
boolean force)
deleteCert in interface AdminServicealias - the alias of the certificate being deletedforce - if true, the certificate is deleted even if
in usetrue if deleted, false if errorspublic java.lang.String[] listAclInstances()
ACL instances are the directory branches that store ACLs. The shared
instance is the one found under /security/acl branch.
Private instances are found under /security/acls/name
branches.
listAclInstances in interface AdminServicepublic java.lang.String[] listAclInstances(java.lang.String resourceType)
ACL instances are the directory branches that store ACLs. The shared
instance is the one found under /security/acl branch.
Private instances are found under /security/acls/name
branches.
listAclInstances in interface AdminServiceresourceType - name of the resource of interestpublic java.lang.String[] listInstanceAcls(java.lang.String instanceName)
listInstanceAcls in interface AdminServiceinstanceName - name of the ACL instance; empty string for the shared onepublic AclDef getAcl(java.lang.String resourceType, java.lang.String instanceName)
getAcl in interface AdminServiceresourceType - name of the resource of interest; can't be nullinstanceName - name of the ACL instance; empty string for the shared one;
can't be nullnullpublic AclDef[] getAllAcls(java.lang.String instanceName)
getAllAcls in interface AdminServiceinstanceName - name of the ACL instance; empty string for the shared one;
if null, all ACLs are returned and some may be
combinednullpublic AclDef getEffectiveAcls(java.lang.String resourceType)
getEffectiveAcls in interface AdminServiceresourceType - name of the resource of interest; can't be nullnullpublic boolean addAcl(java.lang.String resourceType,
Acl acl,
java.util.Map<java.lang.Integer,java.lang.String> subjMap)
addAcl in interface AdminServiceresourceType - name of the resource to add the ACL foracl - ACL definition, that should come fully defined, including the
instance name.subjMap - a map to translate numeric subject IDs back to namestrue if added, false if errorspublic boolean setAcl(java.lang.String resourceType,
Acl acl,
java.util.Map<java.lang.Integer,java.lang.String> subjMap,
boolean setInstance,
boolean setInstanceMode,
boolean setSubjects,
boolean setRights)
setAcl in interface AdminServiceresourceType - name of the resource to set the ACL foracl - ACL definitionsubjMap - a map to translate numeric subject IDs back to names;
needed only when setSubjects is true and can be
null all other timessetInstance - true if setting the resource instance namesetInstanceMode - true if setting the resource instance name modesetSubjects - true if setting the subjects IDssetRights - true if setting the rights for this ACLtrue if set, false if errorspublic boolean moveAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid,
java.lang.String newInstanceName)
moveAcl in interface AdminServiceresourceType - name of the resource of interestinstanceName - name of the source ACL instance; empty string for the shared oneoid - ACL object ID that selects the ACL to movenewInstanceName - name of the target ACL instance; empty string for the shared onetrue if moved, false if errorspublic boolean moveAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid,
int newOid)
moveAcl in interface AdminServiceresourceType - name of the resource of interestinstanceName - name of the source ACL instance; empty string for the shared oneoid - ACL object ID that selects the ACL to movenewOid - new ACL object IDtrue if moved, false if errorspublic boolean deleteAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid)
deleteAcl in interface AdminServiceresourceType - name of the resource of interestinstanceName - name of the source ACL instance; empty string for the shared oneoid - ACL object ID that selects the ACL to deletetrue if deleted, false if errorspublic boolean cloneAcl(java.lang.String resourceType,
java.lang.String instanceName,
int oid,
int cloneOid)
cloneAcl in interface AdminServiceresourceType - name of the resource of interestinstanceName - name of the source ACL instance; empty string for the shared oneoid - ACL object ID that selects the ACL to clonecloneOid - ACL object ID for the clonetrue if cloned, false if errorspublic boolean resequenceAcls(java.lang.String resourceType,
java.lang.String instanceName,
int start,
int step)
resequenceAcls in interface AdminServiceresourceType - name of the resource of interestinstanceName - name of the source ACL instance; empty string for the shared onestart - the starting numberstep - the incrementtrue if success, false if errorspublic boolean addAclInstance(java.lang.String instanceName)
addAclInstance in interface AdminServiceinstanceName - name of the ACL instance; empty string for the shared onetrue if created, false if errorspublic boolean deleteAclInstance(java.lang.String instanceName)
deleteAclInstance in interface AdminServiceinstanceName - name of the ACL instance; empty string for the shared onetrue if deleted, false if errorspublic boolean deleteAclInstance(java.lang.String resourceType,
java.lang.String instanceName)
deleteAclInstance in interface AdminServiceresourceType - name of the resource of interestinstanceName - name of the ACL instance; empty string for the shared onetrue if deleted, false if errorspublic boolean cloneAclInstance(java.lang.String instanceFrom,
java.lang.String instanceTo)
cloneAclInstance in interface AdminServiceinstanceFrom - name of the source ACL instance; empty string for the shared oneinstanceTo - name of the target ACL instance; empty string for the shared onetrue if cloned, false if errorspublic boolean cloneAclInstance(java.lang.String resourceType,
java.lang.String instanceFrom,
java.lang.String instanceTo)
cloneAclInstance in interface AdminServiceresourceType - name of the resource of interestinstanceFrom - name of the source ACL instance; empty string for the shared oneinstanceTo - name of the target ACL instance; empty string for the shared onetrue if cloned, false if errorspublic boolean moveAclInstance(java.lang.String instanceFrom,
java.lang.String instanceTo)
moveAclInstance in interface AdminServiceinstanceFrom - name of the source ACL instance; empty string for the shared oneinstanceTo - name of the target ACL instance; empty string for the shared onetrue if moved, false if errorspublic boolean moveAclInstance(java.lang.String resourceType,
java.lang.String instanceFrom,
java.lang.String instanceTo)
moveAclInstance in interface AdminServiceresourceType - name of the resource of interestinstanceFrom - name of the source ACL instance; empty string for the shared oneinstanceTo - name of the target ACL instance; empty string for the shared onetrue if moved, false if errorspublic java.lang.String[] listServers()
listServers in interface AdminServicepublic java.lang.String[] listServers(java.lang.String containers)
listServers in interface AdminServicecontainers - one or more container names separated by "/"public TaggedName[] listAuthPlugins()
listAuthPlugins in interface AdminServicenull if no plugins are available.public int bulkAuthModeUpdate(int targetAccounts,
java.lang.String[] excludedAccounts,
int authMode,
java.lang.String authPlugin)
bulkAuthModeUpdate in interface AdminServicetargetAccounts - Type of accounts to update. Account.ACC_USER and
Account.ACC_GROUP are supported.excludedAccounts - The list of IDs of the accounts that should NOT be updated. Can
be null.authMode - Authentication mode to set.authPlugin - Authentication plugin to set.-1 if an error
has occured.public TaggedName[] getRegisteredJars()
getRegisteredJars in interface AdminServiceTaggedName represents a single jar and contains jar
file name, fully qualified class name of the active hook (it
may be null) and value indicating whether active
hook class matches stored hook class which is
"true" if they match.public java.lang.String[] getUnregisteredJars()
getUnregisteredJars in interface AdminServicepublic java.lang.String[] getAvailableJarHookClasses(java.lang.String jar)
InitTermListener
interface. These classes can be used as "hook" classes which should
be called after the jar representing a customer lib was successfully
registered, to initialize it.getAvailableJarHookClasses in interface AdminServicejar - The name of the target jar file.InitTermListener interface.public java.lang.String getStoredJarHookClass(java.lang.String jar)
getStoredJarHookClass in interface AdminServicejar - The name of the target jar file (should be loaded).null if the jar has
no hook specified.public JarOpErrorCode registerJar(java.lang.String jar, java.lang.String hookClass, boolean storeInDirectory)
registerJar in interface AdminServicejar - The name of the jar file to register.hookClass - Fully qualified name of the "hook" class for this jar, can be
null.storeInDirectory - If true then the jar is registered in the
directory, else only runtime registration is performed.public JarOpErrorCode deregisterJar(java.lang.String jar, boolean force, boolean removeFromDirectory)
deregisterJar in interface AdminServicejar - Jar file which registration should be removed.force - If it is true then any sessions that have executed
API(s) associated to this jar are forcibly terminated. If this
parameter is false then, if the jar has any
sessions that have executed API(s) associated to it, the
function returns
JarOpErrorCode.ACTIVE_SESSIONS_PRESENT.removeFromDirectory - If true then the jar registration is removed from
the directory, else only runtime deregistration is performed.public JarOpErrorCode deregisterJarFromDirectory(java.lang.String jar, java.lang.String storedHookClass)
deregisterJarFromDirectory in interface AdminServicejar - The name of the jar to be deregistered.storedHookClass - The name of the hook class which is stored for this jar in the
directory or null if no hook is defined for this
jar.public JarOpErrorCode changeJarHookClass(java.lang.String jar, java.lang.String hookClass)
changeJarHookClass in interface AdminServicejar - The name of the target jar file.hookClass - The new hook class for the target jar. null
indicates that no hook class should be specified.public TaggedName[] getRegisteredJarAPIs(java.lang.String jar)
getRegisteredJarAPIs in interface AdminServicejar - The name of the target jar file.public java.lang.String[] getAvailableJarAPIInterfaces(java.lang.String jar,
boolean showRegistered)
getAvailableJarAPIInterfaces in interface AdminServicejar - The name of the target jar file.showRegistered - If true then resulting list contains interfaces
that have already have been registered for an API for the given
jar (assuming that each API is defined using an unique
interface).public java.lang.String[] getAvailableJarAPIImplClasses(java.lang.String jar,
java.lang.String interfaceClass)
getAvailableJarAPIImplClasses in interface AdminServicejar - The name of the target jar file.interfaceClass - Fully qualified name of the target interface.public JarOpErrorCode registerJarAPI(java.lang.String interfaceClass, java.lang.String implementationClass)
registerJarAPI in interface AdminServiceinterfaceClass - Fully qualified name of the interface which defines the target
API.implementationClass - Fully qualified name of the class which implements the target
API.public JarOpErrorCode deregisterJarAPI(java.lang.String jar, java.lang.String interfaceClass, boolean force)
deregisterJarAPI in interface AdminServicejar - The name of the target jar file.interfaceClass - Fully qualified name of the interface which defines the target
API.force - If it is true then any sessions that have executed
the target API are forcibly terminated. If this parameter is
false then, if the jar has any
sessions that have executed API(s) associated to it, the
function returns
JarOpErrorCode.ACTIVE_SESSIONS_PRESENT.public JarOpErrorCode changeJarHooksType(boolean serverWide, boolean move)
changeJarHooksType in interface AdminServiceserverWide - if true then server-wide hooks should be used,
else global hooks should be used.move - if true then existing hooks are copied/moved from
one scope to another, otherwise they don't.public SessionInfo[] getActiveSessions(java.lang.String jar, java.lang.String apiInterfaceClass)
getActiveSessions in interface AdminServicejar - The name of the target jar file.apiInterfaceClass - Fully qualified name of the interface which defines the target
API. Can be null if you want to get sessions of
all APIs of the target jar.public java.lang.Boolean isUsingServerWideHooks()
isUsingServerWideHooks in interface AdminServicetrue if server-wide hooks are used,
false if global hooks are used, null
if you have insufficient access rights.public java.lang.Boolean isUsingMultiClassLoader()
MultiClassLoader is used as the
system class loader.isUsingMultiClassLoader in interface AdminServicetrue if
MultiClassLoader is used
as the system class loader, false if the standard
class loader is used, null if you do not have
enough permissionspublic TaggedName getManagedLibsDirInformation()
getManagedLibsDirInformation in interface AdminService"true" if this directory exists and is accessible.
If you do not have admin rights, null is returned.public java.lang.String[] listLoggingInstances()
AdminServicelistLoggingInstances in interface AdminServicepublic LoggingDef getLogging(java.lang.String name)
AdminServicegetLogging in interface AdminServicename - The given namepublic boolean setLogging(LoggingDef logging)
AdminServicesetLogging in interface AdminServicelogging - The logging definitionpublic boolean addLogging(java.lang.String name,
LoggingDef logging)
AdminServiceaddLogging in interface AdminServicename - The given namelogging - The logging definitionpublic boolean cloneLogging(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicecloneLogging in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean moveLogging(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicemoveLogging in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean deleteLogging(java.lang.String name)
AdminServicedeleteLogging in interface AdminServicename - The given namepublic java.lang.String[] listExportsInstances()
AdminServicelistExportsInstances in interface AdminServicepublic ExportsDef getExports(java.lang.String name)
AdminServicegetExports in interface AdminServicename - The given export instance namepublic boolean setExports(ExportsDef logging)
AdminServicesetExports in interface AdminServicelogging - The export definitionpublic boolean addExports(java.lang.String name,
ExportsDef logging)
AdminServiceaddExports in interface AdminServicename - The given namelogging - The export definitionpublic boolean cloneExports(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicecloneExports in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean moveExports(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicemoveExports in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean deleteExports(java.lang.String name)
AdminServicedeleteExports in interface AdminServicename - The given namepublic java.lang.String[] listStartupInstances()
AdminServicelistStartupInstances in interface AdminServicepublic StartupDef getStartup(java.lang.String name)
AdminServicegetStartup in interface AdminServicename - The given startup instance namepublic boolean setStartup(StartupDef startup)
AdminServicesetStartup in interface AdminServicestartup - The startup definitionpublic boolean addStartup(java.lang.String name,
StartupDef logging)
AdminServiceaddStartup in interface AdminServicename - The given namelogging - The startup definitionpublic boolean cloneStartup(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicecloneStartup in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean moveStartup(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicemoveStartup in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean deleteStartup(java.lang.String name)
AdminServicedeleteStartup in interface AdminServicename - The given namepublic java.lang.String[] listPersistenceInstances()
AdminServicelistPersistenceInstances in interface AdminServicepublic PersistenceDef getPersistence(java.lang.String name)
AdminServicegetPersistence in interface AdminServicename - The given persistence instance namepublic boolean setPersistence(PersistenceDef persistence)
AdminServicesetPersistence in interface AdminServicepersistence - The persistence definitionpublic boolean addPersistence(java.lang.String name,
PersistenceDef persistence)
AdminServiceaddPersistence in interface AdminServicename - The given namepersistence - The persistence definitionpublic boolean clonePersistence(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServiceclonePersistence in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean movePersistence(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicemovePersistence in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean deletePersistence(java.lang.String name)
AdminServicedeletePersistence in interface AdminServicename - The given namepublic java.lang.String[] listDatabaseInstances()
AdminServicelistDatabaseInstances in interface AdminServicepublic DatabaseDef getDatabase(java.lang.String name)
AdminServicegetDatabase in interface AdminServicename - The given database instance namepublic boolean setDatabase(DatabaseDef database)
AdminServicesetDatabase in interface AdminServicedatabase - The database definitionpublic boolean addDatabase(java.lang.String name,
DatabaseDef logging)
AdminServiceaddDatabase in interface AdminServicename - The given namelogging - The database definitionpublic boolean cloneDatabase(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicecloneDatabase in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean moveDatabase(java.lang.String nameFrom,
java.lang.String nameTo)
AdminServicemoveDatabase in interface AdminServicenameFrom - The source namenameTo - The target namepublic boolean deleteDatabase(java.lang.String name)
AdminServicedeleteDatabase in interface AdminServicename - The given database namepublic java.lang.String[] listRuntimeNames()
AdminServicelistRuntimeNames in interface AdminServicepublic java.lang.String[] listRuntimeServers()
AdminServicelistRuntimeServers in interface AdminServicepublic java.lang.String[] listRuntimeAccounts()
AdminServicelistRuntimeAccounts in interface AdminServicepublic java.lang.String[] searchRuntimeByAccount(java.lang.String account,
java.lang.String itemName)
AdminServicesearchRuntimeByAccount in interface AdminServiceaccount - The given accountitemName - The given item namepublic RuntimeDef getRuntime(java.lang.String serverName, java.lang.String accountName)
AdminServicegetRuntime in interface AdminServiceserverName - The given server nameaccountName - The given account namepublic boolean setRuntime(RuntimeDef runtime)
AdminServicesetRuntime in interface AdminServiceruntime - The runtime definitionpublic boolean addRuntime(java.lang.String serverName,
java.lang.String accountName,
RuntimeDef runtime)
AdminServiceaddRuntime in interface AdminServiceserverName - The given server nameaccountName - The given account nameruntime - The runtime definitionpublic boolean cloneRuntime(java.lang.String serverNameFrom,
java.lang.String accountNameFrom,
java.lang.String serverNameTo,
java.lang.String accountNameTo)
AdminServicecloneRuntime in interface AdminServiceserverNameFrom - The source server nameaccountNameFrom - The source account nameserverNameTo - The target server nameaccountNameTo - The target account namepublic boolean moveRuntime(java.lang.String serverNameFrom,
java.lang.String accountNameFrom,
java.lang.String serverNameTo,
java.lang.String accountNameTo)
AdminServicemoveRuntime in interface AdminServiceserverNameFrom - The source server nameaccountNameFrom - The source account nameserverNameTo - The target server nameaccountNameTo - The target account namepublic boolean deleteRuntime(java.lang.String serverName,
java.lang.String accountName)
AdminServicedeleteRuntime in interface AdminServiceserverName - The given server nameaccountName - The given account namepublic TaggedName[] getCertificateHierarchy(java.lang.String alias)
getCertificateHierarchy in interface AdminServicealias - The certificate from which to start chain buildingpublic int validateCertificate(CertDef cert)
validateCertificate in interface AdminServicecert - The PEM representation of the certificatepublic java.util.Map<java.lang.String,java.lang.String> getCertificateDNProperties(CertDef cd, boolean owner)
getCertificateDNProperties in interface AdminServicecd - The certificate definition from which the info will be extracted.owner - true if the owner property should be retrieved;
false for the issuer property.null if the certificate PEM data
could not be loaded.public java.lang.String getCertificateDNProperty(CertDef cd, java.lang.String prop, boolean owner)
getCertificateDNProperty in interface AdminServicecd - The certificate definition from which the info will be extracted.owner - true if the owner property should be retrieved;
false for the issuer property.prop - The property namepublic java.util.Map<java.lang.String,java.lang.Object> getCertificateProperties(CertDef cd)
CertificateUtils.CERT_OWNER - this property will keep a Map of Distinctive
Name properties for the owner
CertificateUtils.CERT_ISSUER - this property will keep a Map of Distinctive
Name properties for the issuer
CertificateUtils.CERT_VALIDITY_NOT_BEFORE - the date from which this
certificate starts to be valid.
CertificateUtils.CERT_VALIDITY_NOT_AFTER - the date from which this
certificate's validity period ends.
getCertificateProperties in interface AdminServicecd - The certificate definition from which the info will be extracted.null if the certificate PEM data
could not be loaded.public java.lang.Boolean isSelfSigned(CertDef cert)
isSelfSigned in interface AdminServicecert - The certificate which should be checked.true if this certificate is self-signedpublic ReportPreview getPreviewImages(ReportRequest reportRequest, com.google.gwt.view.client.Range range) throws java.io.IOException
getPreviewImages in interface AdminServicereportRequest - Holds all required data to build the target reportrange - The preview rangejava.io.IOException - The IO exception if there is a failed IO operationpublic java.lang.String getVersionInfo()
getVersionInfo in interface AdminServicepublic java.lang.Float forceFloatSerialization()
AdminServerImpl.getReportParametersMap().forceFloatSerialization in interface AdminServiceprivate static UserDef updateHashedPassword(UserDef userDef)
userDef - User account definitionpublic java.util.Map<java.lang.String,java.lang.Object> getReportParametersMap()
getReportParametersMap in interface AdminServicepublic java.util.List<TenantManager.Tenant> listTenants()
public java.lang.Boolean addTenant(java.lang.String tenantName,
java.util.List<TenantDatabaseDescriptor> databases)
tenantName - The name of the tenant.databases - A list of the databases that will be used by the tenant.true if the operation is performed successfully,
false if the operation is not performed successfully,
null if the caller does not have sufficient rights.public java.lang.Boolean addDatabaseToTenant(java.lang.String tenantName,
TenantDatabaseDescriptor db)
tenantName - The tenant for which to add the database instance.db - The database information to be added.true if the operation is performed successfully,
false if the operation is not performed successfully,
null if the caller does not have sufficient rights.public java.lang.Boolean updateTenant(java.lang.String tenantName,
java.lang.String pdbName,
java.util.Map<java.lang.String,java.lang.String> values)
column values/names are:
tenantName - The name of the tenant that is targeted by the update.pdbName - The physical name of the database that is targeted by the update.values - A Map with pairs (column name - new value) that are intended for the update.true if all the updates are performed successfully,
false if there is at least an update that fails,
null if the caller does not have sufficient rights.public java.lang.Boolean deleteTenant(java.lang.String tenantName)
tenantName - The name of the tenant that is targeted by the delete.true if the operation was successful, false otherwise.
null if the caller does not have sufficient rights.public java.lang.Boolean deleteDatabaseFromTenant(java.lang.String tenantName,
java.lang.String pdbName)
tenantName - The tenant for which to remove the database instance.pdbName - The physical database name for the database to be deleted.true if the operation was successful, false otherwise.
null if the caller does not have sufficient rights.public java.lang.Boolean changeTenantStatus(java.lang.String tenantName,
boolean enable)
tenantName - The tenant to work with.enable - true if the intent is to enable the tenant, false otherwise.true if the operation is performed successfully,
false if the operation is not performed successfully,
null if the caller does not have sufficient rights.public java.lang.Boolean isTenantEnabled(java.lang.String tenantName)
tenantName - The tenant to work with.true if the tenant is enabled, false otherwise.
null if the caller does not have sufficient rights.