org.drools.guvnor.server
Class ServiceSecurity

java.lang.Object
  extended by org.drools.guvnor.server.ServiceSecurity

public class ServiceSecurity
extends Object

Handles security checks.


Constructor Summary
ServiceSecurity()
           
 
Method Summary
protected  void checkIsPackageDeveloperOrAnalyst(AssetItem asset)
          Role-based Authorization check: This method can be accessed if user has following permissions: 1.
protected  void checkIsPackageDeveloperOrAnalyst(RuleAsset asset)
          Role-based Authorization check: This method can be accessed if user has following permissions: 1.
protected  void checkIsPackageReadOnlyOrAnalystReadOnly(RuleAsset asset)
           
protected  void checkPermissionAnalystReadWithCategoryPathType(String categoryPath)
           
protected  void checkSecurityIsAdmin()
           
protected  void checkSecurityIsPackageAdminWithAdminType()
           
protected  void checkSecurityIsPackageAdminWithPackageName(String packageName)
           
protected  void checkSecurityIsPackageAdminWithPackageUuid(String uuid)
           
protected  void checkSecurityIsPackageDeveloperWithPackageName(String packageName)
           
protected  void checkSecurityIsPackageDeveloperWithPackageUuid(String uuid)
           
protected  void checkSecurityIsPackageReadOnlyWithPackageName(String packageName)
           
protected  void checkSecurityPackageReadOnlyWithPackageUuid(String uuid)
           
protected  boolean hasPermissionAnalystReadWithCategoryPathType(String categoryPath)
           
protected  boolean isSecurityIsAnalystReadWithTargetObject(Object target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceSecurity

public ServiceSecurity()
Method Detail

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.