Groovy Documentation

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

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

class Principal

A principal maps to a set of ldap users and/or ldap groups. MWS roles are attached to the principals to authorize the group to use the specific MWS roles.

Authors:
jpratt


Field Summary
private List attachedRoles

(Role collection)The MWS roles this principal is authorized to use.

private String description

The principal description.

private List groups

(Map collection) The groups associated with this principal.

private String id

The unique ID of this principal.

private String name

The unique human-readable name of this principal.

private List users

(Map collection) The users associated with this principal.

 
Constructor Summary
Principal()

 
Method Summary
List getAttachedRoles()

(Role collection)The MWS roles this principal is authorized to use.

String getDescription()

The principal description.

List getGroups()

(Map collection) The groups associated with this principal.

String getId()

The unique ID of this principal.

String getName()

The unique human-readable name of this principal.

List getUsers()

(Map collection) The users associated with this principal.

void setAttachedRoles(List attachedRoles)

(Role collection)The MWS roles this principal is authorized to use.

void setDescription(String description)

The principal description.

void setGroups(List groups)

(Map collection) The groups associated with this principal.

void setId(String id)

The unique ID of this principal.

void setName(String name)

The unique human-readable name of this principal.

void setUsers(List users)

(Map collection) The users associated with this principal.

String toString()

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

Field Detail

attachedRoles

private List attachedRoles
(Role collection)The MWS roles this principal is authorized to use.
See Also:
Role


description

private String description
The principal description.


groups

private List groups
(Map collection) The groups associated with this principal. Each group has a name and a type. The valid types of groups are LDAPOU, LDAPGROUP, and SSO. Example group: {"name": "CN=Engineering,CN=Users,DC=corp,DC=cloud,DC=dev", "type":"LDAPGROUP"}
See Also:
Map


id

private String id
The unique ID of this principal.


name

private String name
The unique human-readable name of this principal. Required during POST.


users

private List users
(Map collection) The users associated with this principal. Each user has a name and type. The only valid type of user is LDAP. Example user: {"name":"jhammon", "type":"LDAP"}
See Also:
Map


 
Constructor Detail

Principal

Principal()


 
Method Detail

getAttachedRoles

List getAttachedRoles()
(Role collection)The MWS roles this principal is authorized to use.
See Also:
Role


getDescription

String getDescription()
The principal description.


getGroups

List getGroups()
(Map collection) The groups associated with this principal. Each group has a name and a type. The valid types of groups are LDAPOU, LDAPGROUP, and SSO. Example group: {"name": "CN=Engineering,CN=Users,DC=corp,DC=cloud,DC=dev", "type":"LDAPGROUP"}
See Also:
Map


getId

String getId()
The unique ID of this principal.


getName

String getName()
The unique human-readable name of this principal. Required during POST.


getUsers

List getUsers()
(Map collection) The users associated with this principal. Each user has a name and type. The only valid type of user is LDAP. Example user: {"name":"jhammon", "type":"LDAP"}
See Also:
Map


setAttachedRoles

void setAttachedRoles(List attachedRoles)
(Role collection)The MWS roles this principal is authorized to use.
See Also:
Role


setDescription

void setDescription(String description)
The principal description.


setGroups

void setGroups(List groups)
(Map collection) The groups associated with this principal. Each group has a name and a type. The valid types of groups are LDAPOU, LDAPGROUP, and SSO. Example group: {"name": "CN=Engineering,CN=Users,DC=corp,DC=cloud,DC=dev", "type":"LDAPGROUP"}
See Also:
Map


setId

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


setName

void setName(String name)
The unique human-readable name of this principal. Required during POST.


setUsers

void setUsers(List users)
(Map collection) The users associated with this principal. Each user has a name and type. The only valid type of user is LDAP. Example user: {"name":"jhammon", "type":"LDAP"}
See Also:
Map


toString

String toString()


 

Groovy Documentation