Use these commands to perform administrative tasks for Wikis. No file checkout or server restart is needed when using these commands.
The following sections define administrative commands you can use when working with Wikis. 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 WikisMemberService.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.
WikisConfigService
WikisConfigService.checkOutConfig("<working_directory>", "<cell_name>")
Checks Wikis 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®:
WikisConfigService.showConfig()
Displays the current configuration settings. You must check out the configuration files with WikisConfigService.checkOutConfig() before running WikisConfigService.showConfig().
WikisConfigService.updateConfig("<quick_config_property>", "<new_value>")
WikisConfigService.checkInConfig()
Checks in Wikis configuration files. Run from the wsadmin command processor.
WikisMemberService
WikisMemberService.getById(string id)
WikisMemberService.getByExtId(string externalId)
WikisMemberService.getByEmail(string email)
WikisMemberService.syncAllMembersByExtId( {"updateOnEmailLoginMatch": ["true" | "false"] } )
See Synchronizing user data using administrative commands for details.
WikisMemberService.syncMemberByExtId("currentExternalId"[, {"newExtId" : "id-string" [, "allowExtIdSwap" : ["true" | "false"] ] } ] )
See Synchronizing user data using administrative commands for details.
WikisMemberService.inactivateMemberByEmail("email")
See Synchronizing user data using administrative commands for details.
WikisMemberService.inactivateMemberByExtId("externalID")
See Synchronizing user data using administrative commands for details.
WikisMemberService.getMemberExtIdByEmail("email")
See Synchronizing user data using administrative commands for details.
WikisMemberService.getMemberExtIdByLogin("login")
See Synchronizing user data using administrative commands for details.
WikisMemberService.syncBatchMemberExtIdsByEmail("emailFile" [, {"allowInactivate" : ["true" | "false"] } ] )
See Synchronizing user data using administrative commands for details.
WikisMemberService.syncBatchMemberExtIdsByLogin("loginFile" [, {"allowInactivate" : ["true" | "false"] } ] )
See Synchronizing user data using administrative commands for details.
WikisMemberService.syncMemberExtIdByEmail("email" [, { "allowInactivate" : ["true" | "false"] } ])
See Synchronizing user data using administrative commands for details.
WikisMemberService.syncMemberExtIdByLogin("name" [, {"allowInactivate": ["true" | "false"] } ])
See Synchronizing user data using administrative commands for details.
WikisLibraryService
WikisLibraryService.getById(string libraryId)
WikisLibraryService.delete(string libraryId)
WikisLibraryService.deleteBatch(string filePath)
WikisLibraryService.assignPolicy(string libraryId, string policyId)
WikisLibraryService.assignPolicyBatch(string filePath)
WikisLibraryService.browseWiki(string sortOption, string sortAscending, int pageNumber, int itemsPerPage)
WikisLibraryService.getWikiCount()
Returns the total number of wikis.
WikisLibraryService.exportSyncedResourceInfo (string fullpathForOutput, string type)
WikisDataIntegrityService
WikisDataIntegrityService.checkFiles(string extraFileDirectory)
WikisPrintService
WikisPrintService.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:
- WikisMemberService.getById (returns a Map)
- WikisMemberService.getByExtId (returns a Map)
- WikisMemberService.getByEmail (returns a Map)
- WikisLibraryService.getById (returns a Map)
- WikisLibraryService.browseWiki (returns a List<Map>)
- WikisPolicyService.getById (returns a Map)
- WikisPolicyService.browse (returns a List<Map>
)
- WikisMetricsService.browse (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.
Example:
WikisPrintService.saveToFile(WikisLibraryService.browseWiki("title","true", 1, 20), "/opt/wsadmin/LibraryMap.txt")
WikisScheduler
WikisScheduler.pauseSchedulingTask(string taskName)
WikisScheduler.resumeSchedulingTask(string taskName)
WikisScheduler.forceTaskExecution(string taskName, string executeSynchronously)
WikisScheduler.getTaskDetails(string taskName)
WikisPolicyService
WikisPolicyService.add(string title, long maximumSize)
WikisPolicyService.edit(string policyId, string title, long maximumSize)
WikisPolicyService.getById(string id)
WikisPolicyService.browse(string sortOption, string sortAscending, int pageNumber, int itemsPerPage)
WikisPolicyService.getCount()
Returns the number of policies. Policies set a maximum size limit on libraries. A library is the pages, attachments, and other data that make up a wiki. It includes all wiki page versions, but does not include metadata such as comments.
WikisPolicyService.editDefault(long maximumSize)
WikisPolicyService.editCommunityDefault(long maximumSize)
WikisPolicyService.delete(string id)
WikisMetricsService
WikisMetricsService.browse(string startDate, string endDate, string filePathWithFilterKeys)
WikisMetricsService.saveToFile(string filePath, string startDate, string endDate, string filePathWithFilterKeys, string append)
Returns metrics about wikis and exports them to a local file. The same metrics are provided for each day in a specified period.
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 Wikis 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
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:
WikisMetricsService.saveToFile("C:/connections/files/metrics.csv", "2009-01-01", "2009-01-10", "C:/connections/files/metric_keys.txt", "false")
WikisMetricsService.getAvailableRange()
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 wiki libraries. Typically, the current day's data is not available until 12:01 A.M. the following day.
If metrics collection was disabled or did not occur because of some issue, there may be gaps in data available.
WikisUtilService
WikisUtilService.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 WikisLibraryService.browseWiki.
A map is a list of key/value pairs, for example the WikisLibraryService.browseWiki command returns a list of 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 WikisLibraryService.browseWiki(<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 "Development*":
WikisUtilService.filterListByString(WikisLibraryService.browseWiki("title", "true", 1, 25), "title", "Development*")
WikisUtilService.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 WikisLibraryService.browseWiki.
A map is a list of key/value pairs, for example the WikisLibraryService.browseWiki command returns a list of 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 WikisLibraryService.browseWiki(<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:
WikisUtilService.filterListByDate(WikisLibraryService.browseWiki("title", "true", 1, 25), "createDate", ">=2010-01-01")
WikisUtilService.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 WikisLibraryService.browseWiki.
A map is a list of key/value pairs, for example the WikisLibraryService.browseWiki command returns a list of 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 WikisLibraryService.browseWiki(<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:
WikisUtilService.filterListByNumber(WikisLibraryService.browseWiki("title", "true", 1, 25), "percentUsed", "==20")
WikisUtilService.getFileById(string fileID)
Parent topic: Running Wikis 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 Wikis data integrity
Backing up Wikis data
Importing statistics and metrics into a spreadsheet
Related reference
Wikis metrics
Wikis configuration properties
|
|
|
|
| Version 1 |
February 2, 2011 |
4:52:16 PM |
by IBM  |
|
|