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>