at.spardat.xma.security
Interface XMAContext

All Superinterfaces:
java.security.Principal, java.io.Serializable

public interface XMAContext
extends java.security.Principal, java.io.Serializable

This interface defines which information of the user context is available in every XMA-application. The interface must be implemented by the login plugins.


Field Summary
static java.lang.String devel
          Environment name defining the development server: "E"
static java.lang.String local
          Envrionment name defining the developers local PC: "L"
static java.lang.String prod
          Environment name defining the production server "P"
static java.lang.String qsys
          Environment name defining the spardat QSYS: "Q"
static java.lang.String qual
          Environment name defining the quality assurance server: "A"
 
Method Summary
 java.lang.String getEnvironment()
          Returns the environment the user used to log in.
 java.util.Locale getLocale()
          Returns the java.util.Locale to use for the logged in user.
 java.lang.String getMandant()
          Returns the mandant the logged in user belongs to.
 java.lang.String getName()
          Returns the name of the user logged in.
 boolean isLocal()
          Determines if the environment is developers pc.
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

local

public static final java.lang.String local
Envrionment name defining the developers local PC: "L"

See Also:
Constant Field Values

devel

public static final java.lang.String devel
Environment name defining the development server: "E"

See Also:
Constant Field Values

qual

public static final java.lang.String qual
Environment name defining the quality assurance server: "A"

See Also:
Constant Field Values

qsys

public static final java.lang.String qsys
Environment name defining the spardat QSYS: "Q"

See Also:
Constant Field Values

prod

public static final java.lang.String prod
Environment name defining the production server "P"

See Also:
Constant Field Values
Method Detail

getLocale

public java.util.Locale getLocale()
Returns the java.util.Locale to use for the logged in user.

Returns:
the Locale to use.

getMandant

public java.lang.String getMandant()
Returns the mandant the logged in user belongs to.

Returns:
the mandant to use.

getEnvironment

public java.lang.String getEnvironment()
Returns the environment the user used to log in.

Returns:
the environment to use.

isLocal

public boolean isLocal()
Determines if the environment is developers pc.

Returns:
true if the environment is developers pc.

getName

public java.lang.String getName()
Returns the name of the user logged in.

Specified by:
getName in interface java.security.Principal
Returns:
the username to use.