Use these commands to perform administrative tasks for Files. No file checkout or server restart is needed when using these commands.
The following sections define administrative commands you can use when working with Files. Each section describes the commands for a specific service.
Many commands ask for IDs as input parameters, such as library IDs, user IDs, policy IDs, and file IDs. You can use commands that take parameters you do know to return data including the ID you are looking for. For example, run FilesMemberService.getByEmail(string email) providing a user's email address and among the data returned is the user's ID. You can also find IDs using feeds. See the Lotus Connections API documentation for information on getting ID information using feeds.
FilesConfigService
FilesConfigService.checkOutConfig("<working_directory>", "<cell_name>")
Checks Files configuration files out to a temporary directory. Run from the wsadmin command processor.
<working_directory>
Temporary working directory to which the configuration files are copied. The files are kept in this working directory while you make changes to them.
<cell_name>
For example:
- AIX/Linux:
- Microsoft® Windows®:
FilesConfigService.showConfig()
Displays the current configuration settings. You must check out the configuration files with FilesConfigService.checkOutConfig() before running FilesConfigService.showConfig().
FilesConfigService.updateConfig("<quick_config_property>", "<new_value>")
FilesConfigService.checkInConfig()
Checks in Files configuration files. Run from the wsadmin command processor.
FilesMemberService
FilesMemberService.getById(string userId)
FilesMemberService.getByExtId(string externalId)
FilesMemberService.getByEmail(string email)
FilesMemberService.syncAllMembersByExtId( {"updateOnEmailLoginMatch": ["true" | "false"] } )
See Synchronizing user data using administrative commands for details.
FilesMemberService.syncMemberByExtId("currentExternalId"[, {"newExtId" : "id-string" [, "allowExtIdSwap" : ["true" | "false"] ] } ] )
See Synchronizing user data using administrative commands for details.
FilesMemberService.inactivateMemberByEmail("email")
See Synchronizing user data using administrative commands for details.
FilesMemberService.inactivateMemberByExtId("externalID")
See Synchronizing user data using administrative commands for details.
FilesMemberService.getMemberExtIdByEmail("email")
See Synchronizing user data using administrative commands for details.
FilesMemberService.getMemberExtIdByLogin("login")
See Synchronizing user data using administrative commands for details.
FilesMemberService.syncBatchMemberExtIdsByEmail("emailFile" [, {"allowInactivate" : ["true" | "false"] } ] )
See Synchronizing user data using administrative commands for details.
FilesMemberService.syncBatchMemberExtIdsByLogin("loginFile" [, {"allowInactivate" : ["true" | "false"] } ] )
See Synchronizing user data using administrative commands for details.
FilesMemberService.syncMemberExtIdByEmail("email" [, { "allowInactivate" : ["true" | "false"] } ])
See Synchronizing user data using administrative commands for details.
FilesMemberService.syncMemberExtIdByLogin("name" [, {"allowInactivate": ["true" | "false"] } ])
See Synchronizing user data using administrative commands for details.
FilesLibraryService
FilesLibraryService.getById(string libraryId)
FilesLibraryService.delete(string libraryId)
FilesLibraryService.deleteBatch(string filePath)
FilesLibraryService.assignPolicy(string libraryId, string policyId)
FilesLibraryService.assignPolicyBatch(string filePath)
FilesLibraryService.getPersonalByOwnerId(string ownerUserId)
FilesLibraryService.browsePersonal(string sortOption, string sortAscending, int pageNumber, int itemsPerPage)
FilesLibraryService.browseCommunity(string sortOption, string sortAscending, int pageNumber, int itemsPerPage)
FilesLibraryService.browsePersonalOrphan(string sortOption, string sortAscending, int pageNumber, int itemsPerPage)
FilesLibraryService.getPersonalCount()
Returns the total number of personal libraries.
FilesLibraryService.getCommunityCount()
Returns the total number of Community libraries.
FilesLibraryService.getPersonalOrphanCount()
Returns the total number of personal libraries whose owners were removed from the user directory.
FilesLibraryService.exportSyncedResourceInfo(string fullpathForOutput, string type)
FilesDataIntegrityService
FilesDataIntegrityService.checkFiles(string extraFileDirectory)
FilesDataIntegrityService.syncAllCommunityShares()
Ensure that files that have been shared with communities from Files are correctly synchronized. If the name or the access level of a community has changed, the command updates the Files data store to reflect those changes. If the community no longer exists, the shared files still exist in the Files applications; the file owners still own and have full access to that content even though it is no longer shared.
FilesPrintService
FilesPrintService.saveToFile(string object, string filePath, string append)
Prints information returned by other commands to a file.
Parameters:
object
A command with parameters that returns a Map or List<Map> java object. You can use any of the following commands:
- FilesMemberService.getById (returns a Map)
- FilesMemberService.getByExtId (returns a Map)
- FilesMemberService.getByEmail (returns a Map)
- FilesLibraryService.getById (returns a Map)
- FilesLibraryService.getPersonalByOwnerId (returns a Map)
- FilesLibraryService.browsePersonal (returns a List<Map>)
- FilesLibraryService.browseCommunity (returns a List<Map>)
- FilesLibraryService.browsePersonalOrphan (returns a List<Map>)
- FilesPolicyService.getById (returns a Map)
- FilesPolicyService.browse (returns a List<Map>
)
- FilesMetricsService.browsePersonal (returns a List<Map>)
- FilesMetricsService.browseCommunity (returns a List<Map>)
filePath
A path to a file in which to save the object data. The data is saved in comma-separated value (.csv) format.
append
string whose default value is "true". Change to "false" to have the command overwrite the existing file instead of appending the data in the existing file.
For example:
FilesPrintService.saveToFile(FilesLibraryService.browsePersonal("title", "true", 1, 25), "/opt/wsadmin/LibraryMap.csv")
FilesScheduler
FilesScheduler.pauseSchedulingTask(string taskName)
FilesScheduler.resumeSchedulingTask(string taskName)
FilesScheduler.forceTaskExecution(string taskName, string executeSynchronously)
FilesScheduler.getTaskDetails(string taskName)
FilesPolicyService
FilesPolicyService.add(string title, long maximumSize)
FilesPolicyService.edit(string policyId, string title, long maximumSize)
FilesPolicyService.getById(string policyId)
FilesPolicyService.browse(string sortOption, string sortAscending, int pageNumber, int itemsPerPage)
FilesPolicyService.getCount()
Returns the total number of policies. Policies set a maximum size limit on libraries. A library is a set of files owned by a person or community. It includes all versions of the files, but does not include metadata such as comments.
FilesPolicyService.editPersonalDefault(long maximumSize)
FilesPolicyService.editCommunityDefault(long maximumSize)
FilesPolicyService.delete(string policyId)
FilesMetricsService
FilesMetricsService.browsePersonal(string startDate, string endDate, string filePathWithFilterKeys)
FilesMetricsService.browseCommunity(string startDate, string endDate, string filePathWithFilterKeys)
FilesMetricsService.savePersonalToFile(string filePath, string startDate, string endDate, string filePathWithFilterKeys, string append)
Returns metrics about personal libraries and exports them to a local file. The same metrics are provided for each day in a specified period. A personal library is a set of files owned by one person.
If you do not specify dates, then the command uses the first available day with data for startDate, and the last available day with data for endDate.
See the topic Files metrics for metrics and their descriptions.
Parameters:
filePath
Path to a file in which to export the metrics. Metrics are exported in comma separated value (CSV) format. If you specify a file name with a .csv extension, it is possible to open it as a spreadsheet. See Importing statistics and metrics into a spreadsheet.
startDate
The start date for the period, in YYYY-MM-DD format. This date is included in the returns, for example a start date of "2009-01-01" will include metrics from January 1, 2009. It must be in quotes, for example "2009-01-01".
endDate
The end date for the period, in YYYY-MM-DD format. This date is included in the returns, for example an end date of "2009-01-10" will include metrics from January 10, 2009. It must be in quotes, for example "2009-01-10".
filePathWithFilterKeys
Optional: The full path to a text file in which each line contains a metric key. If you specify a file, only metrics listed in the file are returned. If you do not specify a file, all data is returned. For example, if the file lists these three keys, then only these metrics are returned:
files.metric.personal.user.count
files.metric.personal.user.created.today.count
files.metric.personal.user.login.count
append
String whose default value is "true". Change to "false" to have the command overwrite the existing file instead of appending the data in the existing file.
For example:
FilesMetricsService.savePersonalToFile("C:/connections/files/metrics.csv", "2009-01-01", "2009-01-10", "C:/connections/files/metric_keys.txt", "false")
Note: While the filePathWithFilterKeys parameter is optional you cannot leave it out completely, you must at least have empty quotes, for example:
FilesMetricsService.savePersonalToFile("C:/connections/files/metrics.csv", "2009-01-01", "2009-01-10", "", "false")
FilesMetricsService.saveCommunityToFile(string filePath, string startDate, string endDate, string filePathWithFilterKeys, string append)
Returns metrics about community libraries and exports them to a local file. The same metrics are provided for each day in a specified period. A community library is a set of files owned by a community.
If you do not specify dates, then the command uses the first available day with data for startDate, and the last available day with data for endDate.
See the topic Files metrics for metrics and their descriptions.
Parameters:
filePath
Path to a file in which to export the metrics. Metrics are exported in comma separated value (CSV) format. If you specify a file name with a .csv extension, it is possible to open it as a spreadsheet. See Importing statistics and metrics into a spreadsheet.
startDate
The start date for the period, in YYYY-MM-DD format. This date is included in the returns, for example a start date of "2009-01-01" will include metrics from January 1, 2009. It must be in quotes, for example "2009-01-01".
endDate
The end date for the period, in YYYY-MM-DD format. This date is included in the returns, for example an end date of "2009-01-10" will include metrics from January 10, 2009. It must be in quotes, for example "2009-01-10".
filePathWithFilterKeys
Optional: The full path to a text file in which each line contains a metric key. If you specify a file, only metrics listed in the file are returned. If you do not specify a file, all data is returned. For example, if the file lists these three keys, then only these metrics are returned:
files.metric.personal.user.count
files.metric.personal.user.created.today.count
files.metric.personal.user.login.count
append
String whose default value is "true". Change to "false" to have the command overwrite the existing file instead of appending the data in the existing file.
For example:
FilesMetricsService.saveCommunityToFile("C:/connections/files/metrics.csv", "2009-01-01", "2009-01-10", "C:/connections/files/metric_keys.txt", "false")
FilesMetricsService.getAvailablePersonalRange()
Returns a string array where the first element is the first day data is available and the second element is the last day that data is available for personal libraries. Typically, the current day's data is not available until 12:01 A.M. the following day. A personal library is a set of files owned by one person.
If metrics collection was disabled or did not occur because of some issue, there may be gaps in data available.
FilesMetricsService.getAvailableCommunityRange()
Returns a string array where the first element is the first day data is available and the second element is the last day that data is available for community libraries. Typically, the current day's data is not available until 12:01 A.M. the following day. A community library is a set of files owned by a community.
If metrics collection was disabled or did not occur because of some issue, there may be gaps in data available.
FilesUtilityService
FilesUtilService.filterListByString(List listOfMaps, string filterKey, string regexstringCriteria)
Returns maps from a specified list that have a specified key matching a specified regular expression. Use this command to filter List<Map> java objects that are returned by any of the browse commands, such as FilesLibraryService.browsePersonal and FilesPolicyService.browse.
A map is a list of key/value pairs, for example the FilesLibraryService.browsePersonal command returns a list of personal libraries. Each library in the list is a map with a set of keys, and each key is paired with a value. Every library has the same set of keys, but unique values. Values contain information about the library, such as its title and creation date.
Parameters:
listOfMaps
A list of maps, for example the result of a command, such as FilesLibraryService.browsePersonal(<parameters>).
filterKey
A key in each map in the list, whose value is compared against the filter criteria.
regexstringCriteria
A regular expression represented as a string to match against the filterKey value. For example, "[0-9]+" to match only >= 1 numbers in a row.
The command returns maps from the listOfMaps whose filterKey is the regexstringCriteria value. For example, this command shows only the returned maps whose title values match the expression "John*":
FilesUtilService.filterListByString(FilesLibraryService.browsePersonal("title", "true", 1, 25), "title", "John*")
FilesUtilService.filterListByDate(list listOfMaps, string filterKey, expression)
Returns maps from a specified list that have a specified key with a specified date. Use this command to filter List<Map> java objects that are returned by any of the browse commands, such as FilesLibraryService.browsePersonal and FilesPolicyService.browse.
A map is a list of key/value pairs, for example the FilesLibraryService.browsePersonal command returns a list of personal libraries. Each library is a map with a set of keys, and each key is paired with a value. Every library has the same set of keys, but unique values. Values contain information about the library, such as its title and creation date.
Parameters:
listOfMaps
A list of maps, for example the result of FilesLibraryService.browsePersonal(<parameters>).
filterKey
A key in each map in the list, whose value is compared against the filter criteria.
expression
A string of the form <operator> <date> where <date> is in yyyy-MM-dd format and <operator> is one of the following: > >= == <= <
The command returns maps from the listOfMaps value whose filterKey value is the expression value. For example, this command shows only the returned maps whose creation date is on or later than January 1, 2010:
FilesUtilService.filterListByDate(FilesLibraryService.browsePersonal("title", "true", 1, 25), "createDate", ">=2010-01-01")
FilesUtilService.filterListByNumber(List listOfMaps, string filterKey, expression)
Returns maps from a specified list that have a specified key with a specified number. Use this command to filter List<Map> java objects that are returned by any of the browse commands, such as FilesLibraryService.browsePersonal and FilesPolicyService.browse.
A map is a list of key/value pairs, for example the FilesLibraryService.browsePersonal command returns a list of personal libraries. Each library is a map with a set of keys, and each key is paired with a value. Every library has the same set of keys, but unique values. Values contain information about the library, such as its title and creation date.
Parameters:
listOfMaps
A list of maps, for example the result of FilesLibraryService.browsePersonal(<parameters>).
filterKey
A key in each map in the list, whose value is compared against the filter criteria.
expression
A string of the form <operator> <int> where <int> is an integer and <operator> is one of the following: > >= == <= <
The command returns maps from the listOfMaps value whose filterKey value is the expression value. For example, this command shows only the returned maps whose percentUsed value (which reflects the percent of the library's available space that is currently used) is 20:
FilesUtilService.filterListByNumber(FilesLibraryService.browsePersonal("title", "true", 1, 25), "percentUsed", "==20")
FilesUtilService.getFileById(string fileID)
FilesObjectTypeService
Use these commands to import and export custom Content Management Interoperability Services (CMIS) object types, and delete or browse imported CMIS object types. See Working with CMIS API object types for details.
FilesObjectTypeService.importType("filePath")
FilesObjectTypeService.exportType("filePath", "Id")
FilesObjectTypeService.deleteType("Id")
FilesObjectTypeService.browseTypes()
Lists all imported custom object types.
Parent topic: Running Files administrative commands
Related concepts
Synchronizing user data using administrative commands
Lotus Connections APIs
Related tasks
Running administrative commands
Comparing remote application data with the Communities database
Checking Files data integrity
Backing up Files data
Importing statistics and metrics into a spreadsheet
Related reference
Files metrics
Files configuration properties
|
|
|
|
| Version 1 |
February 2, 2011 |
4:52:16 PM |
by IBM  |
|
|