A Role instance represents a group of Subjects (users). The group
probably has some contextual meaning, such as "Users found in the
Venue" or "Users who can modify my data".
For example, if a Role is called "AllowedEntry", it is most
likely a list of users users are allowed to enter something.
Method Summary |
|
__init__ (self,
role_name,
subjects)
|
|
__str__ (self)
This method provides a string reprsentation of the Role. |
|
_repr_ (self)
This method creates a DOM document that represents the role. |
|
AddSubject (self,
subject)
This new AddSubject is more strict than the old one. |
|
FindSubject (self,
subjectName)
This method retrieves the subject for the specified name. |
|
GetName (self)
An accessor for the Role name attribute. |
|
GetRequireDefault (self)
An accessor to set if we are allowed to remove default subject from
this role. |
|
GetSubjectListAsStrings (self)
This method returns the subject list as strings. |
|
GetSubjects (self)
An accessor for the list of subjects that are in this Role. |
|
HasSubject (self,
subject)
Thie method verifies that a subject is in this Role. |
|
RemoveSubject (self,
subject)
This method removes the specified subject from the role. |
|
SetRequireDefault (self,
flag)
An accessor to check if we are allowed to remove dafault subject from
this role. |
|
SetSubjects (self,
sl)
An accessor to set the list of subjects associated with this Role. |
|
ToXML (self,
doc,
ref)
This method creates the XML specific to the Role class. |