Grouper 2.4 will have an upcoming patch to help folder admins create a new service.
The wizard will prompt them for a "key" (alphanumeric), and friendly name (optional). Also the service description.
New service templates should be configured in grouper-ui.properties, and should extend a common base class.
- Base class
- In Java will configure options for new service
Should optionally include a group of people who are allowed to use them
The base class should take as an input a stem, a system name extension, and optionally a friendly name extension (default to system name extension)
There should be a ui text key that describes the service (e.g. built in is "New service"). Drop down will pick which type of service
It should return a list of things it will do, as javabeans
ServiceAction
- reference back to service (which has reference to stem name, and system and display extensions)
- indentLevel (if should be indented on screen to make easier to read, e.g. under a new stem)
- type: stem, group, membership, privilege, inheritedPrivilege, attributeDef, attributeName, attributeAssignment
- arg0: e.g. for stem would be EL for the name, e.g. ${parentStemName}:${serviceSystemName}:etc. e.g. for privilege is the privilegeName
- arg1
- arg2
- something that displays this on the screen like
The UI should display the ServiceActions on the screen, with the correct indent level, and checkboxes
When submitted, if each checkbox is checked, it should do that action (if applicable). If not applicable, give a warning
By default have one new service type built-in to Grouper
"New service"
Name: wiki
Display name: Wiki
- Do you want a "etc" folder created?
- Do you want a "etc:wiki_admins" group created?
- Do you want "etc:wiki_admins" to have inherited ADMIN privileges on Groups on the "wiki" folder?
- Do you want "etc:wiki_admins" to have inherited ADMIN privileges on Folders on the "wiki" folder?
- Do you want "etc:wiki_admins" to have inherited ADMIN privileges on Attributes on the "wiki" folder?
- Do you want a "etc:wiki_readers" group created?
- Do you want "etc:wiki_readers" to have inherited READ privileges on Groups on the "wiki" folder?
- Do you want a "etc:wiki_updaters" group created?
- Do you want "etc:wiki_updaters" to have inherited UPDATE privileges on Groups on the "wiki" folder?
- Do you want "etc:wiki_updaters" to be a member of "etc:wiki_readers"?
- Do you want a "etc:wiki_admins" group created?
- Do you want a "groups" folder created?
- Do you want a "team" folder created?
- Do you want a "attribute" folder created?
To do in future
Future version could add the "service" tag