public abstract class BasePermissionChecker
extends java.lang.Object
implements com.liferay.portal.security.permission.PermissionChecker
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkGuest |
protected long |
defaultUserId |
protected java.lang.Boolean |
omniadmin |
protected com.liferay.portal.model.Role |
ownerRole |
protected boolean |
signedIn |
protected com.liferay.portal.model.User |
user |
| Constructor and Description |
|---|
BasePermissionChecker() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.liferay.portal.security.permission.PermissionChecker |
clone() |
long |
getCompanyId() |
java.util.List<java.lang.Long> |
getOwnerResourceBlockIds(long companyId,
long groupId,
java.lang.String name,
java.lang.String actionId) |
long |
getOwnerRoleId() |
java.util.List<java.lang.Long> |
getResourceBlockIds(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String actionId) |
long[] |
getRoleIds(long userId,
long groupId) |
com.liferay.portal.model.User |
getUser() |
long |
getUserId() |
boolean |
hasOwnerPermission(long companyId,
java.lang.String name,
long primKey,
long ownerId,
java.lang.String actionId) |
boolean |
hasPermission(long groupId,
java.lang.String name,
long primKey,
java.lang.String actionId) |
void |
init(com.liferay.portal.model.User user) |
boolean |
isCheckGuest() |
boolean |
isCommunityAdmin(long groupId)
Deprecated.
As of 6.1.0, renamed to
PermissionChecker.isGroupAdmin(long) |
boolean |
isCommunityOwner(long groupId)
Deprecated.
As of 6.1.0, renamed to
PermissionChecker.isGroupOwner(long) |
boolean |
isOmniadmin() |
boolean |
isSignedIn() |
void |
resetValues()
Deprecated.
As of 7.0.0
|
void |
setValues(javax.portlet.PortletRequest portletRequest)
Deprecated.
As of 7.0.0
|
protected boolean checkGuest
protected long defaultUserId
protected java.lang.Boolean omniadmin
protected com.liferay.portal.model.Role ownerRole
protected boolean signedIn
protected com.liferay.portal.model.User user
public abstract com.liferay.portal.security.permission.PermissionChecker clone()
clone in interface com.liferay.portal.security.permission.PermissionCheckerclone in class java.lang.Objectpublic long getCompanyId()
getCompanyId in interface com.liferay.portal.security.permission.PermissionCheckerpublic java.util.List<java.lang.Long> getOwnerResourceBlockIds(long companyId,
long groupId,
java.lang.String name,
java.lang.String actionId)
getOwnerResourceBlockIds in interface com.liferay.portal.security.permission.PermissionCheckerpublic long getOwnerRoleId()
getOwnerRoleId in interface com.liferay.portal.security.permission.PermissionCheckerpublic java.util.List<java.lang.Long> getResourceBlockIds(long companyId,
long groupId,
long userId,
java.lang.String name,
java.lang.String actionId)
getResourceBlockIds in interface com.liferay.portal.security.permission.PermissionCheckerpublic long[] getRoleIds(long userId,
long groupId)
getRoleIds in interface com.liferay.portal.security.permission.PermissionCheckerpublic com.liferay.portal.model.User getUser()
getUser in interface com.liferay.portal.security.permission.PermissionCheckerpublic long getUserId()
getUserId in interface com.liferay.portal.security.permission.PermissionCheckerpublic boolean hasOwnerPermission(long companyId,
java.lang.String name,
long primKey,
long ownerId,
java.lang.String actionId)
hasOwnerPermission in interface com.liferay.portal.security.permission.PermissionCheckerpublic boolean hasPermission(long groupId,
java.lang.String name,
long primKey,
java.lang.String actionId)
hasPermission in interface com.liferay.portal.security.permission.PermissionCheckerpublic void init(com.liferay.portal.model.User user)
init in interface com.liferay.portal.security.permission.PermissionCheckerpublic boolean isCheckGuest()
isCheckGuest in interface com.liferay.portal.security.permission.PermissionChecker@Deprecated public boolean isCommunityAdmin(long groupId)
PermissionChecker.isGroupAdmin(long)isCommunityAdmin in interface com.liferay.portal.security.permission.PermissionChecker@Deprecated public boolean isCommunityOwner(long groupId)
PermissionChecker.isGroupOwner(long)isCommunityOwner in interface com.liferay.portal.security.permission.PermissionCheckerpublic boolean isOmniadmin()
isOmniadmin in interface com.liferay.portal.security.permission.PermissionCheckerpublic boolean isSignedIn()
isSignedIn in interface com.liferay.portal.security.permission.PermissionChecker@Deprecated public void resetValues()
resetValues in interface com.liferay.portal.security.permission.PermissionChecker@Deprecated public void setValues(javax.portlet.PortletRequest portletRequest)
setValues in interface com.liferay.portal.security.permission.PermissionChecker