com.liferay.batch.engine.internal.security.permission.LiberalPermissionChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.batch.engine.service
Show all versions of com.liferay.batch.engine.service
Liferay Batch Engine Service
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.batch.engine.internal.security.permission;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.model.Group;
import com.liferay.portal.kernel.model.Role;
import com.liferay.portal.kernel.model.RoleConstants;
import com.liferay.portal.kernel.model.User;
import com.liferay.portal.kernel.security.permission.PermissionChecker;
import com.liferay.portal.kernel.security.permission.UserBag;
import com.liferay.portal.kernel.service.RoleLocalServiceUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.PropsKeys;
import com.liferay.portal.kernel.util.PropsUtil;
import java.util.HashMap;
import java.util.Map;
/**
* @author Carlos Correa
*/
public class LiberalPermissionChecker implements PermissionChecker {
public LiberalPermissionChecker(User user) {
init(user);
}
@Override
public PermissionChecker clone() {
return this;
}
@Override
public long getCompanyId() {
return _user.getCompanyId();
}
@Override
public long[] getGuestUserRoleIds() {
return PermissionChecker.DEFAULT_ROLE_IDS;
}
@Override
public long getOwnerRoleId() {
return _ownerRole.getRoleId();
}
@Override
public Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy