You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Grouper 2.4 will have an upcoming patch to help folder admins create a new template.  

On a folder screen, under "more actions" will be an option for "New template"

The wizard will prompt for "Template type", which by default "Service".

New service templates should be configured in grouper-ui.properties, and should extend a common base class.  GrouperTemplateLogicBase

  • Base class
  • In Java will configure options for new service

Should optionally include a group of people who are allowed to use them

The wizard will prompt them for a "key" (alphanumeric), and friendly name (optional).  Also the service description.

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
  • externalized key for the label
  • defaultChecked (true|false)
  • checkSubmitted (if the chwckbox was checked by user)

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.  The UI will pass the list of pojos, and "checkSubmitted" is set based on if the checkboxes were checked, to the base class, for a logic method, to implement the template.  There should be a base class method to validate the input, pass the response JS object, and the validate method can write error messages to the screen and return true or false if valid.

By default have one new service type built-in to Grouper

"New service"

Name: wiki

Display name: Wiki

  • Do you want a "security" folder created?
    • Do you want a "security:wiki_admins" group created?
      • Do you want "security:wiki_admins" to have inherited ADMIN privileges on Groups on the "wiki" folder?
      • Do you want "security:wiki_admins" to have inherited ADMIN privileges on Folders on the "wiki" folder?
      • Do you want "security:wiki_admins" to have inherited ADMIN privileges on Attributes on the "wiki" folder?
    • Do you want a "security:wiki_readers" group created?
      • Do you want "security:wiki_readers" to have inherited READ privileges on Groups on the "wiki" folder?
    • Do you want a "security:wiki_updaters" group created?
      • Do you want "security:wiki_updaters" to have inherited UPDATE privileges on Groups on the "wiki" folder?
      • Do you want "security:wiki_updaters" to be a member of "security:wiki_readers"?
  • Do you want a "policy" folder created?
  • Do you want a "reference" folder created? (extension is "ref", displayExtension is "reference")
  • Do you want a "attribute" folder created?

To do in future

Future version could add the "service" tag


  • No labels