Enforcer provides the following categories of Oasis attributes accessible from ALFA. These attributes can be used as part of an expression inside a policy.
To make use of these attributes from inside an ALFA file, use the appropriate import statement:
import Oasis.Attributes
import Enforcer.Attributes
These attributes and their properties are also available in .Net code under the Rsk.Enforcer
namespace.
using Rsk.Enforcer;
// Usage
Oasis.Attributes.Resource.Id; // "Resource"
Resource Attributes
Resource
Namespace : Oasis.Attributes
attribute Resource
{
id = "Resource"
category = resourceCat
type = string
}
Resource Type
Namespace : Oasis.Attributes
attribute ResourceType
{
id = "ResourceType"
category = resourceCat
type = string
}