Skip to main content
Skip table of contents

checkForRightTemplate

Versionshinweise

ab 17.1.6, 16.1.17, 17.2

 

Code

GROOVY
List<String> checkForRightTemplate(IRightContainer... groupRights)

Beschreibung

Sucht nach Rechtevorlagen, die die übergebene Kombination aus Gruppenkonfigurationen enthalten, und gibt eine Liste ihrer Pks zurück.

 

Parameter

  • groupRights - Eine kommaseparierte Liste von Rechtecontainern, nach denen gesucht werden soll.

Rückgabe

Die Pks der gefundenen Rechtevorlagen als Liste.

Beispiele

GROOVY
IRightContainer myRightGroup = RightUtils.createIRightContainer("myRightGroupPk", true, true, false, true);
String templatePk = RightUtils.createRightTemplate("MY_TEMPLATE", "My description", myRightGroup);
List<String> pks = RightUtils.checkForRightTemplate(myRightGroup);

if(pks.contains(templatePk))
{
  System.out.println("template found");
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.