Liferay 7.0-ce-m6

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, Set<Group> userGroups, List<Organization> userOrgs, Set<Group> userOrgGroups, List<Group> userUserGroupGroups, Set<Role> roles)
           
PermissionCheckerBagImpl(long userId, Set<Role> roles)
           
PermissionCheckerBagImpl(UserPermissionCheckerBag userPermissionCheckerBag, Set<Role> roles)
           
 
Method Summary
 long[] getRoleIds()
           
 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
getGroups, getRoles, getUserGroups, getUserId, getUserOrgGroups, getUserOrgs, getUserUserGroupGroups, hasRole
 
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
getGroups, getRoles, getUserGroups, getUserId, getUserOrgGroups, getUserOrgs, getUserUserGroupGroups, hasRole
 

Constructor Detail

PermissionCheckerBagImpl

public PermissionCheckerBagImpl()

PermissionCheckerBagImpl

public PermissionCheckerBagImpl(long userId)

PermissionCheckerBagImpl

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

PermissionCheckerBagImpl

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

PermissionCheckerBagImpl

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

getRoleIds

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

isCommunityAdmin

@Deprecated
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

@Deprecated
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
Throws:
PortalException

isGroupAdminImpl

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

isGroupOwnerImpl

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

isOrganizationAdminImpl

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

isOrganizationOwnerImpl

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

Liferay 7.0-ce-m6