Base class for exception raised in this package
BonitaServer has not been initialized prior to any action
Bonita server is not reachable
Response from Bonita server is unexpected
Bonita HTTP Error.
Bonita Server always return a 500 error code, with a body containing XML with real HTTP error code and message (RFC are only made for dogs & cats)
This class embed the HTTP Error code, a message, and the Java exception class provided by the Bonita server.
A class to map a user in Bonita.
Retrieve a User with given parameter
Parameter can be any of : - username - uuid
| Raises TypeError: | |
|---|---|
| if call with unknown parameter | |
| Returns: | BonitaUser instance or None if not found |
Retrieve a User with the username
| Parameters: | username (str) – the username of the user to retrieve |
|---|
Retrieve a User with the UUID
| Parameters: | uuid (str) – the UUID of the user to retrieve |
|---|
Define the Delegee of a user
| Parameters: | user (BonitaUser) – the delegee to set with |
|---|---|
| Raises ValueError: | |
| delegee user is unknown in BonitaServer | |
Define the Manager of a user
| Parameters: | user (BonitaUser) – the manager to set with |
|---|---|
| Raises ValueError: | |
| manager user is unknown in BonitaServer | |
A class to map a group in Bonita.
Retrieve BonitaGroup which is the root, currently the /platform group.
| Returns: | BonitaGroup for /platform |
|---|
Retrieve a Group with given parameter
Parameter can be any of : - path - uuid
| Raises TypeError: | |
|---|---|
| if call with unknown parameter | |
| Returns: | BonitaGroup instance or None if not found |
Retrieve a Group with the path
| Parameters: | path (str) – the path of the group to retrieve |
|---|
Retrieve a Group with the UUID
| Parameters: | uuid (str) – the UUID of the group to retrieve |
|---|
A class to map a role in Bonita.
Retrieve a role given a name
A class to map a membership in Bonita.
Retrieve a membership given a role and a group
| Parameters: |
|
|---|---|
| Raises Exception: | |
if role or group is unknwo on server |
|
TODO Return None or Raise exception if no membership found ?
Singleton object to declare Bonita server to be used
BonitaServer is a singleton object used by all BonitaObject within the pybonita package.
You can’t instanciate BonitaServer. To get the unique BonitaServer instance please use the static get_instance method.
Returns the singleton instance of BonitaServer
Upon its first call, it creates a new instance of the BonitaServer implementation class On all subsequent calls, the already created instance is returned.
Set the connexion params to the BonitaServer
Returns the unique BonitaServer instance
| Parameters: |
|
|---|