server: Fix ApiServer init method, we won't use cfg files and it's not used there

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
api: Comment out @APICommand annotation for api cmd classes that are unknown

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiServer: Don't depend on plugin for apiname:cmd class mapping

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDiscoveryService: Use only as pluggable service

Remove usage and impl as adapter.
We have duplicate code that generates apiname:cmd class maps which is
unavoidable right now as:

- Plugin should not depend on ApiServer or any other component
- cloud-utils cannot depend on cloud-api for the APICommand annotation
- Use java reflect to create a static method in cloud-utils that does the job
  would be unsafe.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Remove IdentityProxy and IdentityTypeAdapter class.

Signed-off-by: Min Chen <min.chen@citrix.com>
CLOUDSTACK-721: Fixed network usage. Send network usage command for isolated guest nic of non VPC VR. Send network usage command for public nic in VPC VR.
integration test fix: test iso - obj reference within classmethod
ApiDiscoveryService: Move refactor, interface should be in plugins and not in cloud-api

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
APIAccessChecker: Make it check based on role type and not user

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Summary: Add devcloud-kvm files

Detail: Working on getting a KVM-based devcloud so that development that
requires the KVM hypervisor can be simpler. This adds some setup devcloud files.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1357852438 -0700
CLOUDSTACK-683: Fixed missing image in Accessing VM Section
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack
RoleType: public enum to get presently defined static role in CloudStack

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
PropertiesUtil: Refactor process config file method in utils, return map of key=value

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
AccountManager: Add method to translate account type to role type

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiServer: get role type from account manager using account

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
PluggableService: Refactor method to return map of key value pairs

- Makes plugins self contained so they decide their properties file format
- PluggableService creates the contract that implementing entity will return a
  properties map which is apiname:rolemask (both are strings)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDiscovery: Fix listApis interface, fix getProperties

In case of api discovery, it does not make sense to create a separate properties file
If this plugin is enabled in components.xml, a user should be able to discover
all the apis accessible to their role.

listApis based on role type of caller user

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ManagementServerImpl: Fix missing import of PropertiesUtil

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
plugins: Check access based on roleType, remove unnecessary properties.in file

- Fix StaticRoleBasedAPIAccessChecker to check api access based on roletype
- Remove properties file which is not needed now for api discovery plugin

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>