public class Client
extends com.stdnet.moveit.api.ClientBase
Before any methods can be called, the host parameters must be configured and the SignOn method called to log on to the MOVEit Transfer host. Once signed on, any of the methods can be called. Many operations are not available based on the permission level of the user used to sign on to the MOVEit Transfer; in cases where the user's permission is not sufficient for the operation, the method will fail and a permission error will be returned from the StatusDescription method.
By default, MOVEit Transfer API Java will not use a proxy server. If you wish to use a proxy, do not use calls to the standard Java method System.setProperty(). Instead, call MOVEit Transfer API Java's useProxy(true) and set the proxy parameters via httpProxyHost(hostname), httpProxyPort(port), etc. There are separate methods for HTTP vs. HTTPS proxies.
Constructor and Description |
---|
Client() |
Client(java.lang.String AuthCode) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
actAsIP()
Returns the ActAs IP address specified during the signon process.
|
int |
addFolder(java.lang.String MOVEitFolder)
Makes a new MOVEit Transfer folder with the given path.
|
int |
addFolder(java.lang.String MOVEitFolder,
int InheritPerms)
Makes a new MOVEit Transfer folder with the given path and assigns initial permissions based on the given method.
|
boolean |
addGroup(java.lang.String GroupName)
Adds a new group with the provided name.
|
boolean |
addGroup(java.lang.String GroupName,
java.lang.String Description)
Adds a new group with the provided name and description.
|
boolean |
addGroupFolderAccess(java.lang.String MOVEitFolder,
java.lang.String GroupName,
java.lang.String PermString)
Grants the specified group access to this folder.
|
boolean |
addGroupToGroupAddressBook(java.lang.String OwnerGroup,
java.lang.String GroupName,
boolean AllowExpansion)
Adds a group to the specified owner group's address book.
|
boolean |
addGroupToUserAddressBook(java.lang.String Owner,
java.lang.String GroupName)
Adds a group to the specified owner's address book.
|
boolean |
addGroupToUserAddressBook(java.lang.String Owner,
java.lang.String GroupName,
boolean AllowExpansion)
Adds a group to the specified owner's address book.
|
int |
addMailbox(java.lang.String MOVEitMailbox)
Makes a new MOVEit Transfer mailbox with the given path for the current user.
|
boolean |
addTemporaryUser(java.lang.String Email,
java.lang.String Password,
java.lang.String RealName)
Adds a new temporary user with the provided attributes.
|
boolean |
addTemporaryUser(java.lang.String Email,
java.lang.String Password,
java.lang.String RealName,
boolean ForceChangePassword)
Adds a new temporary user with the provided attributes.
|
boolean |
addUser(java.lang.String Username,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email,
int Permission)
Adds a new user with the provided attributes.
|
boolean |
addUser(java.lang.String Username,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email,
int Permission,
java.lang.String Notes)
Adds a new user with the provided attributes.
|
boolean |
addUser(java.lang.String Username,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email,
int Permission,
java.lang.String Notes,
boolean ForceChangePassword)
Adds a new user with the provided attributes.
|
boolean |
addUser(java.lang.String Username,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email,
int Permission,
java.lang.String Notes,
boolean ForceChangePassword,
java.lang.String OrgID)
Adds a new user with the provided attributes.
|
boolean |
addUserCertKey(java.lang.String Username,
int DataType,
java.lang.String Data)
Adds an SSL certificate or SSH key to a user's store using provided data.
|
boolean |
addUserFolderAccess(java.lang.String MOVEitFolder,
java.lang.String Username,
java.lang.String PermString)
Grants the specified user access to this folder.
|
boolean |
addUserToGroup(java.lang.String Username,
java.lang.String GroupName)
Adds the specified user to the specified group.
|
boolean |
addUserToGroupAddressBook(java.lang.String OwnerGroup,
java.lang.String Username)
Adds a user to the specified owner group's address book.
|
boolean |
addUserToUserAddressBook(java.lang.String Owner,
java.lang.String Username)
Adds a user to the specified owner's address book.
|
int |
addVirtualFolder(java.lang.String MOVEitFolder,
java.lang.String TargetMOVEitFolder)
Makes a new MOVEit Transfer virtual folder with the given path targeting the given folder.
|
int |
addVirtualFolder(java.lang.String MOVEitFolder,
java.lang.String TargetMOVEitFolder,
int InheritPerms)
Makes a new MOVEit Transfer virtual folder with the given path targeting the given folder and assigns initial permissions based on the given method.
|
java.lang.String |
asAgent()
Gets the current agent string to be logged and
displayed on the MOVEit Transfer server.
|
java.lang.String |
asAgent(java.lang.String sAgent)
Sets an agent string to be logged and displayed on
the MOVEit Transfer server.
|
boolean |
changeFolderSetting(java.lang.String MOVEitFolder,
java.lang.String SettingName,
java.lang.String NewValue)
Attempts to change a setting on the specified folder.
|
boolean |
changeGroupSetting(java.lang.String GroupName,
java.lang.String SettingName,
java.lang.String NewValue)
Attempts to change a setting on the specified group.
|
boolean |
changeUserGroupMembership(java.lang.String GroupName,
java.lang.String Username,
java.lang.String Relationship)
Changes the relationship of the given user to the given group.
|
boolean |
changeUserPassword(java.lang.String Username,
java.lang.String NewPass)
Changes the password of existing user Username to NewPass.
|
boolean |
changeUserSetting(java.lang.String Username,
java.lang.String SettingName,
java.lang.String NewValue)
Attempts to change a setting on the specified user.
|
boolean |
changeUserStatus(java.lang.String Username,
java.lang.String Status)
Changes the status of existing user Username to Status.
|
boolean |
changeUserStatus(java.lang.String Username,
java.lang.String Status,
java.lang.String StatusNote)
Changes the status of existing user Username to Status.
|
java.util.HashMap |
checkMessageRecipients(MOVEitMessageInfo oMsg)
Given a
MOVEitMessageInfo object defining a package to send, checks whether the
assigned recipients are valid for the currently configured "From" user. |
java.lang.String |
clientCertFilePath()
Returns the filename used to provide a client certificates
when connecting to MOVEit Transfer.
|
java.lang.String |
clientCertFilePath(java.lang.String path)
Tells MOVEit Transfer API to use a client certificate from the given file
when connecting to MOVEit Transfer.
|
java.lang.String |
clientCertPassword()
Returns the to the client certificate file.
|
java.lang.String |
clientCertPassword(java.lang.String pw)
Tells MOVEit Transfer API the password to the client certificate file
set in clientCertFilePath.
|
java.lang.String |
clientCertType()
Returns the client certificate file type.
|
java.lang.String |
clientCertType(java.lang.String fileType)
Tells MOVEit Transfer API the type of the client certificate file
set in clientCertFilePath.
|
boolean |
cloneUser(java.lang.String OrigUsername,
java.lang.String NewUsername,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email)
Adds a new user with the provided attributes by cloning the user with the
username provided in OrigUsername.
|
boolean |
cloneUser(java.lang.String OrigUsername,
java.lang.String NewUsername,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email,
java.lang.String Notes)
Adds a new user with the provided attributes by cloning the user with the
username provided in OrigUsername.
|
boolean |
cloneUser(java.lang.String OrigUsername,
java.lang.String NewUsername,
java.lang.String Password,
java.lang.String RealName,
java.lang.String Email,
java.lang.String Notes,
boolean ForceChangePassword)
Adds a new user with the provided attributes by cloning the user with the
username provided in OrigUsername.
|
MOVEitMessageInfo |
composeNewMessage()
Returns a new
MOVEitMessageInfo object with a state of "Pending". |
MOVEitMessageInfo |
composeNewMessage(java.lang.String Recipient)
Returns a new
MOVEitMessageInfo object with a state of "Pending". |
MOVEitMessageInfo |
composeNewMessage(java.lang.String Recipient,
java.lang.String Subject)
Returns a new
MOVEitMessageInfo object with a state of "Pending". |
MOVEitMessageInfo |
composeNewMessage(java.lang.String Recipient,
java.lang.String Subject,
java.lang.String Body)
Returns a new
MOVEitMessageInfo object with a state of "Pending". |
java.lang.String |
copyFile(java.lang.String MOVEitPathFrom,
java.lang.String MOVEitFolderTo)
Copies a file from the specified path to the specified folder.
|
java.lang.String |
copyFileAndConvert(java.lang.String MOVEitPathFrom,
java.lang.String MOVEitFolderTo,
int MOVEitFormat)
Copies a webpost converted into either a CSV file or an XML file from the
specified path to the specified folder.
|
boolean |
deleteFile(java.lang.String MOVEitPath)
Deletes the file with the provided path from MOVEit Transfer.
|
boolean |
deleteFileById(java.lang.String fileId)
Deletes the file with the provided file ID from MOVEit Transfer.
|
boolean |
deleteFolder(java.lang.String MOVEitFolder)
Deletes an existing MOVEit Transfer folder with the given path.
|
boolean |
deleteGroup(java.lang.String GroupName)
Deletes the group specified by GroupName.
|
boolean |
deleteGroupFolderAccess(java.lang.String MOVEitFolder,
java.lang.String GroupName)
Denies the specified group access to this folder.
|
boolean |
deleteGroupFromGroupAddressBook(java.lang.String OwnerGroup,
java.lang.String GroupName)
Deletes a group from the specified owner group's address book.
|
boolean |
deleteGroupFromUserAddressBook(java.lang.String Owner,
java.lang.String GroupName)
Deletes a group from the specified owner's address book.
|
boolean |
deleteMailbox(java.lang.String MOVEitMailbox)
Deletes an existing MOVEit Transfer mailbox with the given path for the current user.
|
boolean |
deleteMessage(java.lang.String MessageID)
Deletes the message from all mailboxes owned by the current user.
|
boolean |
deleteMessage(java.lang.String MessageID,
java.lang.String MOVEitMailbox)
Deletes the message from the specified mailbox.
|
boolean |
deleteMessage(java.lang.String MessageID,
java.lang.String MOVEitMailbox,
java.lang.String MailboxOwner)
Deletes the message from the specified mailbox.
|
boolean |
deleteUser(java.lang.String Username)
Deletes the user specified by Username.
|
boolean |
deleteUserFolderAccess(java.lang.String MOVEitFolder,
java.lang.String Username) |
boolean |
deleteUserFromGroupAddressBook(java.lang.String OwnerGroup,
java.lang.String Username)
Deletes a user from the specified owner group's address book.
|
boolean |
deleteUserFromUserAddressBook(java.lang.String Owner,
java.lang.String Username)
Deletes a user from the specified owner's address book.
|
boolean |
downloadFile(java.lang.String MOVEitPath,
java.lang.String LocalFolder)
Downloads the selected file from the MOVEit Transfer system into the specified
local folder.
|
boolean |
downloadFile(java.lang.String MOVEitPath,
java.lang.String LocalFolder,
java.lang.String MailboxOwner)
Downloads the selected file from the MOVEit Transfer system into the specified
local folder.
|
boolean |
downloadFileAs(java.lang.String MOVEitPath,
java.lang.String LocalPath)
Downloads the selected file from the MOVEit Transfer system into a file with
the specified full path.
|
boolean |
downloadFileAs(java.lang.String MOVEitPath,
java.lang.String LocalPath,
java.lang.String MailboxOwner)
Downloads the selected file from the MOVEit Transfer system into a file with
the specified full path.
|
byte[] |
downloadFileToBuffer(java.lang.String MOVEitPath)
Downloads the selected file from the MOVEit Transfer system and returns the contents.
|
byte[] |
downloadFileToBuffer(java.lang.String MOVEitPath,
java.lang.String MailboxOwner)
Downloads the selected file from the MOVEit Transfer system and returns the contents.
|
boolean |
downloadFileToStream(java.lang.String MOVEitPath,
java.io.OutputStream out,
boolean Trusted)
Downloads the selected file from the MOVEit Transfer system to the provided
OutputStream object.
|
boolean |
downloadFileToStream(java.lang.String MOVEitPath,
java.io.OutputStream out,
boolean Trusted,
java.lang.String MailboxOwner)
Downloads the selected file from the MOVEit Transfer system to the provided
OutputStream object.
|
int |
errorCode()
Returns the status code of the last action performed.
|
java.lang.String |
errorDescription()
Returns a description of the last action performed.
|
boolean |
fileExists(java.lang.String MOVEitPath)
Returns TRUE if the specified file exists and the currently
authorized user may access it; FALSE otherwise.
|
java.util.HashMap |
findFiles(java.lang.String Mask)
Returns a HashMap object made up of
MOVEitFileInfo objects which contain
information about files in any available folder whose names match the specified
mask. |
java.util.HashMap |
findFilesInFolder(java.lang.String Mask,
java.lang.String MOVEitFolder)
Returns a HashMap object made up of
MOVEitFileInfo objects which contain
information about files whose names match the specified mask, and which are located
in folders whose MOVEitFolder path is or begins with the provided MOVEitFolder. |
java.util.HashMap |
findNewFiles(java.lang.String Mask)
Returns a HashMap object made up of
MOVEitFileInfo objects which contain
information about NEW files in any available folder whose names match the specified
mask. |
java.util.HashMap |
findNewFilesInFolder(java.lang.String Mask,
java.lang.String MOVEitFolder)
Returns a HashMap object made up of
MOVEitFileInfo objects which contain
information about NEW files whose names match the specified mask, and which are located
in folders whose MOVEitFolder path is or begins with the provided MOVEitFolder. |
java.lang.String |
folderAccessForUser(java.lang.String MOVEitFolder)
Returns a string containing a PermissionString describing the permissions the
current authorized user enjoys on this folder.
|
MOVEitFileInfo |
getFileDetails(java.lang.String MOVEitPath)
Returns a
MOVEitFileInfo object containing information
about the specified file. |
MOVEitFolderInfo |
getFolderDetails(java.lang.String MOVEitFolder)
Returns a
MOVEitFolderInfo object containing information about the
specified folder. |
MOVEitUserGroupInfo |
getGroupDetails(java.lang.String GroupName)
Returns a
MOVEitUserGroupInfo object containing information about the
specified group. |
MOVEitFolderInfo |
getHomeFolder(java.lang.String Username)
Returns a
MOVEitFolderInfo object which corresponds to the named
user's home folder. |
com.stdnet.moveit.api.MOVEitSAMLInfo |
getOrgSAMLInfo()
Gets SAML signon information for the default organization of the MOVEit Transfer host.
|
com.stdnet.moveit.api.MOVEitSAMLInfo |
getOrgSAMLInfo(java.lang.String OrgID)
Gets SAML signon information for the specified organization of the MOVEit Transfer host.
|
MOVEitUserInfo |
getSendAsUserInfo(java.lang.String userid)
Returns a
MOVEitUserInfo object describing the specified user whom the
current user is able to send messages on behalf of. |
MOVEitFolderInfo |
getTargetFolder(java.lang.String MOVEitFolder)
Returns a
MOVEitFolderInfo object which corresponds to the target folder of the specified
virtual folder. |
MOVEitUserInfo |
getUserDetails(java.lang.String Username)
Returns a
MOVEitUserInfo object containing information about the
specified user. |
java.lang.String |
homeFolder()
The full path of this user's home folder.
|
int |
homeFolderID()
The ID of this user's home folder.
|
java.lang.String |
host()
The hostname or IP address of the remote MOVEit Transfer server.
|
java.lang.String |
host(java.lang.String sHost)
The hostname or IP address of the remote MOVEit Transfer server.
|
java.lang.String |
httpProxyHost()
The proxy hostname to use for HTTP requests.
|
void |
httpProxyHost(java.lang.String host)
The proxy hostname to use for HTTP requests.
|
java.lang.String |
httpProxyPassword()
The proxy password to use for HTTP requests.
|
void |
httpProxyPassword(java.lang.String password)
The proxy password to use for HTTP requests.
|
int |
httpProxyPort()
The proxy port to use for HTTP requests.
|
void |
httpProxyPort(int port)
The proxy port to use for HTTP requests.
|
java.lang.String |
httpProxyUser()
The proxy username to use for HTTP requests.
|
void |
httpProxyUser(java.lang.String user)
The proxy username to use for HTTP requests.
|
java.lang.String |
httpsProxyHost()
The proxy hostname to use for HTTPS requests.
|
void |
httpsProxyHost(java.lang.String host)
The proxy hostname to use for HTTPS requests.
|
java.lang.String |
httpsProxyPassword()
The proxy password to use for HTTPS requests.
|
void |
httpsProxyPassword(java.lang.String password)
The proxy password to use for HTTPS requests.
|
int |
httpsProxyPort()
The proxy port to use for HTTPS requests.
|
void |
httpsProxyPort(int port)
The proxy port to use for HTTPS requests.
|
java.lang.String |
httpsProxyUser()
The proxy username to use for HTTPS requests.
|
void |
httpsProxyUser(java.lang.String user)
The proxy username to use for HTTPS requests.
|
boolean |
ignoreCertProbs()
Tells MOVEit Transfer API to ignore certificate problems such as those caused by
"test certificates" (bad CA) and connections by IP address rather than by
host (name mismatch).
|
boolean |
ignoreCertProbs(boolean bIgnoreCertProbs)
Tells MOVEit Transfer API to ignore certificate problems such as those caused by
"test certificates" (bad CA) and connections by IP address rather than by
host (name mismatch).
|
boolean |
importUserCertFromBuffer(java.lang.String Username,
java.lang.String Buffer)
Imports an SSL public certificate to a user's certificate store.
|
boolean |
importUserCertFromFile(java.lang.String Username,
java.lang.String Filepath)
Imports an SSL public certificate to a user's certificate store from a file.
|
boolean |
importUserKeyFromBuffer(java.lang.String Username,
java.lang.String Buffer)
Imports an SSH public key to a user's certificate store.
|
boolean |
importUserKeyFromFile(java.lang.String Username,
java.lang.String Filepath)
Imports an SSH public key to a user's certificate store from a file.
|
java.util.HashMap |
listFilesInFolder(java.lang.String MOVEitFolder)
Returns a HashMap object made up of
MOVEitFileInfo objects which contain
information about files in the specified folder. |
java.util.HashMap |
listFilesInFolderWithMask(java.lang.String MOVEitFolder,
java.lang.String Mask)
Returns a HashMap object made up of
MOVEitFileInfo objects which contain
information about files in the specified folder whose names match the specified mask. |
java.util.HashMap |
listFolderAccess(java.lang.String MOVEitFolder)
Returns a HashMap object containing string pairs of users and groups with
access to this folder.
|
java.util.HashMap |
listFolders()
Returns a HashMap object made up of
MOVEitFolderInfo objects which contain
information about all folders the currently authorized user can access. |
java.util.HashMap |
listFolders(java.lang.String OrgID)
Returns a HashMap object made up of
MOVEitFolderInfo objects which contain
information about all folders the currently authorized user can access. |
java.util.HashMap |
listFoldersInFolder(java.lang.String MOVEitFolder)
Returns a HashMap object made up of
MOVEitFolderInfo objects which
contain information about subfolders of the specified folder. |
java.util.HashMap |
listGroupMembers(java.lang.String GroupName)
Returns a HashMap object containing a list of all users in the given group.
|
java.util.HashMap |
listGroups()
Returns a HashMap object containing a list of all group names in this organization.
|
java.util.HashMap |
listGroups(java.lang.String OrgID)
Returns a HashMap object containing a list of all group names in the specified organization.
|
java.util.HashMap |
listMailboxes()
Returns a HashMap object made up of
MOVEitFolderInfo objects which contain
information about all mailboxes owned by the current user. |
java.util.List<java.util.HashMap> |
listMailboxesAndShared()
Returns a List of HashMap objects that contain information about all mailboxes
owned by the current user AND all mailboxes owned by users whom the current user has
Shared Mailbox access to.
|
java.util.HashMap |
listMessages(java.lang.String MOVEitMailbox)
Returns as HashMap object whose KEYS contain a list of Message IDs of all messages
available to the current user in the provided MOVEit Transfer mailbox and whose VALUES
contain
MOVEitMessageInfo objects describing those messages. |
java.util.HashMap |
listMessages(java.lang.String MOVEitMailbox,
java.lang.String MailboxOwner)
Returns as HashMap object whose KEYS contain a list of Message IDs of all messages
available to the current user in the provided MOVEit Transfer mailbox and whose VALUES
contain
MOVEitMessageInfo objects describing those messages. |
java.util.HashMap |
listNewMessages()
Returns a HashMap object whose KEYS contain a list of Message IDs of all new (unread)
messages available to the current user, but only those messages that exist in mailboxes
owned by the current user.
|
java.util.List<java.util.HashMap> |
listNewMessagesAndShared()
Returns a List of HashMap objects that contain information about all new (unread)
messages available to the current user, including messages that are new for users that
the current user has Shared Mailbox access to.
|
java.util.List<MOVEitUserInfo> |
listSendAsUsers()
Returns a list of
MOVEitUserInfo objects describing all the users that the
current user is able to send messages on behalf of, including the current
user themselves. |
java.util.HashMap |
listUserAddressBook(java.lang.String Username)
Returns a HashMap object containing the contents of the listed user's address book.
|
java.util.HashMap |
listUserCertsKeys(java.lang.String Username)
Lists the SSL certificates and SSH keys in a user's store.
|
java.util.HashMap |
listUserGroups(java.lang.String Username)
Returns a HashMap object containing a list of group names to which this user belongs.
|
java.util.HashMap |
listUserGroupsNot(java.lang.String Username)
Returns a HashMap object containing a list of group names to which this user DOES
NOT belong.
|
java.util.HashMap |
listUsers()
Returns a HashMap object containing a list of users in this organization.
|
java.util.HashMap |
listUsers(java.lang.String OrgID)
Returns a HashMap object containing a list of users in this organization.
|
java.util.HashMap |
listUsersAdvanced(java.lang.String page,
int entriesPerPage)
Returns a HashMap object containing a list of users in this organization.
|
java.util.HashMap |
listUsersAdvanced(java.lang.String page,
int entriesPerPage,
java.lang.String permissionFilter,
java.lang.String statusFilter,
java.lang.String groupFilter,
java.lang.String searchFilter,
java.lang.String searchString)
Returns a HashMap object containing a list of users in this organization.
|
java.util.HashMap |
listUsersAdvanced(java.lang.String page,
int entriesPerPage,
java.lang.String permissionFilter,
java.lang.String statusFilter,
java.lang.String groupFilter,
java.lang.String searchFilter,
java.lang.String searchString,
java.lang.String orgID)
Returns a HashMap object containing a list of users in this organization.
|
java.util.HashMap |
lookupUserAddressBook(java.lang.String Value,
java.lang.String Type)
Given a piece of identifying information, determines whether any users or groups
matching the search string are members of the current user's address book.
|
java.util.HashMap |
lookupUserAddressBook(java.lang.String Value,
java.lang.String Type,
java.lang.String Owner)
Given a piece of identifying information, determines whether any users or groups
matching the search string are members of the specified user's address book
MOVEit Transfer will attempt to match the search string against the Username, RealName
EmailAddress, and UserID fields for a "user" lookup, or the GroupName and GroupID
fields for a "group" lookup.
|
java.lang.String |
makeRandomUserPassword(java.lang.String Username)
Returns a randomly generated password that is acceptable by the password length and
strength standards of the currently signed on user's organization.
|
boolean |
moveFile(java.lang.String MOVEitPathFrom,
java.lang.String MOVEitFolderTo)
Moves a file from the specified path to the specified folder.
|
boolean |
moveFileAndConvert(java.lang.String MOVEitPathFrom,
java.lang.String MOVEitFolderTo,
int MOVEitFormat)
Moves a webpost converted into either a CSV file or an XML file from the specified
path to the specified folder.
|
boolean |
moveMessage(java.lang.String MessageID,
java.lang.String ToMailbox)
Moves the message to the provided destination mailbox.
|
boolean |
moveMessage(java.lang.String MessageID,
java.lang.String FromMailbox,
java.lang.String ToMailbox)
Moves the message from the provided source mailbox to the provided destination
mailbox.
|
boolean |
moveMessage(java.lang.String MessageID,
java.lang.String FromMailbox,
java.lang.String ToMailbox,
java.lang.String MailboxOwner)
Moves the message from the provided source mailbox to the provided destination
mailbox.
|
int |
orgID()
The Organization ID of the current user.
|
java.lang.String |
orgName()
The Organization Name of the current user.
|
org.w3c.dom.Node |
payload()
The raw XML payload returned by the MOVEit Transfer server for the last transaction.
|
int |
port()
The port used by the HTTP or HTTPS service on the remote MOVEit Transfer server.
|
int |
port(int iPort)
The port used by the HTTP or HTTPS service on the remote MOVEit Transfer server.
|
java.lang.String |
rawResponse()
Returns the raw data returned from the MOVEit Transfer host in response
to the most recent transaction.
|
MOVEitMessageInfo |
readMessage(java.lang.String MessageID)
Returns a
MOVEitMessageInfo object describing the message identified by
the given ID. |
MOVEitMessageInfo |
readMessage(java.lang.String MessageID,
java.lang.String MOVEitMailbox)
Returns a
MOVEitMessageInfo object describing the message identified by the
given ID. |
MOVEitMessageInfo |
readMessage(java.lang.String MessageID,
java.lang.String MOVEitMailbox,
java.lang.String MailboxOwner)
Returns a
MOVEitMessageInfo object describing the message identified by the
given ID. |
boolean |
removeUserCertKey(java.lang.String Username,
int CertKeyID)
Removes an SSL certificate or SSH key from a user's store.
|
boolean |
removeUserFromGroup(java.lang.String Username,
java.lang.String GroupName)
Removes the specified user from the specified group.
|
boolean |
renameFile(java.lang.String MOVEitPath,
java.lang.String NewName)
Renames an existing MOVEit Transfer file with the given path.
|
boolean |
renameFolder(java.lang.String MOVEitFolder,
java.lang.String NewName)
Renames an existing MOVEit Transfer folder with the given path.
|
boolean |
renameMailbox(java.lang.String MOVEitMailbox,
java.lang.String NewName)
Renames an existing MOVEit Transfer mailbox with the given path for the current user.
|
boolean |
runCustomReport(java.lang.String fields,
java.lang.String tables,
java.lang.String criteria,
java.lang.String grouping,
java.lang.String order,
java.lang.String limit,
java.lang.String OutputFormat,
java.lang.String LocalPath)
Runs a custom report with the specified custom options and output format
and saves it to the path specified by LocalPath.
|
boolean |
runReport(java.lang.String ReportName,
java.lang.String LocalPath)
Runs the report specified by ReportName and saves it to the path
specified by LocalPath.
|
java.lang.String |
scriptPath()
Used only when MOVEit Transfer has been installed into a subdirectory
of an existing webserver, this property indicates what that subdirectory
is.
|
java.lang.String |
scriptPath(java.lang.String sScriptPath)
Used only when MOVEit Transfer has been installed into a subdirectory
of an existing webserver, this property indicates what that subdirectory
is.
|
boolean |
secure()
Indicates whether to use unencrypted HTTP (if FALSE) or encrypted
HTTPS (if TRUE) for all communications to MOVEit Transfer.
|
boolean |
secure(boolean bSecure)
Indicates whether to use unencrypted HTTP (if FALSE) or encrypted
HTTPS (if TRUE) for all communications to MOVEit Transfer.
|
boolean |
sendMessage(MOVEitMessageInfo oMsg)
Given a
MOVEitMessageInfo object describing a message to be sent, sends
the message to the MOVEit Transfer server on behalf of the configured "From" user. |
boolean |
sendMessage(MOVEitMessageInfo oMsg,
boolean bSendToUnregRecip)
Given a
MOVEitMessageInfo object describing a message to be sent, sends
the message to the MOVEit Transfer server on behalf of the configured "From" user. |
java.lang.String |
sessionCookie()
Returns the session cookie of the current session, if the API instance
is signed on to a MOVEit Transfer server.
|
java.lang.String |
sessionID()
Returns the session ID of the current session, if the API instance
is signed on to a MOVEit Transfer server.
|
boolean |
signoff()
Signs off the current user.
|
boolean |
signon(java.lang.String Username,
java.lang.String Password)
Given a username and password, returns TRUE if signon is successful,
FALSE otherwise.
|
boolean |
signon(java.lang.String Username,
java.lang.String Password,
java.lang.String ActAsIP)
Given a username and password, returns TRUE if signon is successful,
FALSE otherwise.
|
boolean |
signonWithSAMLAssertion(org.w3c.dom.Document SAMLAssertion)
Signs on to a MOVEit Transfer host using a SAML assertion document, rather than
a username and password.
|
boolean |
signonWithSAMLAssertion(org.w3c.dom.Document SAMLAssertion,
java.lang.String ActAsIP)
Signs on to a MOVEit Transfer host using a SAML assertion document, rather than
a username and password.
|
int |
statusCode()
Returns the status code of the last action performed.
|
java.lang.String |
statusDescription()
Returns a description of the last action performed.
|
boolean |
technicalDebug()
Returns current debug flag.
|
boolean |
technicalDebug(boolean bDebug)
Sets and returns debug flag.
|
java.lang.String |
uploadFile(java.lang.String LocalPath,
java.lang.String MOVEitFolder)
Uploads the selected file into the specified MOVEit Transfer folder.
|
java.lang.String |
uploadFile(java.lang.String LocalPath,
java.lang.String MOVEitFolder,
java.lang.String Notes)
Uploads the selected file into the specified MOVEit Transfer folder.
|
java.lang.String |
uploadFileAs(java.lang.String LocalPath,
java.lang.String MOVEitPath)
Uploads the selected file into the specified MOVEit Transfer folder.
|
java.lang.String |
uploadFileAs(java.lang.String LocalPath,
java.lang.String MOVEitPath,
java.lang.String Notes)
Uploads the selected file into the specified MOVEit Transfer folder.
|
java.lang.String |
uploadFileFromBuffer(byte[] Buffer,
java.lang.String MOVEitPath)
Uploads the selected file to MOVEit Transfer from the specified buffer.
|
java.lang.String |
uploadFileFromBuffer(byte[] Buffer,
java.lang.String MOVEitPath,
java.lang.String Notes)
Uploads the selected file to MOVEit Transfer from the specified buffer.
|
java.lang.String |
uploadFileFromStream(java.io.InputStream in,
long inLen,
java.lang.String MOVEitPath,
boolean Trusted)
Uploads data from the specified stream to the selected file on MOVEit Transfer.
|
java.lang.String |
uploadFileFromStream(java.io.InputStream in,
long inLen,
java.lang.String MOVEitPath,
java.lang.String Notes,
boolean Trusted)
Uploads data from the specified stream to the selected file on MOVEit Transfer.
|
java.lang.String |
uploadFileFromStream(java.io.InputStream in,
java.lang.String MOVEitPath,
boolean Trusted)
Uploads data from the specified stream to the selected file on MOVEit Transfer.
|
java.lang.String |
uploadFileFromStream(java.io.InputStream in,
java.lang.String MOVEitPath,
java.lang.String Notes,
boolean Trusted)
Uploads data from the specified stream to the selected file on MOVEit Transfer.
|
boolean |
useProxy()
Indicates whether proxy settings should be used.
|
void |
useProxy(boolean bUseProxy)
Indicates whether proxy settings should be used.
|
java.lang.String |
userID()
Returns the ID of the currently signed on user.
|
int |
userListCount()
Returns the total number of users available via the most recent
listUsers or
listUsersAdvanced
function call. |
java.lang.String |
username()
Returns the Username of the currently signed on user.
|
java.lang.String |
userRealname()
Returns the Realname of the currently signed on user.
|
java.lang.String |
version()
Returns the version of MOVEit Transfer API Java.
|
java.lang.String |
welcomeMessage() |
actualDestFolderID, certNotTrusted, csrfToken, dlpCheckedLast, dlpViolation, do_file_download_fh, do_file_download_fh, do_file_download_stream, do_file_download_stream, do_file_upload_fh, do_file_upload_fh, do_file_upload_stream, do_upload_zipfile, downloadFileByID, downloadFileByID, folder_add_by_path, get_header_value, get_header_value, getFinalCompressionRatio, getSkippedBytesSoFar, getTransferredAndSkippedBytesSoFar, incTotalBytesSkippedAllFiles, javaEnvironment, javaEnvironment, setAgent, setCookie, setMachineURL, setProxySettings, totalBytesSoFar, totalBytesSoFar, totalBytesToXfer, totalBytesToXfer, totalRawBytes, useCompressionDownload, useCompressionDownload, useCompressionUpload, useCompressionUpload, useNonLumpHashMode, useNonLumpHashMode, virusCheckedLast
public java.lang.String version()
public java.lang.String copyFile(java.lang.String MOVEitPathFrom, java.lang.String MOVEitFolderTo)
MOVEitPathFrom
- path or ID of the original file on the MOVEit Transfer hostMOVEitFolderTo
- path or ID of the folder on the MOVEit Transfer host to copy
the original file topublic java.lang.String copyFileAndConvert(java.lang.String MOVEitPathFrom, java.lang.String MOVEitFolderTo, int MOVEitFormat)
MOVEitPathFrom
- path or ID of the original file on the MOVEit Transfer hostMOVEitFolderTo
- path or ID of the folder on the MOVEit Transfer host to copy
the original file toMOVEitFormat
- format code of the format to convert the
original file to. Should be FormatCSV
or FormatXML
public boolean deleteFile(java.lang.String MOVEitPath)
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to deletepublic boolean deleteFileById(java.lang.String fileId)
fileId
- ID of the file on the MOVEit Transfer host to deletepublic boolean downloadFile(java.lang.String MOVEitPath, java.lang.String LocalFolder, java.lang.String MailboxOwner)
NOTE: During the file download process, the file data is stored to a temporary file (the file name with .tmp appended). When the download is complete, the temporary file is renamed to the correct filename. If the download is interrupted, the temporary file will remain. If this function finds a temporary copy of the downloaded file, it will automatically resume the download, copying only the data needed to complete the transfer from the MOVEit Transfer server. This keeps API from having to start large dowloads again from the beginning if a download is interrupted.
NOTE: Webpost files do not have names, so if this method is used to download a webpost (by using the webpost file ID as the MOVEitPath argument), the file will be downloaded with the constructed name "webpost_[TrackingID]".
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadLocalFolder
- path of the folder on the local filesystem
to save the file toMailboxOwner
- user ID of the mailbox owner whom we are
downloading the attachment on behalf ofpublic boolean downloadFile(java.lang.String MOVEitPath, java.lang.String LocalFolder)
NOTE: During the file download process, the file data is stored to a temporary file (the file name with .tmp appended). When the download is complete, the temporary file is renamed to the correct filename. If the download is interrupted, the temporary file will remain. If this function finds a temporary copy of the downloaded file, it will automatically resume the download, copying only the data needed to complete the transfer from the MOVEit Transfer server. This keeps API from having to start large dowloads again from the beginning if a download is interrupted.
NOTE: Webpost files do not have names, so if this method is used to download a webpost (by using the webpost file ID as the MOVEitPath argument), the file will be downloaded with the constructed name "webpost_[TrackingID]".
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadLocalFolder
- path of the folder on the local filesystem
to save the file topublic boolean downloadFileAs(java.lang.String MOVEitPath, java.lang.String LocalPath, java.lang.String MailboxOwner)
NOTE: During the file download process, the file data is stored to a temporary file (the file name with .tmp appended). When the download is complete, the temporary file is renamed to the correct filename. If the download is interrupted, the temporary file will remain. If this function finds a temporary copy of the downloaded file, it will automatically resume the download, copying only the data needed to complete the transfer from the MOVEit Transfer server. This keeps API from having to start large downloads again from the beginning if a download is interrupted.
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadLocalPath
- path of the file on the local filesystem to
save the file toMailboxOwner
- user ID of the mailbox owner whom we are
downloading the attachment on behalf ofpublic boolean downloadFileAs(java.lang.String MOVEitPath, java.lang.String LocalPath)
NOTE: During the file download process, the file data is stored to a temporary file (the file name with .tmp appended). When the download is complete, the temporary file is renamed to the correct filename. If the download is interrupted, the temporary file will remain. If this function finds a temporary copy of the downloaded file, it will automatically resume the download, copying only the data needed to complete the transfer from the MOVEit Transfer server. This keeps API from having to start large downloads again from the beginning if a download is interrupted.
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadLocalPath
- path of the file on the local filesystem to
save the file topublic byte[] downloadFileToBuffer(java.lang.String MOVEitPath, java.lang.String MailboxOwner)
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadMailboxOwner
- user ID of the mailbox owner whom we are
downloading the attachment on behalf ofnull
otherwisepublic byte[] downloadFileToBuffer(java.lang.String MOVEitPath)
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadnull
otherwisepublic boolean downloadFileToStream(java.lang.String MOVEitPath, java.io.OutputStream out, boolean Trusted, java.lang.String MailboxOwner)
Set the Trusted argument to true
if the stream being written to
is a trusted destination, in which case MOVEit Transfer will log the transfer as
integrity checked if successful. Otherwise, if the stream is not a trusted
destination, the transfer will not be logged as integrity checked.
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadout
- OutputStream object to write downloaded data toTrusted
- whether the stream being downloaded to is trustedMailboxOwner
- user ID of the mailbox owner whom we are
downloading the attachment on behalf ofpublic boolean downloadFileToStream(java.lang.String MOVEitPath, java.io.OutputStream out, boolean Trusted)
Set the Trusted argument to true
if the stream being written to
is a trusted destination, in which case MOVEit Transfer will log the transfer as
integrity checked if successful. Otherwise, if the stream is not a trusted
destination, the transfer will not be logged as integrity checked.
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to downloadout
- OutputStream object to write downloaded data toTrusted
- whether the stream being downloaded to is trustedpublic boolean fileExists(java.lang.String MOVEitPath)
MOVEitPath
- path or ID of the file on the MOVEit Transfer hostpublic MOVEitFileInfo getFileDetails(java.lang.String MOVEitPath)
MOVEitFileInfo
object containing information
about the specified file. If the file does not exist or the currently
authorized user is not permitted to access it, then null
is returned instead.MOVEitPath
- path or ID of the file on the MOVEit Transfer hostnull
otherwiseMOVEitFileInfo
public boolean moveFile(java.lang.String MOVEitPathFrom, java.lang.String MOVEitFolderTo)
MOVEitPathFrom
- path or ID of the original file on the MOVEit Transfer hostMOVEitFolderTo
- path or ID of the folder on the MOVEit Transfer host to move
the original file topublic boolean moveFileAndConvert(java.lang.String MOVEitPathFrom, java.lang.String MOVEitFolderTo, int MOVEitFormat)
MOVEitPathFrom
- path or ID of the original file on the MOVEit Transfer hostMOVEitFolderTo
- path or ID of the folder on the MOVEit Transfer host to move
the original file toMOVEitFormat
- format code of the format to convert the
original file to. Should be FormatCSV
or FormatXML
public boolean renameFile(java.lang.String MOVEitPath, java.lang.String NewName)
MOVEitPath
- path or ID of the file on the MOVEit Transfer host to renameNewName
- new name to apply to the filepublic java.lang.String uploadFile(java.lang.String LocalPath, java.lang.String MOVEitFolder, java.lang.String Notes)
If a Partial file of the same name exists in the MOVEit Transfer folder, this function will automatically execute a resumed upload, copying only the file data required to complete the upload. This keeps API from having to start large uploads again from the beginning if an upload is interrupted.
LocalPath
- path of the file on the local filesystem to
upload to the MOVEit Transfer hostMOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to upload
the file toNotes
- any notes to be included with the filepublic java.lang.String uploadFile(java.lang.String LocalPath, java.lang.String MOVEitFolder)
If a Partial file of the same name exists in the MOVEit Transfer folder, this function will automatically execute a resumed upload, copying only the file data required to complete the upload. This keeps API from having to start large uploads again from the beginning if an upload is interrupted.
LocalPath
- path of the file on the local filesystem to
upload to the MOVEit Transfer hostMOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to upload
the file topublic java.lang.String uploadFileAs(java.lang.String LocalPath, java.lang.String MOVEitPath, java.lang.String Notes)
If a Partial file of the same name exists in the MOVEit Transfer folder, this function will automatically execute a resumed upload, copying only the file data required to complete the upload. This keeps API from having to start large uploads again from the beginning if an upload is interrupted.
LocalPath
- path of the file on the local filesystem to upload
to the MOVEit Transfer hostMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload toNotes
- any notes to be included with the filepublic java.lang.String uploadFileAs(java.lang.String LocalPath, java.lang.String MOVEitPath)
If a Partial file of the same name exists in the MOVEit Transfer folder, this function will automatically execute a resumed upload, copying only the file data required to complete the upload. This keeps API from having to start large uploads again from the beginning if an upload is interrupted.
LocalPath
- path of the file on the local filesystem to upload
to the MOVEit Transfer hostMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload topublic java.lang.String uploadFileFromBuffer(byte[] Buffer, java.lang.String MOVEitPath, java.lang.String Notes)
Buffer
- byte array containing data to be uploaded to the
MOVEit Transfer hostMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload toNotes
- any notes to be included with the filepublic java.lang.String uploadFileFromBuffer(byte[] Buffer, java.lang.String MOVEitPath)
Buffer
- byte array containing data to be uploaded to the
MOVEit Transfer hostMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload topublic java.lang.String uploadFileFromStream(java.io.InputStream in, long inLen, java.lang.String MOVEitPath, java.lang.String Notes, boolean Trusted)
If length of data to transfer is not known, use uploadFileFromStream(InputStream, String, String, boolean)
.
Set the Trusted argument to true
if the content in the stream is
from a trusted source, in which case MOVEit Transfer will log the transfer as
integrity checked if successful. Otherwise, if the content in the stream
is not from a trusted source, the transfer will not be logged as
integrity checked.
in
- InputStream to read upload data frominLen
- Length of the data in the InputStreamMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload toNotes
- any notes to be included with the fileTrusted
- whether the stream being uploaded from is trusteduploadFileFromStream(InputStream, String, String, boolean)
public java.lang.String uploadFileFromStream(java.io.InputStream in, java.lang.String MOVEitPath, java.lang.String Notes, boolean Trusted)
If length of data to transfer is known, use uploadFileFromStream(InputStream, long, String, String, boolean)
.
Set the Trusted argument to true
if the content in the stream is
from a trusted source, in which case MOVEit Transfer will log the transfer as
integrity checked if successful. Otherwise, if the content in the stream
is not from a trusted source, the transfer will not be logged as
integrity checked.
in
- InputStream to read upload data fromMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload toNotes
- any notes to be included with the fileTrusted
- whether the stream being uploaded from is trusteduploadFileFromStream(InputStream, long, String, String, boolean)
public java.lang.String uploadFileFromStream(java.io.InputStream in, long inLen, java.lang.String MOVEitPath, boolean Trusted)
If length of data to transfer is not known, use uploadFileFromStream(InputStream, String, boolean)
.
Set the Trusted argument to true
if the content in the stream is
from a trusted source, in which case MOVEit Transfer will log the transfer as
integrity checked if successful. Otherwise, if the content in the stream
is not from a trusted source, the transfer will not be logged as
integrity checked.
in
- InputStream to read upload data frominLen
- Length of the data in the InputStreamMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload toTrusted
- whether the stream being uploaded from is trusteduploadFileFromStream(InputStream, String, boolean)
public java.lang.String uploadFileFromStream(java.io.InputStream in, java.lang.String MOVEitPath, boolean Trusted)
If length of data to transfer is known, use uploadFileFromStream(InputStream, long, String, boolean)
.
Set the Trusted argument to true
if the content in the stream is
from a trusted source, in which case MOVEit Transfer will log the transfer as
integrity checked if successful. Otherwise, if the content in the stream
is not from a trusted source, the transfer will not be logged as
integrity checked.
in
- InputStream to read upload data fromMOVEitPath
- path or ID of the file on the MOVEit Transfer host to upload toTrusted
- whether the stream being uploaded from is trusteduploadFileFromStream(InputStream, long, String, boolean)
public boolean addGroupFolderAccess(java.lang.String MOVEitFolder, java.lang.String GroupName, java.lang.String PermString)
The PermString parameter should consist of one or more of the following letters:
A
= AdminE
= SubfoldersD
= DeleteL
= ListN
= NotifyR
= ReadW
= WriteMOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to add a
group permission toGroupName
- name or ID of group to add a permission forPermString
- permission string to apply to the folderpublic boolean addUserFolderAccess(java.lang.String MOVEitFolder, java.lang.String Username, java.lang.String PermString)
The PermString parameter should consist of one or more of the following letters:
A
= AdminE
= SubfoldersD
= DeleteL
= ListN
= NotifyR
= ReadW
= WriteMOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to add a
user permission toUsername
- username or ID of user to add a permission forPermString
- permission string to apply to the folderpublic boolean deleteGroupFolderAccess(java.lang.String MOVEitFolder, java.lang.String GroupName)
MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to remove
permissions toGroupName
- name or ID of the group to remove permissions ofpublic boolean deleteUserFolderAccess(java.lang.String MOVEitFolder, java.lang.String Username)
public java.util.HashMap listFolderAccess(java.lang.String MOVEitFolder)
null
if the currently authorized user is not permitted to get this
information.
The permission strings will contain one or more of the following letters:
A
= AdminE
= SubfoldersD
= DeleteL
= ListN
= NotifyR
= ReadW
= WriteMOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to list
access rights fornull
otherwisepublic java.lang.String folderAccessForUser(java.lang.String MOVEitFolder)
The permission string may contain zero or more of the following letters:
A
= AdminE
= SubfoldersD
= DeleteL
= ListN
= NotifyR
= ReadW
= WriteMOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to list
access rights forpublic int addFolder(java.lang.String MOVEitFolder, int InheritPerms)
0
= Do not inherit permissions from parent, and do not copy current permissions from parent.1
= Do not inherit permissions from parent, but copy current permissions from parent.2
= Inherit permissions from parent. (Default)
MOVEitFolder
- path of the folder to be addedInheritPerms
- how to assign initial folder permissionspublic int addFolder(java.lang.String MOVEitFolder)
MOVEitFolder
- path of the folder to be addedpublic int addVirtualFolder(java.lang.String MOVEitFolder, java.lang.String TargetMOVEitFolder, int InheritPerms)
0
= Do not inherit permissions from parent, and do not copy current permissions from parent.1
= Do not inherit permissions from parent, but copy current permissions from parent.2
= Inherit permissions from parent. (Default)
MOVEitFolder
- path of the virtual folder to be addedTargetMOVEitFolder
- path of the virtual folder targetInheritPerms
- how to assign initial folder permissionspublic int addVirtualFolder(java.lang.String MOVEitFolder, java.lang.String TargetMOVEitFolder)
MOVEitFolder
- path of the virtual folder to be addedTargetMOVEitFolder
- path of the virtual folder targetpublic boolean changeFolderSetting(java.lang.String MOVEitFolder, java.lang.String SettingName, java.lang.String NewValue)
Setting Name | Allowed New Value |
allowoverwrite |
0 = no 1 = yes |
cleantype |
0 = never 2 = every cleantime days |
cleantime |
0-16000 (days) |
filemaskrule |
0 = allow all files except masks 1 = deny all files except masks |
filemasks |
comma-delimited list of filemasks (eg, *.txt,frog.*,sni???.ach) |
newtime |
0-16000 (days) |
notedelrcptype |
0 = none 16 = immediate |
notenewfiletype |
0 = none 3 = in a batch every notenewfiletime minutes16 = immediate |
notenewfiletime |
0-16000 (minutes) |
notenodownloadtype |
0 = none 1 = every notenodownloadtime hours2 = every notenodownloadtime days3 = every notenodownloadtime minutes |
noteupconfirmtype |
0 = none 3 = in a batch every noteupconfirmtime minutes16 = immediate |
noteupconfirmtime |
0-16000 (minutes) |
parentinheritrights |
0 = no 1 = yes |
quota |
0 = none 1-9,223,372,036,854,775,807 = quota size (in bytes) |
subfoldercleantime |
0-16000 (days) |
targetfolder |
MOVEitFolder (only used by virtual folders) |
useuniquenames |
0 = no 1 = yes |
NOTE: Several of the above settings cannot be changed on a virtual folder. If attempted, an error will be returned. Instead, such settings should be changed on the virtual folder's target folder.
MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to change
a setting ofSettingName
- name of the setting to changeNewValue
- value to apply to the settingpublic boolean deleteFolder(java.lang.String MOVEitFolder)
MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to deletepublic java.util.HashMap findFiles(java.lang.String Mask)
MOVEitFileInfo
objects which contain
information about files in any available folder whose names match the specified
mask.
(The KEYS will contain full file paths.) Returns an empty HashMap if no files are
found.Mask
- file search maskpublic java.util.HashMap findFilesInFolder(java.lang.String Mask, java.lang.String MOVEitFolder)
MOVEitFileInfo
objects which contain
information about files whose names match the specified mask, and which are located
in folders whose MOVEitFolder path is or begins with the provided MOVEitFolder.
(This method can be used to search a tree of directories for files of a certain name.)
(The KEYS will contain full file paths.) Returns an empty HashMap if no files are
found.
For example, given the following file/folder tree:
- Home/Adam Smith/file.dat
- Home/Adam Smith/report.txt
- Home/Adam Smith/archive/info.dat
- Home/Adam Smith/archive/names.txt
A call of findFilesInFolder("*.dat","Home/Adam Smith") would return:
- Home/Adam Smith/file.dat
- Home/Adam Smith/archive/info.dat
Mask
- file search maskMOVEitFolder
- path or ID of the folder to limit searches topublic java.util.HashMap findNewFiles(java.lang.String Mask)
MOVEitFileInfo
objects which contain
information about NEW files in any available folder whose names match the specified
mask. (New files listed here would be the same new files normally listed on a user's
home page.)
(The KEYS will contain full file paths.) Returns an empty HashMap if no files are
found.Mask
- file search maskpublic java.util.HashMap findNewFilesInFolder(java.lang.String Mask, java.lang.String MOVEitFolder)
MOVEitFileInfo
objects which contain
information about NEW files whose names match the specified mask, and which are located
in folders whose MOVEitFolder path is or begins with the provided MOVEitFolder.
(This method can be used to search a tree of directories for files of a certain name.)
(The KEYS will contain full file paths.) Returns an empty HashMap if no files are
found.Mask
- file search maskMOVEitFolder
- path or ID of the folder to limit searches topublic MOVEitFolderInfo getFolderDetails(java.lang.String MOVEitFolder)
MOVEitFolderInfo
object containing information about the
specified folder. If the folder does not exist or the currently authorized
user is not permitted to access it, then null
is returned instead.
NOTE: When executing this method against a virtual folder, the effective value will be returned for several of the MOVEitFolderInfo properties, rather than the actual value. The effective value is that of the virtual folder's target folder rather than the virtual folder itself, and applies to properties like AllowOverwrite and UseUniqueNames, which have no meaning for virtual folders.
MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to get
information aboutpublic MOVEitFolderInfo getHomeFolder(java.lang.String Username)
MOVEitFolderInfo
object which corresponds to the named
user's home folder. If the user does not exist, does not have a home folder,
or the currently authorized user is not an administrator, then null
is returned instead. Note that only the user's actual home folder is returned.
If you need to determine a user's default folder (which may or may not be the
same as the user's home folder), use the getUserDetails
method and
examine the defaultFolderPath
property of the resulting
MOVEitUserInfo
object.Username
- username or ID of user to get the home folder ofpublic MOVEitFolderInfo getTargetFolder(java.lang.String MOVEitFolder)
MOVEitFolderInfo
object which corresponds to the target folder of the specified
virtual folder. If the specified folder is not a virtual folder, or the currently authorized user does
not have permissions to see the virtual folder's target folder, then null
is returned instead.MOVEitFolder
- path or ID of the virtual folder on the MOVEit Transfer host to get the target folder ofpublic java.util.HashMap listFilesInFolder(java.lang.String MOVEitFolder)
MOVEitFileInfo
objects which contain
information about files in the specified folder. (The KEYS will contain full file
paths.) Returns an empty HashMap if no files are found.MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to list files
ofpublic java.util.HashMap listFilesInFolderWithMask(java.lang.String MOVEitFolder, java.lang.String Mask)
MOVEitFileInfo
objects which contain
information about files in the specified folder whose names match the specified mask.
(The KEYS will contain full file paths.) Returns an empty HashMap if no files are
found.MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to list files
ofMask
- mask to apply against file listpublic java.util.HashMap listFoldersInFolder(java.lang.String MOVEitFolder)
MOVEitFolderInfo
objects which
contain information about subfolders of the specified folder. (The KEYS will
contain full folder paths.) Returns an empty HashMap if no subfolders are
found.MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to list
subfolders ofpublic java.util.HashMap listFolders()
MOVEitFolderInfo
objects which contain
information about all folders the currently authorized user can access. (The KEYS
will contain full folder paths.) Returns an empty HashMap if no folders are found.public java.util.HashMap listFolders(java.lang.String OrgID)
MOVEitFolderInfo
objects which contain
information about all folders the currently authorized user can access. (The KEYS
will contain full folder paths.) Returns an empty HashMap if no folders are found.
The "OrgID" argument only applies if the currently authorized user is
a SysAdmin; by default this value is the same as the currently authorized user's OrgID.OrgID
- ID of the organization to list the folders ofpublic boolean renameFolder(java.lang.String MOVEitFolder, java.lang.String NewName)
MOVEitFolder
- path or ID of the folder on the MOVEit Transfer host to renameNewName
- new name to apply to the folderpublic int addMailbox(java.lang.String MOVEitMailbox)
MOVEitMailbox
- path of the mailbox to be addedpublic boolean deleteMailbox(java.lang.String MOVEitMailbox)
MOVEitMailbox
- path or ID of the mailbox to be deletedpublic java.util.HashMap listMailboxes()
MOVEitFolderInfo
objects which contain
information about all mailboxes owned by the current user. The KEYS will contain full
mailbox paths.) To include mailboxes that the current user has Shared Mailbox access to,
use the listMailboxesAndShared
method. Returns an empty HashMap if no
mailboxes are found.null
otherwisepublic java.util.List<java.util.HashMap> listMailboxesAndShared()
MOVEitFolderInfo
objects which contain information about all mailboxes owned
by that particular user. (The KEYS will contin full mailbox paths.) Returns an empty
List if no mailboxes are found.null
otherwisepublic boolean renameMailbox(java.lang.String MOVEitMailbox, java.lang.String NewName)
MOVEitMailbox
- path or ID of the mailbox to be renamedNewName
- new name to apply to the mailboxpublic java.util.HashMap listMessages(java.lang.String MOVEitMailbox, java.lang.String MailboxOwner)
MOVEitMessageInfo
objects describing those messages. If MOVEitMailbox
is a path and MailboxOwner is an empty string, then the current user is assumed to be
the mailbox owner. Returns an empty HashMap if no messages are found. Returns
null
if the current user does not have permission to know if any messages
are found.
Note: The MOVEitMessageInfo
objects returned by this method will
NOT contain complete information about the given message. Only "header"
information about the message will be included (ID, sendStamp, from, fromRealname, subject,
parentID). To get the body and attachment list of a message, use the
readMessage
method.
MOVEitMailbox
- path or ID of the mailbox to be listedMailboxOwner
- username or user ID of the mailbox ownernull
otherwisepublic java.util.HashMap listMessages(java.lang.String MOVEitMailbox)
MOVEitMessageInfo
objects describing those messages. If MOVEitMailbox is
a path, then the current user is assumed to be the mailbox owner. Returns as empty
HashMap if no messages are found. Returns null
if the current user does not
have permission to know if any messages are found.
Note: The MOVEitMessageInfo
objects returned by this method will
NOT contain complete information about the given message. Only "header"
information about the message will be included (ID, sendStamp, from, fromRealname, subject,
parentID). To get the body and attachment list of a message, use the
readMessage
method.
MOVEitMailbox
- path or ID of the mailbox to be listednull
otherwisepublic java.util.HashMap listNewMessages()
listNewMessagesAndShared
method. The
HashMap VALUES will contain MOVEitMessageInfo
objects describing the new messages.
Returns An empty HashMap if no new messages are found. Returns null
if the
current user does not have permission to know if any new messages are found.
Note: The MOVEitMessageInfo
objects returned by this method will
NOT contain complete information about the given message. Only "header"
information about the message will be included (ID, sendStamp, from, fromRealname, subject,
parentID). To get the body and attachment list of a message, use the
readMessage
method.
null
otherwisepublic java.util.List<java.util.HashMap> listNewMessagesAndShared()
MOVEitMessageInfo
objects describing those the
new messages for that particular user. Returns an empty List if no new messages are found.
Returns null
if the current user does not have permission to know if any
new messages are found.
Note: The MOVEitMessageInfo
objects returned by this method will
NOT contain complete information about the given message. Only "header"
information about the message will be included (ID, sendStamp, from, fromRealname, subject,
parentID). To get the body and attachment list of a message, use the
readMessage
method.
null
otherwisepublic MOVEitMessageInfo composeNewMessage(java.lang.String Recipient, java.lang.String Subject, java.lang.String Body)
MOVEitMessageInfo
object with a state of "Pending". This object
can be used to define a new secure message to be sent through the MOVEit Transfer system. The arguments
are used to pre-fill their associated properties in the new MOVEitMessageInfo object.
When composing a new message, the Body argument can accept HTML. The message content should not be a complete HTML document (containing html, head, and body tags), but should instead simply contain any HTML formatting the message requires (for example: bold tags, span tags with style attributes, list tags, etc). Certain tags will be stripped from the message for security reasons, once received by MOVEit Transfer. These include script tags and embed tags. Also, any instances of the text "Javascript:" will be removed, to prevent inclusion of javascript operations in the message content.
Recipient
- username to add as a recipient to the new messageSubject
- subject of the new messageBody
- body of the new messageMOVEitMessageInfo
public MOVEitMessageInfo composeNewMessage(java.lang.String Recipient, java.lang.String Subject)
MOVEitMessageInfo
object with a state of "Pending". This object
can be used to define a new secure message to be sent through the MOVEit Transfer system. The arguments
are used to pre-fill their associated properties in the new MOVEitMessageInfo object.Recipient
- username to add as a recipient to the new messageSubject
- subject of the new messageMOVEitMessageInfo
public MOVEitMessageInfo composeNewMessage(java.lang.String Recipient)
MOVEitMessageInfo
object with a state of "Pending". This object
can be used to define a new secure message to be sent through the MOVEit Transfer system. The arguments
are used to pre-fill their associated properties in the new MOVEitMessageInfo object.Recipient
- username to add as a recipient to the new messageMOVEitMessageInfo
public MOVEitMessageInfo composeNewMessage()
MOVEitMessageInfo
object with a state of "Pending". This object
can be used to define a new secure message to be sent through the MOVEit Transfer system.MOVEitMessageInfo
public boolean deleteMessage(java.lang.String MessageID, java.lang.String MOVEitMailbox, java.lang.String MailboxOwner)
MessageID
- ID of the message to be deletedMOVEitMailbox
- path or ID of the mailbox containing the message to
be deletedMailboxOwner
- username or user ID of the mailbox ownerSpecifying the mailbox to delete the message from is not strictly necessary, but improves MOVEit Transfer's ability to more accurately handle the situation where a message resides in more than one mailbox accessible to the current user.
deleteMessage(String,String)
public boolean deleteMessage(java.lang.String MessageID, java.lang.String MOVEitMailbox)
MessageID
- ID of the message to be deletedMOVEitMailbox
- path or ID of the mailbox containing the message to
be deletedSpecifying the mailbox to delete the message from is not strictly necessary, but improves MOVEit Transfer's ability to more accurately handle the situation where a message resides in more than one mailbox accessible to the current user.
deleteMessage(String,String,String)
public boolean deleteMessage(java.lang.String MessageID)
MessageID
- ID of the message to be deleted Use deleteMessage(String,String)
or deleteMessage(String,String,String)
to delete a message from a specific mailbox.
deleteMessage(String,String)
,
deleteMessage(String,String,String)
public boolean moveMessage(java.lang.String MessageID, java.lang.String FromMailbox, java.lang.String ToMailbox, java.lang.String MailboxOwner)
MessageID
- ID of the message to be movedFromMailbox
- path or ID of the mailbox to move message fromToMailbox
- path or ID of the mailbox to move message toMailboxOwner
- username or user ID of the mailbox ownerSpecifying the mailbox to move the message from is not strictly necessary, but improves MOVEit Transfer's ability to more accurately handle the situation where a message resides in more than one mailbox accessible to the current user.
moveMessage(String,String,String)
public boolean moveMessage(java.lang.String MessageID, java.lang.String FromMailbox, java.lang.String ToMailbox)
MessageID
- ID of the message to be movedFromMailbox
- path or ID of the mailbox to move message fromToMailbox
- path or ID of the mailbox to move message toSpecifying the mailbox to move the message from is not strictly necessary, but improves MOVEit Transfer's ability to more accurately handle the situation where a message resides in more than one mailbox accessible to the current user.
moveMessage(String,String,String,String)
public boolean moveMessage(java.lang.String MessageID, java.lang.String ToMailbox)
MessageID
- ID of the message to be movedToMailbox
- path or ID of the mailbox to move message to Use moveMessage(String,String,String)
or moveMessage(String,String,String,String)
to move a message from a specific mailbox.
moveMessage(String,String,String)
,
moveMessage(String,String,String,String)
public MOVEitMessageInfo readMessage(java.lang.String MessageID, java.lang.String MOVEitMailbox, java.lang.String MailboxOwner)
MOVEitMessageInfo
object describing the message identified by the
given ID. If MOVEitMailbox is a path and MailboxOwner is an empty string, then the
current user is assumed to be the mailbox owner. If MOVEitMailbox is an empty string,
a copy of the message will be searched for in mailboxes owned by MailboxOwner.MessageID
- ID of the message to downloadMOVEitMailbox
- path or ID of the mailbox to download the message fromMailboxOwner
- username or user ID of the mailbox ownernull
otherwise
Specifying the mailbox to download the message from is not strictly necessary, but improves MOVEit Transfer's ability to more accurately handle the situation where a message resides in more than one mailbox accessible to the current user.
readMessage(String,String)
public MOVEitMessageInfo readMessage(java.lang.String MessageID, java.lang.String MOVEitMailbox)
MOVEitMessageInfo
object describing the message identified by the
given ID. If MOVEitMailbox is a path, then the current user is assumed to be the
mailbox owner. If MOVEitMailbox is an empty string, a copy of the message will be
searched for in mailboxes accessible to the current user.MessageID
- ID of the message to downloadMOVEitMailbox
- path or ID of the mailbox to download the message fromnull
otherwise
Specifying the mailbox to download the message from is not strictly necessary, but improves MOVEit Transfer's ability to more accurately handle the situation where a message resides in more than one mailbox accessible to the current user.
readMessage(String,String,String)
public MOVEitMessageInfo readMessage(java.lang.String MessageID)
MOVEitMessageInfo
object describing the message identified by
the given ID.MessageID
- ID of the message to downloadnull
otherwise
Use readMessage(String,String)
or readMessage(String,String,String)
to download a message from a specific mailbox.
readMessage(String,String)
,
readMessage(String,String,String)
public java.util.HashMap checkMessageRecipients(MOVEitMessageInfo oMsg)
MOVEitMessageInfo
object defining a package to send, checks whether the
assigned recipients are valid for the currently configured "From" user. (If the "From"
property is an empty string, then recipients are checked for the current user.) Returns
a HashMap whose KEYS contain a list of invalid recipients (group recipients are prefaced
by "GROUP:"). For recipients that are invalid because MOVEit Transfer matched more than one
user or group, the HashMap VALUES contain strings that are comma-delimited lists of all
matching user or group IDs. For recipients that are invalid for other reasons, the
HashMap VALUES contain empty strings. Returns an empty dictionary if all recipients
checked OK. Returns null
if an error occurred.oMsg
- MOVEitMessageInfo
object containing recipients to be checkednull
if there were errors, otherwise a HashMap
containing invalid recipientspublic boolean sendMessage(MOVEitMessageInfo oMsg, boolean bSendToUnregRecip)
MOVEitMessageInfo
object describing a message to be sent, sends
the message to the MOVEit Transfer server on behalf of the configured "From" user.
(If the "From" property is an empty string, then sends the message on behalf of
the current user.) Returns TRUE if successful, FALSE otherwise. Also sets oMsg
to reflect the secure message now stored on MOVEit Transfer. (Local paths are replaced
with MOVEit Transfer paths, etc.)oMsg
- MOVEitMessageInfo
object containing message information to
be posted to the MOVEit Transfer hostbSendToUnregRecip
- NO LONGER USED. MOVEit Transfer now handles sending
to unregistered recipients based on the server's
Ad Hoc Transfer settingspublic boolean sendMessage(MOVEitMessageInfo oMsg)
MOVEitMessageInfo
object describing a message to be sent, sends
the message to the MOVEit Transfer server on behalf of the configured "From" user.
(If the "From" property is an empty string, then sends the message on behalf of
the current user.) Returns TRUE if successful, FALSE otherwise. Also sets oMsg
to reflect the secure message now stored on MOVEit Transfer. (Local paths are replaced
with MOVEit Transfer paths, etc.)oMsg
- MOVEitMessageInfo
object containing message information to be posted to the
MOVEit Transfer hostpublic java.util.List<MOVEitUserInfo> listSendAsUsers()
MOVEitUserInfo
objects describing all the users that the
current user is able to send messages on behalf of, including the current
user themselves. The MOVEitUserInfo
objects will contain limited information
about each user account (i.e. ID, username, realname, etc.), as well as various
Ad Hoc related settings and defaults specific to that user.MOVEitUserInfo
objects describing all user accounts that
the current user is able to send as if successful, null
otherwisepublic MOVEitUserInfo getSendAsUserInfo(java.lang.String userid)
MOVEitUserInfo
object describing the specified user whom the
current user is able to send messages on behalf of. The MOVEitUserInfo
object will contain limited information about the user account (i.e. ID, username,
realname, etc.), as well as various Ad Hoc related settings and defaults specific
to that user.userid
- ID of the MOVEit Transfer userMOVEitUserInfo
object describing the specified user whom
the current user is able to send as if successful, null
otherwisepublic boolean addUser(java.lang.String Username, java.lang.String Password, java.lang.String RealName, java.lang.String Email, int Permission, java.lang.String Notes, boolean ForceChangePassword, java.lang.String OrgID)
6
= TempUser10
= User20
= FileAdmin30
= Admin40
= SysAdminUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userPermission
- permission code of the new userNotes
- any notes to be added with the new userForceChangePassword
- when true, the user will be required to
change their password on their first loginOrgID
- ID of the organization to add the user topublic boolean addUser(java.lang.String Username, java.lang.String Password, java.lang.String RealName, java.lang.String Email, int Permission, java.lang.String Notes, boolean ForceChangePassword)
6
= TempUser10
= User20
= FileAdmin30
= Admin40
= SysAdminUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userPermission
- permission code of the new userNotes
- any notes to be added with the new userForceChangePassword
- when true, the user will be required to
change their password on their first loginpublic boolean addUser(java.lang.String Username, java.lang.String Password, java.lang.String RealName, java.lang.String Email, int Permission, java.lang.String Notes)
6
= TempUser10
= User20
= FileAdmin30
= Admin40
= SysAdminUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userPermission
- permission code of the new userNotes
- any notes to be added with the new userpublic boolean addUser(java.lang.String Username, java.lang.String Password, java.lang.String RealName, java.lang.String Email, int Permission)
6
= TempUser10
= User20
= FileAdmin30
= Admin40
= SysAdminUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userPermission
- permission code of the new userpublic boolean cloneUser(java.lang.String OrigUsername, java.lang.String NewUsername, java.lang.String Password, java.lang.String RealName, java.lang.String Email, java.lang.String Notes, boolean ForceChangePassword)
OrigUsername
- username or ID of user to cloneNewUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userNotes
- any notes to be added with the new userForceChangePassword
- when true, the user will be required to
change their password on their first loginpublic boolean cloneUser(java.lang.String OrigUsername, java.lang.String NewUsername, java.lang.String Password, java.lang.String RealName, java.lang.String Email, java.lang.String Notes)
OrigUsername
- username or ID of user to cloneNewUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userNotes
- any notes to be added with the new userpublic boolean cloneUser(java.lang.String OrigUsername, java.lang.String NewUsername, java.lang.String Password, java.lang.String RealName, java.lang.String Email)
OrigUsername
- username or ID of user to cloneNewUsername
- username of the new userPassword
- password of the new userRealName
- display name of the new userEmail
- email address of the new userpublic boolean addTemporaryUser(java.lang.String Email, java.lang.String Password, java.lang.String RealName, boolean ForceChangePassword)
Email
- email address of the new userPassword
- password of the new userRealName
- display name of the new userForceChangePassword
- when true, the user will be required to
change their password on their first loginpublic boolean addTemporaryUser(java.lang.String Email, java.lang.String Password, java.lang.String RealName)
Email
- email address of the new userPassword
- password of the new userRealName
- display name of the new userpublic boolean addGroupToUserAddressBook(java.lang.String Owner, java.lang.String GroupName, boolean AllowExpansion)
Owner
- address book owner username or IDGroupName
- name or ID of group to add to address bookAllowExpansion
- if set to true, address book owner will
see all members of the group in their
address book as well as the group itselfpublic boolean addGroupToUserAddressBook(java.lang.String Owner, java.lang.String GroupName)
Owner
- address book owner username or IDGroupName
- name or ID of group to add to address bookpublic boolean addUserToUserAddressBook(java.lang.String Owner, java.lang.String Username)
Owner
- address book owner username or IDUsername
- username or ID to add to address bookpublic boolean deleteGroupFromUserAddressBook(java.lang.String Owner, java.lang.String GroupName)
Owner
- address book owner username or IDGroupName
- name or ID of group to remove from address bookpublic boolean deleteUserFromUserAddressBook(java.lang.String Owner, java.lang.String Username)
Owner
- address book owner username or IDUsername
- username or ID of user to remove from address bookpublic java.util.HashMap listUserAddressBook(java.lang.String Username)
Username
- username or ID of user to list the address book ofnull
otherwisepublic java.util.HashMap lookupUserAddressBook(java.lang.String Value, java.lang.String Type, java.lang.String Owner)
Value
- a username, real name, email address, user ID, group name, or group ID
to search the specified user's address book forType
- one of the strings "User" or "Group" specifying the nature of the
Value argumentOwner
- username or user ID of the user who's address book is to be searchednull
otherwisepublic java.util.HashMap lookupUserAddressBook(java.lang.String Value, java.lang.String Type)
Value
- a username, real name, email address, user ID, group name, or group ID
to search the current user's address book forType
- one of the strings "User" or "Group" specifying the nature of the
Value argumentnull
otherwiselookupUserAddressBook(String,String,String)
public boolean importUserCertFromBuffer(java.lang.String Username, java.lang.String Buffer)
Username
- username or ID of user to add cert forBuffer
- string containing Base-64 encoded SSL public certificate datatrue
if successful; otherwise, false
public boolean importUserCertFromFile(java.lang.String Username, java.lang.String Filepath)
Username
- username or ID of user to add cert forFilepath
- local path of certificate file to importtrue
if successful; otherwise, false
public boolean importUserKeyFromBuffer(java.lang.String Username, java.lang.String Buffer)
Username
- username or ID of user to add key forBuffer
- string containing SSH public key datatrue
if successful; otherwise, false
public boolean importUserKeyFromFile(java.lang.String Username, java.lang.String Filepath)
Username
- username or ID of user to add key forFilepath
- local path of key file to importtrue
if successful; otherwise, false
public boolean addUserCertKey(java.lang.String Username, int DataType, java.lang.String Data)
Username
- username or ID of user to add cert/key forDataType
- type of cert/key data being added. See MOVEitCertKeyInfo.dataType()
for valid data typesData
- cert/key data being addedtrue
if successful; otherwise, false
public java.util.HashMap listUserCertsKeys(java.lang.String Username)
MOVEitCertKeyInfo
objects as values. Returns an empty HashMap
if no certs or keys are found, or null
if an error occurs.Username
- username or ID of user to list certs and keys ofnull
public boolean removeUserCertKey(java.lang.String Username, int CertKeyID)
Username
- username or ID of user to remove cert/key forCertKeyID
- ID of cert or key to removetrue
if successful; otherwise, false
public boolean changeUserGroupMembership(java.lang.String GroupName, java.lang.String Username, java.lang.String Relationship)
Value | Description |
1 |
Regular Member |
2 |
Group Admin |
GroupName
- name or ID of groupUsername
- username or ID of user to change relationship ofRelationship
- relationship code to applypublic boolean changeUserPassword(java.lang.String Username, java.lang.String NewPass)
Username
- username or ID of user to change password ofNewPass
- new password to apply to userpublic boolean changeUserSetting(java.lang.String Username, java.lang.String SettingName, java.lang.String NewValue)
For more details about these settings, see the MOVEitUserInfo
documentation.
Setting Name | Allowed New Value |
allowftps |
1 = Allowed 0 = Not Allowed |
allowhttpsclient |
1 = Allowed 0 = Not Allowed |
allowhttpsweb |
1 = Allowed 0 = Not Allowed |
allowinsecureftp |
1 = Allowed 0 = Not Allowed |
allowssh |
1 = Allowed 0 = Not Allowed |
authmethod |
20 = MOVEit Only 10 = External Only 0 = Both |
chrootdefaultfolder |
1 = Enabled 0 = Disabled |
defaultfolder |
Any Valid MOVEit Transfer Folder Path or "0" to reset to user's home folder. |
email |
Any Valid Email Address |
emailformat |
1 = HTML 2 = Text |
exemptfromexpiration |
0 = No 1 = Yes |
forcepasswordchange |
0 = No 1 = Yes |
homefolder |
Any Valid MOVEit Transfer Folder Path or "0" to assign no home folder. |
language |
Any Valid International Language Code |
notes |
Any String |
notification |
0 = No 1 = Yes 2 = Yes+Admin |
permission |
30 = Admin 20 = FileAdmin 10 = User 6 = TempUser |
quota |
0 = None 1-9,223,372,036,854,775,807 = quota size (in bytes) |
realname |
Any String |
requireftpscert |
1 = Required 0 = Not Required |
requireftpscertpassword |
1 = Required 0 = Not Required |
requirehttpscert |
1 = Required 0 = Not Required |
requirehttpscertpassword |
1 = Required 0 = Not Required |
requiresshkey |
1 = Required 0 = Not Required |
requiresshkeypassword |
1 = Required 0 = Not Required |
Username
- username or ID of user to change setting forSettingName
- name of setting to changeNewValue
- value to apply to settingMOVEitUserInfo
public boolean changeUserStatus(java.lang.String Username, java.lang.String Status, java.lang.String StatusNote)
Username
- username or ID of user to change status ofStatus
- either "active" or "suspended"StatusNote
- any notes to be added to the user's statuspublic boolean changeUserStatus(java.lang.String Username, java.lang.String Status)
Username
- username or ID of user to change status ofStatus
- either "active" or "suspended"public boolean deleteUser(java.lang.String Username)
Username
- username or ID of user to removepublic MOVEitUserInfo getUserDetails(java.lang.String Username)
MOVEitUserInfo
object containing information about the
specified user. If the user does not exist or the currently authorized user
is not permitted to access it, then null
is returned instead.Username
- username or ID of user to return information aboutnull
otherwiseMOVEitUserInfo
public boolean addUserToGroup(java.lang.String Username, java.lang.String GroupName)
Username
- username or ID of user to addGroupName
- name or ID of group to add user topublic boolean removeUserFromGroup(java.lang.String Username, java.lang.String GroupName)
Username
- username or ID of user to removeGroupName
- name or ID of group to remove user frompublic java.util.HashMap listUserGroups(java.lang.String Username)
MOVEitUserGroupInfo
objects.) Returns an empty HashMap if no groups are found
or null
if the currently authorized user is not permitted to get this
information.Username
- username or ID of user to list group membership ofnull
otherwisepublic java.util.HashMap listGroups(java.lang.String OrgID)
MOVEitUserGroupInfo
objects.) The "OrgID" argument only applies if the currently
authorized user is a SysAdmin; by default this value is the same as the currently
authorized user's OrgID. Returns an empty HashMap if no groups are found or null
if the currently authorized user is not permitted to get this information.OrgID
- ID of the organization to list the groups ofnull
otherwisepublic java.util.HashMap listGroups()
MOVEitUserGroupInfo
objects.) Returns an empty HashMap if no groups are found or null
if the
currently authorized user is not permitted to get this information.null
otherwisepublic java.util.HashMap listGroupMembers(java.lang.String GroupName)
MOVEitUserInfo
objects.) Returns an empty HashMap if no members are found or null
if
the currently authorized user is not permitted to get this information.GroupName
- name or ID of group to return membership information aboutnull
otherwisepublic java.util.HashMap listUserGroupsNot(java.lang.String Username)
null
if the currently authorized user is not permitted to get
this information.Username
- username of ID of user to list non-member groups fornull
otherwisepublic boolean addUserToGroupAddressBook(java.lang.String OwnerGroup, java.lang.String Username)
OwnerGroup
- address book owner group name or IDUsername
- username or ID of user to add to address bookpublic boolean addGroupToGroupAddressBook(java.lang.String OwnerGroup, java.lang.String GroupName, boolean AllowExpansion)
OwnerGroup
- address book owner group name or IDGroupName
- name or ID of group to add to address bookAllowExpansion
- if set to true, address book owner group members will
see all members of the group in their
address book as well as the group itselfpublic boolean deleteUserFromGroupAddressBook(java.lang.String OwnerGroup, java.lang.String Username)
OwnerGroup
- address book owner group name or IDUsername
- username or ID of user to remove from address bookpublic boolean deleteGroupFromGroupAddressBook(java.lang.String OwnerGroup, java.lang.String GroupName)
OwnerGroup
- address book owner group name or IDGroupName
- name or ID of group to remove from address bookpublic MOVEitUserGroupInfo getGroupDetails(java.lang.String GroupName)
MOVEitUserGroupInfo
object containing information about the
specified group. If the group does not exist or the currently authorized user
is not permitted to access it, then null
is returned instead.GroupName
- name or ID of group to return information aboutnull
otherwiseMOVEitUserGroupInfo
public java.util.HashMap listUsers(java.lang.String OrgID)
MOVEitUserInfo
objects.)
Returns an empty HashMap if no users are found or null
if the currently
authorized user is not permitted to get this information. The "OrgID" argument only
applies if the currently authorized user is a SysAdmin; by default this value is the
same as the currently authorized user's OrgID.
NOTE: MOVEit Transfer enforces a 1000 entry limit on the number of users that
can be returned from a single listing, for performance reasons. If you need to list
more than 1000 users, please use the
listUsersAdvanced
function.
To determine if there are more than 1000 users on the system, check
the userListCount
value after this function returns. It will contain
the total number of users available to the current user.
OrgID
- ID of the organization to list the users ofnull
otherwisepublic java.util.HashMap listUsers()
MOVEitUserInfo
objects.)
Returns an empty HashMap if no users are found or null
if the currently
authorized user is not permitted to get this information.
NOTE: MOVEit Transfer enforces a 1000 entry limit on the number of users that
can be returned from a single listing, for performance reasons. If you need to list
more than 1000 users, please use the
listUsersAdvanced
function.
To determine if there are more than 1000 users on the system, check
the userListCount
value after this function returns. It will contain
the total number of users available to the current user.
null
otherwisepublic java.util.HashMap listUsersAdvanced(java.lang.String page, int entriesPerPage, java.lang.String permissionFilter, java.lang.String statusFilter, java.lang.String groupFilter, java.lang.String searchFilter, java.lang.String searchString, java.lang.String orgID)
MOVEitUserInfo
objects.)
Returns an empty HashMap if no users are found or null
if the currently
authorized user is not permitted to get this information. The "OrgID" argument only
applies if the currently authorized user is a SysAdmin; by default this value is the
same as the currently authorized user's OrgID.
This function allows more customization in which users are returned then the
listUsers
function. Most importantly, this function supports "paging", which
allows programs to separate user lists into more manageable "pages", which contain
only some of the results of the list. This is necessary when trying to list a large
number of users, as MOVEit Transfer enforces a 1000 entry limit on the number of users that can
be returned from a single listing, for performance reasons. The page
argument specifies the page number to return (starting with 1). The
entriesPerPage
argument determines the number of entries that will be
returned in each page (minimum 5, maximum 1000). Once the first page of the list has returned,
the class-level userListCount
value will contain the total number of users available via
the provided filters. The number of pages of users that can be retrieved can then be calculated
using that value and the entriesPerPage
argument via the following algorithm:
if ((objAPI.userListCount mod entriesPerPage) > 0) {<br>
number_of_pages = (objAPI.userListCount div entriesPerPage) + 1<br>
} else {<br>
number_of_pages = objAPI.userListCount div entriesPerPage<br>
}
If the page
argument is set to a value higher than the total number of pages available,
the first page of results will be returned.
Other capabilities of this function beyond listUsers
include the ability
to specify various filters and search strings to narrow down the list of returned users.
(Use a blank-string argument to skip a filter.) These options are described below:
permissionFilter
- causes only users that match the specified permission
filter to be returned
Values:
Filter Code | Meaning |
Blank String | All Users |
1 |
End Users |
2 |
Administrators |
3 |
FileAdmins |
4 |
GroupAdmins |
5 |
Temporary Users |
6 |
SysAdmins |
statusFilter
- causes only users that match the specified status filter
to be returned
Values:
Filter Code | Meaning |
Blank String | All Users |
1 |
Active Users |
2 |
Inactive Users |
3 |
Users who have never signed on |
groupFilter
- causes only users who are members of the specified group to be
returned
Values: any MOVEit Transfer group name, or blank string to skip filter
searchFilter
- used with the searchString argument; causes only users whose
property specified by the searchFilter code matches the searchString value to be returned
Values:
Filter Code | Meaning |
Blank String | All Users |
1 |
Username |
2 |
Real Name |
4 |
Email Address |
searchString
- used with the searchFilter argument; search string to match
the user property specified by the searchFilter code against
Values: any search string, or blank string to skip filter - multiple character matching can be done with the "*" wildcard
character; single character matching can be done with the "?" wildcard character
page
- page number to return (starting with 1). If the value provided
is larger than the number of pages in the current list, the
first page of results will be returnedentriesPerPage
- number of entries to return in each page of results (minimum 5, maximum 200)permissionFilter
- filter-by-permission codestatusFilter
- filter-by-status codegroupFilter
- filter-by-group-membership group namesearchFilter
- filter-by-search-string codesearchString
- search string to match users againstorgID
- ID of the organization to list the users ofnull
otherwisepublic java.util.HashMap listUsersAdvanced(java.lang.String page, int entriesPerPage, java.lang.String permissionFilter, java.lang.String statusFilter, java.lang.String groupFilter, java.lang.String searchFilter, java.lang.String searchString)
MOVEitUserInfo
objects.)
Returns an empty HashMap if no users are found or null
if the currently
authorized user is not permitted to get this information.page
- page number to return (starting with 1). If the value provided
is larger than the number of pages in the current list, the
first page of results will be returnedentriesPerPage
- number of entries to return in each page of resultspermissionFilter
- filter-by-permission codestatusFilter
- filter-by-status codegroupFilter
- filter-by-group-membership codesearchFilter
- filter-by-search-string codesearchString
- search string to match users againstnull
otherwisepublic java.util.HashMap listUsersAdvanced(java.lang.String page, int entriesPerPage)
MOVEitUserInfo
objects.)
Returns an empty HashMap if no users are found or null
if the currently
authorized user is not permitted to get this information.page
- page number to return (starting with 1). If the value provided
is larger than the number of pages in the current list, the
first page of results will be returnedentriesPerPage
- number of entries to return in each page of resultsnull
otherwisepublic java.lang.String makeRandomUserPassword(java.lang.String Username)
Username
- username or ID of user to generate password for. Used to make sure
that the generated password does not contain the
usernamepublic boolean addGroup(java.lang.String GroupName, java.lang.String Description)
GroupName
- name of the new groupDescription
- description of the new grouppublic boolean addGroup(java.lang.String GroupName)
GroupName
- name of the new grouppublic boolean changeGroupSetting(java.lang.String GroupName, java.lang.String SettingName, java.lang.String NewValue)
Setting Name | Allowed New Value |
adminfolderaccess |
0 = No 1 = Yes |
adminfolderrelationship |
Permission String |
admintempuseraccess |
0 = No 1 = Yes |
allowattachments |
0 = No 1 = Yes |
cancreatetempusers |
0 = No 1 = Yes |
description |
Any String |
displayprofile |
Name of a valid display profile to apply, or a blank string to apply none. |
maxmaxattchsize |
0 = None 1-9,223,372,036,854,775,807 = max max attachment size (in bytes) |
maxmemberquota |
0 = None 1-9,223,372,036,854,775,807 = max member quota size (in bytes) |
tempusersinaddrbookexpansion |
0 = No 1 = Yes |
The Permission String value should consist of one or more of the following letters:
A
= AdminE
= SubfoldersD
= DeleteL
= ListN
= NotifyR
= ReadW
= WriteGroupName
- name of group to change setting forSettingName
- name of setting to changeNewValue
- value to apply to settingpublic boolean deleteGroup(java.lang.String GroupName)
GroupName
- name or ID of group to removepublic boolean runReport(java.lang.String ReportName, java.lang.String LocalPath)
ReportName
- name of report to runLocalPath
- path of the file on the local filesystem to
save the report contents topublic boolean runCustomReport(java.lang.String fields, java.lang.String tables, java.lang.String criteria, java.lang.String grouping, java.lang.String order, java.lang.String limit, java.lang.String OutputFormat, java.lang.String LocalPath)
These are the valid output format values:
Value | Description |
CSV | Comma-seperated values |
XML | XML |
HTMLNAKED | Basic, unstyled HTML |
HTMLSTYLED | Styled HTML |
fields
- SQL fields to querytables
- SQL tables to querycriteria
- SQL criteria to applygrouping
- SQL groupings to applyorder
- SQL order to applylimit
- SQL limit to applyOutputFormat
- output format to return the report inLocalPath
- path of the file on the local filesystem to
save the report contents topublic boolean signon(java.lang.String Username, java.lang.String Password)
Username
- username to sign on to host withPassword
- password to sign on to host withpublic boolean signon(java.lang.String Username, java.lang.String Password, java.lang.String ActAsIP)
Username
- username to sign on to host withPassword
- password to sign on to host withActAsIP
- IP address to act aspublic com.stdnet.moveit.api.MOVEitSAMLInfo getOrgSAMLInfo(java.lang.String OrgID)
OrgID
- ID of organization to get SAML information fornull
if an error occurredgetOrgSAMLInfo()
,
signonWithSAMLAssertion(Document)
public com.stdnet.moveit.api.MOVEitSAMLInfo getOrgSAMLInfo()
null
if an error occurredgetOrgSAMLInfo(String)
,
signonWithSAMLAssertion(Document)
public boolean signonWithSAMLAssertion(org.w3c.dom.Document SAMLAssertion)
SAMLAssertion
- SAML assertion documenttrue
if successful; otherwise, false
signonWithSAMLAssertion(Document,String)
,
getOrgSAMLInfo()
public boolean signonWithSAMLAssertion(org.w3c.dom.Document SAMLAssertion, java.lang.String ActAsIP)
SAMLAssertion
- SAML assertion documentActAsIP
- IP address to act astrue
if successful; otherwise, false
signonWithSAMLAssertion(Document)
,
getOrgSAMLInfo()
public boolean signoff()
public java.lang.String asAgent()
public java.lang.String asAgent(java.lang.String sAgent)
sAgent
- agent name to reportpublic java.lang.String actAsIP()
public java.lang.String clientCertFilePath(java.lang.String path)
clientCertFilePath
in class com.stdnet.moveit.api.ClientBase
path
- filename of a .pfx, .p12, or Java certificate storepublic java.lang.String clientCertFilePath()
clientCertFilePath
in class com.stdnet.moveit.api.ClientBase
public java.lang.String clientCertType(java.lang.String fileType)
clientCertType
in class com.stdnet.moveit.api.ClientBase
fileType
- "PKCS12" for a .pfx (aka .p12) file, or
"JKS" for a Java keystore filepublic java.lang.String clientCertType()
clientCertType
in class com.stdnet.moveit.api.ClientBase
public java.lang.String clientCertPassword(java.lang.String pw)
clientCertPassword
in class com.stdnet.moveit.api.ClientBase
pw
- the password to the client certificate file.public java.lang.String clientCertPassword()
clientCertPassword
in class com.stdnet.moveit.api.ClientBase
public int errorCode()
errorCode
in class com.stdnet.moveit.api.ClientBase
public java.lang.String errorDescription()
errorDescription
in class com.stdnet.moveit.api.ClientBase
public java.lang.String homeFolder()
public int homeFolderID()
-1
for users who have
not yet or failed to sign on. It will be the ID of the root folder for users who do
not have a home folder.public java.lang.String welcomeMessage()
public java.lang.String host()
host
in class com.stdnet.moveit.api.ClientBase
public java.lang.String host(java.lang.String sHost)
host
in class com.stdnet.moveit.api.ClientBase
sHost
- host to configurepublic boolean technicalDebug()
technicalDebug
in class com.stdnet.moveit.api.ClientBase
public boolean technicalDebug(boolean bDebug)
technicalDebug
in class com.stdnet.moveit.api.ClientBase
bDebug
- true or false (default is false)public boolean ignoreCertProbs()
ignoreCertProbs
in class com.stdnet.moveit.api.ClientBase
public boolean ignoreCertProbs(boolean bIgnoreCertProbs)
ignoreCertProbs
in class com.stdnet.moveit.api.ClientBase
bIgnoreCertProbs
- IgnoreCertProbs value
to configurepublic int orgID()
public java.lang.String orgName()
public org.w3c.dom.Node payload()
public int port()
port
in class com.stdnet.moveit.api.ClientBase
public int port(int iPort)
port
in class com.stdnet.moveit.api.ClientBase
iPort
- port to configurepublic java.lang.String rawResponse()
public java.lang.String scriptPath()
public java.lang.String scriptPath(java.lang.String sScriptPath)
sScriptPath
- script path to configurepublic boolean secure()
secure
in class com.stdnet.moveit.api.ClientBase
public boolean secure(boolean bSecure)
secure
in class com.stdnet.moveit.api.ClientBase
bSecure
- secure connection value to configurepublic java.lang.String sessionID()
public java.lang.String sessionCookie()
public int statusCode()
statusCode
in class com.stdnet.moveit.api.ClientBase
public java.lang.String statusDescription()
statusDescription
in class com.stdnet.moveit.api.ClientBase
public int userListCount()
listUsers
or
listUsersAdvanced
function call. If no call has been made, returns 0.listUsers
or
listUsersAdvanced
callpublic java.lang.String username()
public java.lang.String userID()
public java.lang.String userRealname()
public void useProxy(boolean bUseProxy)
bUseProxy
- is true if proxy settings should be usedpublic boolean useProxy()
public void httpProxyHost(java.lang.String host)
host
- the proxy hostname to use for HTTP requestspublic java.lang.String httpProxyHost()
public void httpProxyPort(int port)
port
- the proxy port to use for HTTP requestspublic int httpProxyPort()
public void httpProxyUser(java.lang.String user)
user
- the proxy username to use for HTTP requestspublic java.lang.String httpProxyUser()
public void httpProxyPassword(java.lang.String password)
password
- the proxy password to use for HTTP requestspublic java.lang.String httpProxyPassword()
public void httpsProxyHost(java.lang.String host)
host
- the proxy hostname to use for HTTPS requestspublic java.lang.String httpsProxyHost()
public void httpsProxyPort(int port)
port
- the proxy port to use for HTTPS requestspublic int httpsProxyPort()
public void httpsProxyUser(java.lang.String user)
user
- the proxy username to use for HTTPS requestspublic java.lang.String httpsProxyUser()
public void httpsProxyPassword(java.lang.String password)
password
- the proxy password to use for HTTPS requestspublic java.lang.String httpsProxyPassword()