org.drools.guvnor.server
Class ServiceSecurity
java.lang.Object
org.drools.guvnor.server.ServiceSecurity
public class ServiceSecurity
- extends Object
Handles security checks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceSecurity
public ServiceSecurity()
checkSecurityIsAdmin
protected void checkSecurityIsAdmin()
isSecurityIsAnalystReadWithTargetObject
protected boolean isSecurityIsAnalystReadWithTargetObject(Object target)
checkPermissionAnalystReadWithCategoryPathType
protected void checkPermissionAnalystReadWithCategoryPathType(String categoryPath)
hasPermissionAnalystReadWithCategoryPathType
protected boolean hasPermissionAnalystReadWithCategoryPathType(String categoryPath)
checkSecurityIsPackageAdminWithPackageName
protected void checkSecurityIsPackageAdminWithPackageName(String packageName)
checkSecurityIsPackageAdminWithAdminType
protected void checkSecurityIsPackageAdminWithAdminType()
checkSecurityIsPackageAdminWithPackageUuid
protected void checkSecurityIsPackageAdminWithPackageUuid(String uuid)
checkSecurityIsPackageDeveloperWithPackageUuid
protected void checkSecurityIsPackageDeveloperWithPackageUuid(String uuid)
checkSecurityIsPackageDeveloperWithPackageName
protected void checkSecurityIsPackageDeveloperWithPackageName(String packageName)
checkSecurityIsPackageReadOnlyWithPackageName
protected void checkSecurityIsPackageReadOnlyWithPackageName(String packageName)
checkSecurityPackageReadOnlyWithPackageUuid
protected void checkSecurityPackageReadOnlyWithPackageUuid(String uuid)
checkIsPackageDeveloperOrAnalyst
protected void checkIsPackageDeveloperOrAnalyst(RuleAsset asset)
- Role-based Authorization check: This method can be accessed if user has
following permissions:
1. The user has a Analyst role and this role has permission to access the category
which the asset belongs to.
Or.
2. The user has a package.developer role or higher (i.e., package.admin)
and this role has permission to access the package which the asset belongs to.
checkIsPackageDeveloperOrAnalyst
protected void checkIsPackageDeveloperOrAnalyst(AssetItem asset)
- Role-based Authorization check: This method can be accessed if user has
following permissions:
1. The user has a Analyst role and this role has permission to access the category
which the asset belongs to.
Or.
2. The user has a package.developer role or higher (i.e., package.admin)
and this role has permission to access the package which the asset belongs to.
checkIsPackageReadOnlyOrAnalystReadOnly
protected void checkIsPackageReadOnlyOrAnalystReadOnly(RuleAsset asset)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.