3 Replies Latest reply on Jun 29, 2010 10:01 PM by $Nith$

    How do you construct a ContentAccessPermission list?

    Mark Lindberg Level 2

      Greetings All:

      I an having trouble building a list to apply security to Spaces in Content Space.

      I can populate a single permission, and add that to a list of type ContentAccessPermissions:

       

      SINGLE: (singlePermission1)

      <com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>
        <authority>user1/DOM</authority>
        <authorityType>USER</authorityType>
        <permission>Contributor</permission>
        <isAllowed>true</isAllowed>
      </com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>

       

      SINGLE ADDED TO EMPTY LIST:

      <list>
        <com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>
          <authority>user1/DOM</authority>
          <authorityType>USER</authorityType>
          <permission>Contributor</permission>
          <isAllowed>true</isAllowed>
        </com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>
      </list>

       

      All looks well so far

       

      When I try to add additional entries to the list in set value with:

      Location: /process_data/newList[get-collection-size(/process_data/newList) + 1] 

      Expression: /process_data/singlePermission2

       

      SINGLE: (singlePermission2)
      <com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>
        <authority>user2/DOM</authority>
        <authorityType>USER</authorityType>
        <permission>Editor</permission>
        <isAllowed>true</isAllowed>
      </com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>

      THIS IS THE RESULT:

      <list>
        <com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>
          <authority>user2/DOM</authority>
          <authorityType>USER</authorityType>
          <permission>Editor</permission>
          <isAllowed>true</isAllowed>
        </com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission>
        <com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission reference="../com.adobe.livecycle.contentservices.client.impl.ContentAccessPermission"/>
      </list>

       

       

      I get the value of singlePermission2, and singlePermission1 has been lost.

       

      How can I create a list of all my permissions that I can use throughout my process so that I do not have to apply the security separately for each user to each space?

       

      Thanks for you assistance

      Mark