Perform the following steps to create custom users and roles if you are using Tomcat:
<auth-constraint id="AuthConstraint_1062537631424"> <description>SC1:+:</description> <role-name>Administrator</role-name> <role-name>ViewEvents</role-name> <role-name>ViewAll</role-name> <role-name>SubmitEvents</role-name> <role-name>Manager</role-name> </auth-constraint>
<security-role id="SecurityRole_1068513225089"> <description>Can manage all events.</description> <role-name>Manager</role-name> </security-role>
<servlet id="Servlet_1062537018298"> <servlet-name>Login</servlet-name> <display-name>Login</display-name>
<servlet-class> com.ibm.btools.itools.FailedEvents.servlets.Login </servlet-class> <init-param id="InitParam_1063835207426"> <param-name>ROLECOMPONENTS</param-name> <param-value> role1: event_owners SourceToDestCollab |role2:event_owners=Collab2* bos=CUSTOMER2.Create#2/4 |role3:event_owners=SourceToDestCollab, Collab2 </param-value> <description> Roles and components (collabs or connectors) associated with these roles. </description> </init-param> </servlet>
The parameter value is a string in the following format:
<RoleName1>:event_owners=<ownername>*connectors=<connectorName> *bos=<boname.verb> #<CompositeKeyValue>+<CompositekeyValue2>/ <AnotherPossibleKeyValue> | <RoleName2>: .....
Where:
< | > - separates two roles
< : > - separates the role name from components of the role
< * > - separates components within a role, for example, connectors and business objects
< = > - separates the component name from its values
< , > - separates values within a component
< # >- separates business object name from its key values
< / >- separates different possible keys of a business object
< + >- separates the composite key of a business object (two or more primary keys)
For example:
Role1:event_owners=collab1, collab2*connectors=conn1, conn2*bos=bo1.create#55/67, bo2.delete#99/80 |
Role2:event_owners=collab3,collab4*connectors=conn3 *bos= bo4.create#59+9876/82, bo2.delete#56
In this example, "event_owners" refers to point of failure of the event, either at the collaboration or at the connector.