org.apache.jackrabbit.core.security.user
Class UserImporter.ImportBehavior

java.lang.Object
  extended by org.apache.jackrabbit.core.security.user.UserImporter.ImportBehavior
Enclosing class:
UserImporter

public static final class UserImporter.ImportBehavior
extends Object

Inner class defining the treatment of membership or impersonator values pointing to non-existing authorizables.


Field Summary
static int ABORT
          Aborts the import as soon as invalid values are detected throwing a ConstraintViolationException.
static int BESTEFFORT
          Same as IGNORE but in addition tries to circumvent the problem.
static int IGNORE
          If a member or impersonator value cannot be set due to constraints enforced by the API implementation, the failure is logged as warning but otherwise ignored.
static String NAME_ABORT
           
static String NAME_BESTEFFORT
           
static String NAME_IGNORE
           
 
Constructor Summary
UserImporter.ImportBehavior()
           
 
Method Summary
static String nameFromValue(int importBehavior)
           
static int valueFromName(String behaviorString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE

public static final int IGNORE
If a member or impersonator value cannot be set due to constraints enforced by the API implementation, the failure is logged as warning but otherwise ignored.

See Also:
Constant Field Values

BESTEFFORT

public static final int BESTEFFORT
Same as IGNORE but in addition tries to circumvent the problem. This option should only be used with validated and trusted XML passed to the SessionImporter.

See Also:
Constant Field Values

ABORT

public static final int ABORT
Aborts the import as soon as invalid values are detected throwing a ConstraintViolationException.

See Also:
Constant Field Values

NAME_IGNORE

public static final String NAME_IGNORE
See Also:
Constant Field Values

NAME_BESTEFFORT

public static final String NAME_BESTEFFORT
See Also:
Constant Field Values

NAME_ABORT

public static final String NAME_ABORT
See Also:
Constant Field Values
Constructor Detail

UserImporter.ImportBehavior

public UserImporter.ImportBehavior()
Method Detail

valueFromName

public static int valueFromName(String behaviorString)

nameFromValue

public static String nameFromValue(int importBehavior)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.