Module: RsUserPolicy::Policy::Policy

Included in:
JsonPolicy
Defined in:
lib/rs_user_policy/policy/policy.rb

Instance Method Summary collapse

Instance Method Details

#get_permissions(roles, account_href) ⇒ Array<String>

Returns an array of permissions for a particular role in a particular RightScale account

Parameters:

  • roles (Array<String>)

    An array of role names for which permissions should be fetched

  • account_href (String)

    A RightScale API 1.5 href for the RightScale account

Returns:

  • (Array<String>)

    A list of permissions for the role and account pair requested. An empty array is returned if no policy exists for the requested pair

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/rs_user_policy/policy/policy.rb', line 31

def get_permissions(roles, )
  raise NotImplementedError, "Please implement this in your concrete class"
end