19 package org.turro.security;
21 import java.util.HashSet;
22 import org.turro.contacts.profile.ProfileContext;
23 import org.turro.plugin.contacts.IContact;
24 import org.turro.plugin.contacts.IProfile;
35 this.contact = contact;
47 put(
"@worker", Permissions.IS_SET);
50 put(
"@student", Permissions.IS_SET);
53 put(
"@responsible", Permissions.IS_SET);
56 put(
"@hhrr", Permissions.IS_SET);
59 put(
"@companyhhrr", Permissions.IS_SET);
62 put(
"@centerhhrr", Permissions.IS_SET);
65 put(
"@translator", Permissions.IS_SET);
68 put(
"@singleton", Permissions.IS_SET);
70 if(
isInRole(ProfileContext.getNetworkingRoles())) {
71 put(
"@networking", Permissions.IS_SET);
73 if(
isInRole(ProfileContext.getPremiumNetworkingRoles())) {
74 put(
"@premium", Permissions.IS_SET);
boolean isInRole(String role)
static FlatPermissions from(Set< String > securityGroups)