com.liferay.portal.service.base
Class PrincipalBean

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean

public class PrincipalBean
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String[] ANONYMOUS_NAMES
           
static java.lang.String JRUN_ANONYMOUS
           
static java.lang.String ORACLE_ANONYMOUS
           
static java.lang.String SUN_ANONYMOUS
           
static java.lang.String WEBLOGIC_ANONYMOUS
           
 
Constructor Summary
PrincipalBean()
           
 
Method Summary
 long getGuestOrUserId()
           
 PermissionChecker getPermissionChecker()
           
 User getUser()
           
 long getUserId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JRUN_ANONYMOUS

public static final java.lang.String JRUN_ANONYMOUS
See Also:
Constant Field Values

ORACLE_ANONYMOUS

public static final java.lang.String ORACLE_ANONYMOUS
See Also:
Constant Field Values

SUN_ANONYMOUS

public static final java.lang.String SUN_ANONYMOUS
See Also:
Constant Field Values

WEBLOGIC_ANONYMOUS

public static final java.lang.String WEBLOGIC_ANONYMOUS
See Also:
Constant Field Values

ANONYMOUS_NAMES

public static final java.lang.String[] ANONYMOUS_NAMES
Constructor Detail

PrincipalBean

public PrincipalBean()
Method Detail

getGuestOrUserId

public long getGuestOrUserId()
                      throws PrincipalException
Throws:
PrincipalException

getPermissionChecker

public PermissionChecker getPermissionChecker()
                                       throws PrincipalException
Throws:
PrincipalException

getUser

public User getUser()
             throws com.liferay.portal.PortalException,
                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserId

public long getUserId()
               throws PrincipalException
Throws:
PrincipalException