| Home | Trees | Index | Help |
|
|---|
| Package AccessGrid :: Package Security :: Module Role :: Class Role |
|
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 | |
|---|---|
| |
This method provides a string reprsentation of the Role. | |
This method creates a DOM document that represents the role. | |
This new AddSubject is more strict than the old one. | |
This method retrieves the subject for the specified name. | |
An accessor for the Role name attribute. | |
An accessor to set if we are allowed to remove default subject from this role. | |
This method returns the subject list as strings. | |
An accessor for the list of subjects that are in this Role. | |
Thie method verifies that a subject is in this Role. | |
This method removes the specified subject from the role. | |
An accessor to check if we are allowed to remove dafault subject from this role. | |
An accessor to set the list of subjects associated with this Role. | |
This method creates the XML specific to the Role class. | |
| Class Variable Summary | |
|---|---|
| string | TYPE: the type of role, used in doing Role Arithematic. |
| Method Details |
|---|
__init__(self,
role_name,
subjects=None)
|
__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. It only works with subject objects.
|
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. This replaces any previously existing list.
|
ToXML(self, doc, ref=0)This method creates the XML specific to the Role class.
|
| Class Variable Details |
|---|
TYPEthe type of role, used in doing Role Arithematic.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Apr 14 16:39:29 2005 | http://epydoc.sf.net |