org.eclipse.stardust.engine.api.dto
Class UserDetailsLevel

java.lang.Object
  extended by org.eclipse.stardust.common.IntKey
      extended by org.eclipse.stardust.engine.api.dto.UserDetailsLevel
All Implemented Interfaces:
Serializable, Comparable

public class UserDetailsLevel
extends org.eclipse.stardust.common.IntKey

See Also:
Serialized Form

Field Summary
static UserDetailsLevel Core
           
static int CORE
          The user details contain same attributes as MINIMAL plus isAdmistrator and last-login evaluation.
static UserDetailsLevel Full
           
static int FULL
          The user details contain same attributes as with WITH_PROPERTIES plus all grants.
static UserDetailsLevel Minimal
           
static int MINIMAL
          The user details only contain first level attributes of UserBean.
static String PRP_USER_DETAILS_LEVEL
           
static String PRP_USER_DETAILS_PREFERENCES
           
static int WITH_PROPERTIES
          The user details contain same attributes as with CORE plus properties.
static UserDetailsLevel WithProperties
           
 
Method Summary
static UserDetailsLevel getlevel(int value)
          Factory method to get the ProcessInstanceState corresponding to the given code.
 
Methods inherited from class org.eclipse.stardust.common.IntKey
compareTo, equals, getKey, getKeys, getName, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMAL

public static final int MINIMAL
The user details only contain first level attributes of UserBean.

This details level provides the best performance by skipping any lookup besides retrieving the first level attributes of the UserBean.

Note that User#isAdministrator() is not resolved at this level and will throw an IllegalStateException.

See Also:
User.isAdministrator(), Constant Field Values

CORE

public static final int CORE
The user details contain same attributes as MINIMAL plus isAdmistrator and last-login evaluation.

This means in addition to the first level attributes the last-login of the user is evaluated via an additional lookup to the user sessions and the isAdministrator flag is determined by resolving the users assigned roles.

See Also:
Constant Field Values

WITH_PROPERTIES

public static final int WITH_PROPERTIES
The user details contain same attributes as with CORE plus properties.

At this details level the user properties are retrieved as well.

See Also:
Constant Field Values

FULL

public static final int FULL
The user details contain same attributes as with WITH_PROPERTIES plus all grants.

The FULL details level represents a fully resolved User.

See Also:
Constant Field Values

Minimal

public static final UserDetailsLevel Minimal

Core

public static final UserDetailsLevel Core

WithProperties

public static final UserDetailsLevel WithProperties

Full

public static final UserDetailsLevel Full

PRP_USER_DETAILS_LEVEL

public static final String PRP_USER_DETAILS_LEVEL
See Also:
Constant Field Values

PRP_USER_DETAILS_PREFERENCES

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

getlevel

public static UserDetailsLevel getlevel(int value)
Factory method to get the ProcessInstanceState corresponding to the given code.

Parameters:
value - one of the ProcessInstanceState codes.
Returns:
one of the predefined ProcessInstanceStates or null if it's an invalid code.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.