Skip to main content link. Accesskey S
  • HCL Logo
  • HCL Connections On-Premise Wiki
  • THIS WIKI IS READ-ONLY.
  • HCL Forums and Blogs
  • Home
  • API Documentation
Search
Community Articles > Customization > Setting size limits on Files libraries
  • Share Show Menu▼

Recent articles by this author

Setting size limits on Files libraries

You can set a size limit on a Files library by creating a policy that defines the size limit, and then assigning that policy to the library. See the Lotus Connections 2.5 information center topic ...
Community articleSetting size limits on Files libraries
Added by ~Mark Elboosisterettu | Edited by IBM contributor~John Dwotooplopli on April 12, 2010 | Version 15
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: quota, size, limits, libraries, files, 2.5
You can set a size limit on a Files library by creating a policy that defines the size limit, and then assigning that policy to the library.

See the IBM Lotus Connections 2.5 information center topic Files administrative commandsexternal link for more information on any of the commands in this article:

1. Create a new policy
 
a. Open a command window and start the wsadmin command line tool.
 
b. Start the Files script with one of the following commands:
 
  • Stand alone deployment:
execfile("filesAdmin.py")
  • Network deployment:
  • execfile("profile_root/config/bin_lc_admin/filesAdmin.py")
     
    c. Enter the following command: FilesPolicyService.add (title=[policy title] maximumSize=[number of bytes]. For example:
     
    FilesPolicyService.add(title="Special Users Policy" maximumSize=500000000)
     
    This creates a new policy titled "Special Users Policy" with a maximum size of 500 million bytes. The value of the maximumSize attribute must be zero or greater. A value of zero means the size is unlimited.
     
    d. Note the new policy ID when it is returned in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.


    2. Find the user library ID
     
    a. Enter the following command: FilesLibraryService.getPersonalByOwnerId(ownerId="[owner ID]"). For example:
     
    FilesLibraryService.getPersonalByOwnerId(ownerId="069ef3fd-9754-4bbe-a1e8-ffc7e4a985f4")

     
    This returns information on the personal library of the owner provided. You can find a person's owner ID in their Files URL address, for example:
     
    http://w3.ibm.com/connections/files/app?lang=en#/person/9ffc8e40-8f0a-1028-8b69-db07163b51b2
     
    A person's owner ID can also be retrieved by using FilesMemberService.getByEmail(string email).
    Note: You can also use the FilesLibraryService.browsePersonal command to return a list of personal libraries, or use the FilesLibraryService.browseCommunity command to return a list of community libraries.


    3. Assign the policy to the user library
     
    a. Enter the following command: FilesLibraryService.assignPolicy(libraryId=[user library id], policyId=[id of policy created in Step 1]). For example:
     
    FilesLibraryService.assignPolicy(libraryId="ef8ed3e2-22c0-4f20-aa53-bdc6b262abbd", policyId="9ddb97f0-cea5-49fd-9158-06e45b01cd46")

     


     
    USING EXISTING POLICIES
    Instead of creating a new policy, you can assign an existing policy to libraries. Use the FilesPolicyService.browse command to return a list of all policies, specifying the sortOption attribute to maximumSize to sort the list according to maximum size. For example:

    FilesPolicyService.browse(sortOption="maximumSize", sortAscending="false", pageNumber=1, itemsPerPage=50)

     
    This returns a list of policies sorted by maximumSize value. It shows the first page containing 50 items. You can easily find a policy in the returned list with the quota you want. Then follow Step 3 above to assign the policy to the group's library.

    If no existing policy has the size limit you want, you can use the FilesPolicyService.edit command to edit an existing policy. For example:

    FilesPolicyService.edit(policyId="9ddb97f0-cea5-49fd-9158-06e45b01cd46", title="Existing Policy", maximumSize=500000000)

     
    This changes the "Existing Policy" policy to 500 million bytes.

    • Actions Show Menu▼


    expanded Attachments (0)
    collapsed Attachments (0)
    Edit the article to add or modify attachments.
    expanded Versions (1)
    collapsed Versions (1)
    Version Comparison     
    VersionDateChanged by              Summary of changes
    This version (15)Apr 12, 2010, 7:55:19 PM~John Dwotooplopli  IBM contributor
    expanded Comments (0)
    collapsed Comments (0)
    Copy and paste this wiki markup to link to this article from another article in this wiki.
    Go ElsewhereStay ConnectedAbout
    • HCL Software
    • HCL Digital Solutions community
    • HCL Software support
    • BlogsDigital Solutions blog
    • Community LinkHCL Software forums and blogs
    • About HCL Software
    • Privacy
    • Accessibility