Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.search.api.backend.security
Class SecurityFiltering

java.lang.Object
  extended by org.nuxeo.ecm.core.search.api.backend.security.SecurityFiltering

public final class SecurityFiltering
extends java.lang.Object

Shared info about security filtering.

Author:
Georges Racinet

Field Summary
static java.lang.String[] BROWSE_PERMISSION_SEEDS
           
static java.lang.String ESCAPE
           
static java.util.List<java.lang.String> GRANT
          Deprecated. use getBrowsePermissionList() instead
static java.lang.String SEPARATOR
           
 
Method Summary
static java.util.List<java.lang.String> getBrowsePermissionList()
          This is the list of all permissions that grant access to some indexed document.
static java.util.List<java.lang.String> getPermissionList(java.lang.String[] seedPermissions)
          Return the recursive closure of all permissions that comprises the requested seed permissions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRANT

@Deprecated
public static final java.util.List<java.lang.String> GRANT
Deprecated. use getBrowsePermissionList() instead
This is the list of all permissions that grant access to some indexed document. This is used in place of groups of permissions resolution that aren't accessible in async mode for now.


BROWSE_PERMISSION_SEEDS

public static final java.lang.String[] BROWSE_PERMISSION_SEEDS

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values

ESCAPE

public static final java.lang.String ESCAPE
See Also:
Constant Field Values
Method Detail

getPermissionList

public static java.util.List<java.lang.String> getPermissionList(java.lang.String[] seedPermissions)
                                                          throws java.lang.Exception
Return the recursive closure of all permissions that comprises the requested seed permissions. TODO: this logics should be moved upward to the PermissionProvider interface.

Parameters:
seedPermissions -
Returns:
the list of permissions, seeds inclusive
Throws:
java.lang.Exception

getBrowsePermissionList

public static java.util.List<java.lang.String> getBrowsePermissionList()
                                                                throws java.lang.Exception
This is the list of all permissions that grant access to some indexed document.

Returns:
the list of all permissions that include Browse directly or un-directly
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.