Adding SecurityChecker list for the ParamProcessWorker

This commit is contained in:
Prachi Damle 2014-04-01 12:05:41 -07:00 committed by Min Chen
parent 897e0d3abe
commit a509f94544
3 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ public interface SecurityChecker extends Adapter {
/**
* Checks if the account can access multiple objects.
*
*
* @param caller
* account to check against.
* @param entities

View File

@ -52,7 +52,9 @@
<bean id="dispatchChainFactory" class="com.cloud.api.dispatch.DispatchChainFactory" />
<bean id="paramProcessWorker" class="com.cloud.api.dispatch.ParamProcessWorker" />
<bean id="paramProcessWorker" class="com.cloud.api.dispatch.ParamProcessWorker">
<property name="secChecker" value="#{securityCheckersRegistry.registered}" />
</bean>
<bean id="paramUnpackWorker" class="com.cloud.api.dispatch.ParamUnpackWorker" />

View File

@ -42,7 +42,6 @@ import org.apache.cloudstack.acl.SecurityChecker.AccessType;
import org.apache.cloudstack.api.ACL;
import org.apache.cloudstack.api.APICommand;
import org.apache.cloudstack.api.ApiErrorCode;
import org.apache.cloudstack.api.BaseAsyncCreateCmd;
import org.apache.cloudstack.api.BaseCmd;
import org.apache.cloudstack.api.EntityReference;
import org.apache.cloudstack.api.InternalIdentity;
@ -56,7 +55,6 @@ import org.apache.cloudstack.api.command.user.event.DeleteEventsCmd;
import org.apache.cloudstack.api.command.user.event.ListEventsCmd;
import org.apache.cloudstack.context.CallContext;
import com.cloud.configuration.ConfigurationManager;
import com.cloud.dc.DataCenter;
import com.cloud.exception.InvalidParameterValueException;
import com.cloud.exception.PermissionDeniedException;