com.liferay.portal.service.impl
Class PrincipalBean

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
Direct Known Subclasses:
AccountServiceImpl, AddressServiceImpl, BlogsCategoryServiceImpl, BlogsEntryServiceImpl, BookmarksEntryServiceImpl, BookmarksFolderServiceImpl, CalEventServiceImpl, ClassNameServiceImpl, CompanyServiceImpl, ContactServiceImpl, CountryServiceImpl, DLFileEntryServiceImpl, DLFileShortcutServiceImpl, DLFolderServiceImpl, EmailAddressServiceImpl, GroupServiceImpl, IGFolderServiceImpl, IGImageServiceImpl, JournalArticleServiceImpl, JournalStructureServiceImpl, JournalTemplateServiceImpl, LayoutServiceImpl, LayoutSetServiceImpl, ListTypeServiceImpl, MBBanServiceImpl, MBCategoryServiceImpl, MBMessageServiceImpl, OrganizationServiceImpl, OrgLaborServiceImpl, PasswordPolicyServiceImpl, PermissionServiceImpl, PhoneServiceImpl, PluginSettingServiceImpl, PollsQuestionServiceImpl, PollsVoteServiceImpl, PortalServiceImpl, PortletServiceImpl, RatingsEntryServiceImpl, RegionServiceImpl, ResourceServiceImpl, RoleServiceImpl, SCFrameworkVersionServiceImpl, SCLicenseServiceImpl, SCProductEntryServiceImpl, SCProductVersionServiceImpl, ShoppingCategoryServiceImpl, ShoppingCouponServiceImpl, ShoppingItemServiceImpl, ShoppingOrderServiceImpl, TagsAssetServiceImpl, TagsEntryServiceImpl, TagsPropertyServiceImpl, TagsSourceServiceImpl, UserGroupRoleServiceImpl, UserGroupServiceImpl, UserServiceImpl, WebsiteServiceImpl, WikiNodeServiceImpl, WikiPageServiceImpl, WorkflowComponentServiceImpl, WorkflowDefinitionServiceImpl, WorkflowInstanceServiceImpl, WorkflowTaskServiceImpl

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()
           
 com.liferay.portal.kernel.security.permission.PermissionChecker getPermissionChecker()
           
 com.liferay.portal.model.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 com.liferay.portal.security.auth.PrincipalException
Throws:
com.liferay.portal.security.auth.PrincipalException

getUser

public com.liferay.portal.model.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 com.liferay.portal.security.auth.PrincipalException
Throws:
com.liferay.portal.security.auth.PrincipalException

getPermissionChecker

public com.liferay.portal.kernel.security.permission.PermissionChecker getPermissionChecker()
                                                                                     throws com.liferay.portal.security.auth.PrincipalException
Throws:
com.liferay.portal.security.auth.PrincipalException