Liferay 6.2-ce-ga5

com.liferay.portal.security.permission
Class PermissionCheckerBagImpl

java.lang.Object
  extended by com.liferay.portal.security.permission.UserPermissionCheckerBagImpl
      extended by com.liferay.portal.security.permission.PermissionCheckerBagImpl
All Implemented Interfaces:
PermissionCheckerBag, UserPermissionCheckerBag, Serializable

public class PermissionCheckerBagImpl
extends UserPermissionCheckerBagImpl
implements PermissionCheckerBag

See Also:
Serialized Form

Constructor Summary
PermissionCheckerBagImpl()
           
PermissionCheckerBagImpl(long userId)
           
PermissionCheckerBagImpl(long userId, List<Group> userGroups, List<Organization> userOrgs, List<Group> userOrgGroups, List<Group> userUserGroupGroups, List<Role> roles)
           
PermissionCheckerBagImpl(long userId, List<Role> roles)
           
PermissionCheckerBagImpl(UserPermissionCheckerBag userPermissionCheckerBag, List<Role> roles)
           
 
Method Summary
 List<Group> getGroups()
          Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getGroups()
 long[] getRoleIds()
           
 List<Role> getRoles()
           
 List<Group> getUserGroups()
          Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserGroups()
 List<Group> getUserOrgGroups()
          Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserOrgGroups()
 List<Organization> getUserOrgs()
          Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserOrgs()
 List<Group> getUserUserGroupGroups()
          Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserUserGroupGroups()
 boolean isCommunityAdmin(PermissionChecker permissionChecker, Group group)
          Deprecated. As of 6.1.0, renamed to isGroupAdmin(PermissionChecker, Group)
 boolean isCommunityOwner(PermissionChecker permissionChecker, Group group)
          Deprecated. As of 6.1.0, renamed to isGroupOwner(PermissionChecker, Group)
 boolean isContentReviewer(PermissionChecker permissionChecker, Group group)
           
protected  boolean isContentReviewerImpl(PermissionChecker permissionChecker, Group group)
           
 boolean isGroupAdmin(PermissionChecker permissionChecker, Group group)
           
protected  boolean isGroupAdminImpl(PermissionChecker permissionChecker, Group group)
           
 boolean isGroupMember(PermissionChecker permissionChecker, Group group)
           
 boolean isGroupOwner(PermissionChecker permissionChecker, Group group)
           
protected  boolean isGroupOwnerImpl(PermissionChecker permissionChecker, Group group)
           
 boolean isOrganizationAdmin(PermissionChecker permissionChecker, Organization organization)
           
protected  boolean isOrganizationAdminImpl(PermissionChecker permissionChecker, Organization organization)
           
 boolean isOrganizationOwner(PermissionChecker permissionChecker, Organization organization)
           
protected  boolean isOrganizationOwnerImpl(PermissionChecker permissionChecker, Organization organization)
           
 
Methods inherited from class com.liferay.portal.security.permission.UserPermissionCheckerBagImpl
getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.security.permission.UserPermissionCheckerBag
getUserId
 

Constructor Detail

PermissionCheckerBagImpl

public PermissionCheckerBagImpl()

PermissionCheckerBagImpl

public PermissionCheckerBagImpl(long userId)

PermissionCheckerBagImpl

public PermissionCheckerBagImpl(long userId,
                                List<Group> userGroups,
                                List<Organization> userOrgs,
                                List<Group> userOrgGroups,
                                List<Group> userUserGroupGroups,
                                List<Role> roles)

PermissionCheckerBagImpl

public PermissionCheckerBagImpl(long userId,
                                List<Role> roles)

PermissionCheckerBagImpl

public PermissionCheckerBagImpl(UserPermissionCheckerBag userPermissionCheckerBag,
                                List<Role> roles)
Method Detail

getGroups

public List<Group> getGroups()
Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getGroups()

Specified by:
getGroups in interface PermissionCheckerBag
Specified by:
getGroups in interface UserPermissionCheckerBag
Overrides:
getGroups in class UserPermissionCheckerBagImpl

getRoleIds

public long[] getRoleIds()
Specified by:
getRoleIds in interface PermissionCheckerBag

getRoles

public List<Role> getRoles()
Specified by:
getRoles in interface PermissionCheckerBag

getUserGroups

public List<Group> getUserGroups()
Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserGroups()

Specified by:
getUserGroups in interface PermissionCheckerBag
Specified by:
getUserGroups in interface UserPermissionCheckerBag
Overrides:
getUserGroups in class UserPermissionCheckerBagImpl

getUserOrgGroups

public List<Group> getUserOrgGroups()
Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserOrgGroups()

Specified by:
getUserOrgGroups in interface PermissionCheckerBag
Specified by:
getUserOrgGroups in interface UserPermissionCheckerBag
Overrides:
getUserOrgGroups in class UserPermissionCheckerBagImpl

getUserOrgs

public List<Organization> getUserOrgs()
Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserOrgs()

Specified by:
getUserOrgs in interface PermissionCheckerBag
Specified by:
getUserOrgs in interface UserPermissionCheckerBag
Overrides:
getUserOrgs in class UserPermissionCheckerBagImpl

getUserUserGroupGroups

public List<Group> getUserUserGroupGroups()
Deprecated. As of 7.0.0, replaced by UserPermissionCheckerBagImpl.getUserUserGroupGroups()

Specified by:
getUserUserGroupGroups in interface PermissionCheckerBag
Specified by:
getUserUserGroupGroups in interface UserPermissionCheckerBag
Overrides:
getUserUserGroupGroups in class UserPermissionCheckerBagImpl

isCommunityAdmin

public boolean isCommunityAdmin(PermissionChecker permissionChecker,
                                Group group)
                         throws Exception
Deprecated. As of 6.1.0, renamed to isGroupAdmin(PermissionChecker, Group)

Specified by:
isCommunityAdmin in interface PermissionCheckerBag
Throws:
Exception

isCommunityOwner

public boolean isCommunityOwner(PermissionChecker permissionChecker,
                                Group group)
                         throws Exception
Deprecated. As of 6.1.0, renamed to isGroupOwner(PermissionChecker, Group)

Specified by:
isCommunityOwner in interface PermissionCheckerBag
Throws:
Exception

isContentReviewer

public boolean isContentReviewer(PermissionChecker permissionChecker,
                                 Group group)
                          throws Exception
Specified by:
isContentReviewer in interface PermissionCheckerBag
Throws:
Exception

isGroupAdmin

public boolean isGroupAdmin(PermissionChecker permissionChecker,
                            Group group)
                     throws Exception
Specified by:
isGroupAdmin in interface PermissionCheckerBag
Throws:
Exception

isGroupMember

public boolean isGroupMember(PermissionChecker permissionChecker,
                             Group group)
                      throws Exception
Specified by:
isGroupMember in interface PermissionCheckerBag
Throws:
Exception

isGroupOwner

public boolean isGroupOwner(PermissionChecker permissionChecker,
                            Group group)
                     throws Exception
Specified by:
isGroupOwner in interface PermissionCheckerBag
Throws:
Exception

isOrganizationAdmin

public boolean isOrganizationAdmin(PermissionChecker permissionChecker,
                                   Organization organization)
                            throws Exception
Specified by:
isOrganizationAdmin in interface PermissionCheckerBag
Throws:
Exception

isOrganizationOwner

public boolean isOrganizationOwner(PermissionChecker permissionChecker,
                                   Organization organization)
                            throws Exception
Specified by:
isOrganizationOwner in interface PermissionCheckerBag
Throws:
Exception

isContentReviewerImpl

protected boolean isContentReviewerImpl(PermissionChecker permissionChecker,
                                        Group group)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

isGroupAdminImpl

protected boolean isGroupAdminImpl(PermissionChecker permissionChecker,
                                   Group group)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

isGroupOwnerImpl

protected boolean isGroupOwnerImpl(PermissionChecker permissionChecker,
                                   Group group)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

isOrganizationAdminImpl

protected boolean isOrganizationAdminImpl(PermissionChecker permissionChecker,
                                          Organization organization)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

isOrganizationOwnerImpl

protected boolean isOrganizationOwnerImpl(PermissionChecker permissionChecker,
                                          Organization organization)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5