Groovy Documentation

com.ace.mws.tenants
[Groovy] Class Permission

java.lang.Object
  com.ace.mws.tenants.Permission

class Permission

Represents a permission

Authors:
jpratt


Field Summary
private String action

The action that can be performed on the resource.

private String description

A description of this permission.

private String id

The unique ID of this role.

private String label

A human readable label for this permission.

private String resource

The resource the permission applies to.

private Map resourceFilter

(Map of String => String) A map used to limit which resource instances this permission applies to.

private String type

The type of the permission.

 
Constructor Summary
Permission()

 
Method Summary
String getAction()

The action that can be performed on the resource.

String getDescription()

A description of this permission.

String getId()

The unique ID of this role.

String getLabel()

A human readable label for this permission.

String getResource()

The resource the permission applies to.

Map getResourceFilter()

(Map of String => String) A map used to limit which resource instances this permission applies to.

String getType()

The type of the permission.

void setAction(String action)

The action that can be performed on the resource.

void setDescription(String description)

A description of this permission.

void setId(String id)

The unique ID of this role.

void setLabel(String label)

A human readable label for this permission.

void setResource(String resource)

The resource the permission applies to.

void setResourceFilter(Map resourceFilter)

(Map of String => String) A map used to limit which resource instances this permission applies to.

void setType(String type)

The type of the permission.

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

action

private String action
The action that can be performed on the resource.


description

private String description
A description of this permission.


id

private String id
The unique ID of this role.


label

private String label
A human readable label for this permission.


resource

private String resource
The resource the permission applies to.


resourceFilter

private Map resourceFilter
(Map of String => String) A map used to limit which resource instances this permission applies to. If this is null then the permission will apply to all instances of the resource. For api permissions the filter uses mongo query syntax.
See Also:
Map


type

private String type
The type of the permission. Only 'api' type permissions are enforced.


 
Constructor Detail

Permission

Permission()


 
Method Detail

getAction

String getAction()
The action that can be performed on the resource.


getDescription

String getDescription()
A description of this permission.


getId

String getId()
The unique ID of this role.


getLabel

String getLabel()
A human readable label for this permission.


getResource

String getResource()
The resource the permission applies to.


getResourceFilter

Map getResourceFilter()
(Map of String => String) A map used to limit which resource instances this permission applies to. If this is null then the permission will apply to all instances of the resource. For api permissions the filter uses mongo query syntax.
See Also:
Map


getType

String getType()
The type of the permission. Only 'api' type permissions are enforced.


setAction

void setAction(String action)
The action that can be performed on the resource.


setDescription

void setDescription(String description)
A description of this permission.


setId

void setId(String id)
The unique ID of this role.


setLabel

void setLabel(String label)
A human readable label for this permission.


setResource

void setResource(String resource)
The resource the permission applies to.


setResourceFilter

void setResourceFilter(Map resourceFilter)
(Map of String => String) A map used to limit which resource instances this permission applies to. If this is null then the permission will apply to all instances of the resource. For api permissions the filter uses mongo query syntax.
See Also:
Map


setType

void setType(String type)
The type of the permission. Only 'api' type permissions are enforced.


toString

String toString()


 

Groovy Documentation