|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.api.Admin
public class Admin
All actions that can be take on a file type
| Constructor Summary | |
|---|---|
Admin(Session session,
String serverName,
boolean useAdminPort)
Constructor |
|
| Method Summary | |
|---|---|
int |
addFileType(String[] args)
Method to create file type. |
int |
addFileTypeToRole(String[] args)
Method to add file type to role |
int |
addRole(String[] args)
Method to add new role access |
int |
addUser(String[] args)
Method to add new user |
int |
addUserToRole(String[] args)
Method to add user to role |
int |
changePassword(String userName,
String password)
Method to change a user's password, without verifying old password. |
int |
changePassword(String userName,
String oldPassword,
String newPassword)
Method to change a user's password, verifying old password. |
int |
close()
Method to close this admin channel. |
int |
delFileType(String fileType)
Method to remove file type |
int |
delFileTypeFromRole(String[] args)
Method to remove file type from role |
int |
delRole(String role)
Method to remove user role |
int |
delUser(String name)
Method to remove user |
int |
delUserFromRole(String[] args)
Method to remove user |
int |
dSync(String fileType,
Date datetime)
Method to synchronize file system with data in database |
int |
fSync(String fileType,
Date datetime)
Method to synchronize database with file system |
String |
getServerName()
Accessor method to get the server name |
int |
hotboot()
Method to issue a hotboot request to the server. |
int |
logMessage(String message)
Method to log a message from admin client to the server log. |
int |
makeDomainFile(String fileName)
Method to create a domain file |
int |
modifyFileType(String[] args)
Method to modify a filetype field. |
int |
modifyRole(String[] args)
Method to modify the set of capabilities associated with a role. |
int |
modifyUserAccess(String[] args)
Method to modify user access level. |
int |
moveBetweenFileTypes(String[] args,
boolean preserve,
boolean replace)
Method to move files from one filetype to another within the same server group. |
int |
setLocks(String[] args)
Set file lock values. |
int |
showConnections()
Method to count number of users connected to server |
int |
showFileTypes(String name)
Method to return list of file types in db or info about specific file type |
int |
showFiletypesForRole(String[] args)
Method to show filetypes associated with a role |
int |
showLocks(String[] args)
Method to show locks of records found in the db |
int |
showMemory()
Method to show memory usage |
int |
showRoles(String role)
Method to show user records found in the db |
int |
showRolesForFileType(String[] args)
Method to show roles associated with a file type |
int |
showRolesForUser(String[] args)
Method to show roles associated with a user |
int |
showServerParameters(String name)
Method to show user records found in the db |
int |
showServers()
Method to show servers |
int |
showUsers(String name)
Method to show user records found in the db |
int |
showUsersForRoles(String[] args)
Method to show users associated with a role |
int |
shutdown(String timeout)
Method to shutdown server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Admin(Session session,
String serverName,
boolean useAdminPort)
throws SessionException
session - a transfer session, for maintining file types and
connections.serverName - the Komodo server nameuseAdminPort - the admin port uses port + 1 as admin port.
SessionException - when failed to initialize| Method Detail |
|---|
public final String getServerName()
public final int addFileTypeToRole(String[] args)
throws SessionException
args - arguments to command
SessionException - when failed to queue request
public final int addUserToRole(String[] args)
throws SessionException
args - arguments to command
SessionException - when failed to queue request
public final int dSync(String fileType,
Date datetime)
throws SessionException
fileType - the file type namedatetime - the data time stamp
SessionException - when failed to queue request
public final int fSync(String fileType,
Date datetime)
throws SessionException
fileType - the file typedatetime - the time stamp
SessionException - when failed to queue request
public final int hotboot()
throws SessionException
SessionException - when failed to queue request
public final int makeDomainFile(String fileName)
throws SessionException
fileName - the domain file name
SessionException - when failed to queue request
public final int addFileType(String[] args)
throws SessionException
args - arguments to command
SessionException - when failed to queue request
public final int addRole(String[] args)
throws SessionException
args - arguments to command
SessionException - when failed to queue request
public final int addUser(String[] args)
throws SessionException
args - arguments to command
SessionException - when failed to queue request
public final int changePassword(String userName,
String password)
throws SessionException
userName - the user namepassword - the user's new password
SessionException - when failed to queue request
public final int changePassword(String userName,
String oldPassword,
String newPassword)
throws SessionException
userName - the user nameoldPassword - the user's old passwordnewPassword - the user's new password
SessionException - when failed to queue request
public final int delRole(String role)
throws SessionException
role - the role name
SessionException - when failed to queue request
public final int delUser(String name)
throws SessionException
name - the user name
SessionException - when failed to queue request
public final int delFileType(String fileType)
throws SessionException
fileType - the file type name
SessionException - when failed to queue request
public final int delFileTypeFromRole(String[] args)
throws SessionException
args - type and role
SessionException - when failed to queue request
public final int delUserFromRole(String[] args)
throws SessionException
args - the name and role
SessionException - when failed to queue request
public final int showConnections()
throws SessionException
SessionException - when failed to queue request
public final int showRolesForFileType(String[] args)
throws SessionException
args - the name and role
SessionException - when failed to queue request
public final int showFiletypesForRole(String[] args)
throws SessionException
args - the role and optinal type
SessionException - when failed to queue request
public final int showRolesForUser(String[] args)
throws SessionException
args - the user name
SessionException - when failed to queue request
public final int showUsersForRoles(String[] args)
throws SessionException
args - the role name
SessionException - when failed to queue request
public final int showFileTypes(String name)
throws SessionException
name - the file type name
SessionException - when failed to queue request
public final int showMemory()
throws SessionException
SessionException - when failed to queue request
public final int showServerParameters(String name)
throws SessionException
name - the server name
SessionException - when failed to queue request
public final int showServers()
throws SessionException
SessionException - when failed to queue request
public final int showRoles(String role)
throws SessionException
role - the role name
SessionException - when failed to queue request
public final int showLocks(String[] args)
throws SessionException
args - Array of arguments in positiontypeExpr - the name or wildcard expression for filetypenameExpr - the name or wildcard expression for fileslockValue - value of file lock, acts a filter
SessionException - when failed to queue request
public final int showUsers(String name)
throws SessionException
name - the user name
SessionException - when failed to queue request
public final int shutdown(String timeout)
throws SessionException
timeout - the timeout in seconds
SessionException - when failed to queue requestpublic final int close()
close in interface Closable
public final int moveBetweenFileTypes(String[] args,
boolean preserve,
boolean replace)
throws SessionException
args - source filetype, destination filetype, options, expressionpreserve - Preserve flag, if true, then modification flag in
database will not be modifiedreplace - Replaces existing file on the server if true
SessionException
public final int modifyFileType(String[] args)
throws SessionException
args - filetype, field, value
SessionException
public final int logMessage(String message)
throws SessionException
message - Message to write to log
SessionException - when failed to queue request
public final int modifyRole(String[] args)
throws SessionException
args - Array of arguments = [roleName, operation, capString].
operation is one of {add, delete, set}, and capString is a
string of the integer interpretation.
SessionException - when failed to queue request
public final int modifyUserAccess(String[] args)
throws SessionException
args - Array of arguments = [userName, access level, switch].
SessionException - when failed to queue request
public final int setLocks(String[] args)
throws SessionException
args - Array of arguments = [filetype expr,
file expr, new value] or [filetype expr, file expr,
new value, old value].
SessionException - when failed to queue request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||