to.etc.domui.login
Interface IUser


public interface IUser

Represents a logged-in user. This base interface only knows data that must be known about any logged-in user. Extras can be obtained if you know the implementation.

Author:
Frits Jalvingh Created on Apr 14, 2009

Method Summary
 java.lang.String getDisplayName()
          Return a display name for the user; this usually is the full formal name.
 java.lang.String getLoginID()
          The user's login ID.
 boolean hasRight(java.lang.String r)
           
 boolean hasRight(java.lang.String r, java.lang.Object dataElement)
          EXPERIMENTAL INTERFACE, DO NOT USE Determines if right r is enabled for the specified data element.
 

Method Detail

getLoginID

java.lang.String getLoginID()
The user's login ID.

Returns:

getDisplayName

java.lang.String getDisplayName()
Return a display name for the user; this usually is the full formal name.

Returns:

hasRight

boolean hasRight(java.lang.String r)

hasRight

boolean hasRight(java.lang.String r,
                 java.lang.Object dataElement)
EXPERIMENTAL INTERFACE, DO NOT USE Determines if right r is enabled for the specified data element. The implementation will decide how to map this. The dataElement can be a "primary element" meaning something that rights are explicitly assigned on, or it can be something that can be linked to such a "priomary element". In the latter case it is the implementation's responsibility to obtain the primary element from the data passed and apply the rights check there. If data-bound permissions are not implemented this MUST return getRight(r).

Parameters:
r -
dataElement -
Returns: