Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


oracle.ultrasearch.crawler
Class AclHelper

java.lang.Object
  extended by oracle.ultrasearch.crawler.AclHelper


public class AclHelper
extends java.lang.Object

AclHelper is to be used by a crawler agent to generate Access Control List from a list of LDAP distinguished names


Field Summary
static int DN
           
static int GROUP
           
static int GUID
           
static int OWNER
           
static java.lang.String OWNER_PRINCIPAL
          Principal types
static int UNKNOWN
           
static int USER
           

 

Constructor Summary
AclHelper()
          AclHelper constructor
AclHelper(java.io.PrintWriter log)
           

 

Method Summary
 void addDenyPrincipal(java.lang.String name, int format, int principalType)
          Add a LDAP user/group as an ACL principal that have no read privilege
 void addPrincipal(java.lang.String name, int format, int principalType)
          Add a LDAP user/group as an ACL principal that have read privilege
 void clearPrincipalList()
          Clear all URL data
 java.lang.String getAclString()
          Return the ACL string consisting of the current added principals

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

OWNER_PRINCIPAL

public static final java.lang.String OWNER_PRINCIPAL
Principal types
See Also:
Constant Field Values

OWNER

public static final int OWNER
See Also:
Constant Field Values

USER

public static final int USER
See Also:
Constant Field Values

GROUP

public static final int GROUP
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

DN

public static final int DN
See Also:
Constant Field Values

GUID

public static final int GUID
See Also:
Constant Field Values

Constructor Detail

AclHelper

public AclHelper()
AclHelper constructor

AclHelper

public AclHelper(java.io.PrintWriter log)

Method Detail

addPrincipal

public void addPrincipal(java.lang.String name,
                         int format,
                         int principalType)
Add a LDAP user/group as an ACL principal that have read privilege
Parameters:
name - the name of the principal
format - the format of the principal entry; can be AclHelper.DN or AclHelper.GUID
principalType: - AclHelper.USER, AclHelper.GROUP, AclHelper.OWNER, or AclHelper.UNKNOWN

addDenyPrincipal

public void addDenyPrincipal(java.lang.String name,
                             int format,
                             int principalType)
Add a LDAP user/group as an ACL principal that have no read privilege
Parameters:
name - the name of the principal
format - the format of the principal entry; can be AclHelper.DN or AclHelper.GUID
principalType: - AclHelper.USER, AclHelper.GROUP, AclHelper.OWNER, or AclHelper.UNKNOWN

getAclString

public java.lang.String getAclString()
Return the ACL string consisting of the current added principals
Returns:
the ACL string

clearPrincipalList

public void clearPrincipalList()
Clear all URL data

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-01


Copyright © 2002,2007, Oracle. All Rights Reserved.