Use FilesLibraryService commands to assign a policies to libraries. A library is a set of files owned by a person or community. A policy sets a maximum size for a library.
Before you begin
To use administrative commands, you must use the wsadmin client. See Starting the wsadmin client
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.
Parent topic: Administering Files
Configuring media galleries
Setting a maximum size on files
Starting the wsadmin client
Working with Files policies
- Start the wsadmin client.
- Start the Files Jython script interpreter using the following command:
- Create a policy to specify the library size, using steps in the topic Working with policies.
- Run the following commands to set maximum sizes on libraries:
FilesLibraryService.assignPolicy(string libraryId, string policyId)
Assigns a policy to a library. 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. A policy sets a maximum size for a library.
No message is printed if the task succeeds.
The library ID in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.policyId
The policy ID in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.
Assigns policies to libraries as specified in a text file. The file must contain a list of library-policy ID pairs, one pair per line, values separated by a comma. For example: libraryId, policyId
. Extra whitespace is ignored. You must create this text file and save it in a directory local to the server where you are running the wsadmin processor.
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. A policy sets a maximum size for a library.
The full path to the text file, as a string.