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 Object

Shared info about security filtering.

Author:
Georges Racinet

Field Summary
static String[] BROWSE_PERMISSION_SEEDS
           
static String ESCAPE
           
static List<String> GRANT
          Deprecated. use getBrowsePermissionList() instead
static String SEPARATOR
           
 
Method Summary
static List<String> getBrowsePermissionList()
          This is the list of all permissions that grant access to some indexed document.
static List<String> getPermissionList(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 List<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 String[] BROWSE_PERMISSION_SEEDS

SEPARATOR

public static final String SEPARATOR
See Also:
Constant Field Values

ESCAPE

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

getPermissionList

public static List<String> getPermissionList(String[] seedPermissions)
                                      throws 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:
Exception

getBrowsePermissionList

public static List<String> getBrowsePermissionList()
                                            throws 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:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.