Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.security
Class SecurityDataConverter

java.lang.Object
  extended by org.nuxeo.ecm.webapp.security.SecurityDataConverter
All Implemented Interfaces:
java.io.Serializable

public class SecurityDataConverter
extends java.lang.Object
implements java.io.Serializable

Attempts to convert the security data received as a list of user entries into a data structure easily displayable.

Author:
Razvan Caraghin, Florent Guillaume
See Also:
Serialized Form

Constructor Summary
SecurityDataConverter()
           
 
Method Summary
static void convertToSecurityData(ACP acp, SecurityData securityData)
          Feeds security data object with user entries.
static java.util.List<UserEntry> convertToUserEntries(SecurityData securityData)
          Reverts back the data contained in SecurityData to a list of user entries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityDataConverter

public SecurityDataConverter()
Method Detail

convertToSecurityData

public static void convertToSecurityData(ACP acp,
                                         SecurityData securityData)
Feeds security data object with user entries.


convertToUserEntries

public static java.util.List<UserEntry> convertToUserEntries(SecurityData securityData)
Reverts back the data contained in SecurityData to a list of user entries.

This only converts the modifiable permissions to a list of user entries that is related only to the current document.

Does all grants before all denies.


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.