SimpleRole

A simple representation of a security role that has a name and a collection of permissions. This object can be used internally by Realms to maintain authorization state.

Constructors

this
this()
Undocumented in source.
this
this(string name)
Undocumented in source.
this
this(string name, Set!(Permission) permissions)
Undocumented in source.

Members

Functions

add
void add(Permission permission)
Undocumented in source. Be warned that the author may not have intended to support it.
addAll
void addAll(Collection!(Permission) perms)
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
getPermissions
Set!(Permission) getPermissions()
Undocumented in source. Be warned that the author may not have intended to support it.
isPermitted
bool isPermitted(Permission p)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
setName
void setName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
setPermissions
void setPermissions(Set!(Permission) permissions)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

name
string name;
Undocumented in source.
permissions
Set!(Permission) permissions;
Undocumented in source.

Meta