Home

 

Set maximum sizes on libraries

Use WikisLibraryService commands to set maximum sizes on libraries by assigning them a policy. A library is the pages, attachments, and other data that make up a wiki. A policy sets a maximum size for a library.

  1. Open a command window and start the wsadmin command line tool as described in the topic, Starting the wsadmin client.

  2. Start the Wikis script with the following command:

  3. Network deployment:

      execfile("profile_root/config/bin_lc_admin/ wikisAdmin.py")
      

  4. Create a policy to specify the library size, using steps in the topic Working with policies.

  5. Run the following commands to set maximum sizes on libraries:


    Command Description

    WikisLibraryService.assignPolicy(String libraryId, String policyId)

    Assigns a policy to a library. A library is the pages, attachments, and other data that make up a wiki. A policy sets a maximum size for a wiki. Parameters:

      libraryId

      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.

    No message is printed if the task succeeds.

    WikisLibraryService.assignPolicyBatch(String filePath)

    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 local to the server where you are running the wsadmin processor.

    A library is the pages, attachments, and other data that make up a wiki. A policy sets a maximum size for a wiki. Parameters:

      filePath

      The full path to the text file, as a String.


Administer Wikis

 

Related tasks

Set maximum sizes on media, pages, and attachments

Start the wsadmin client

Working with policies


+

Search Tips   |   Advanced Search