00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 package org.glite.security.voms.services.admin;
00026
00027
00028
00029 import org.glite.security.voms.services.ACLEntry;
00030 import org.glite.security.voms.services.User;
00031 import org.glite.security.voms.services.VOMSException;
00032 import org.glite.security.voms.services.acl.VOMSACL;
00033
00034
00047 public interface VOMSAdmin {
00054 public String getVOName()
00055 throws VOMSException;
00056
00068 public User getUser (String username, String userca)
00069 throws VOMSException;
00070
00080 public void setUser (User user)
00081 throws VOMSException;
00082
00083
00091 public void createUser (User user)
00092 throws VOMSException;
00093
00106 public void deleteUser (String username, String userca)
00107 throws VOMSException;
00108
00123 public void createGroup (String parentname, String groupname)
00124 throws VOMSException;
00125
00140 public void deleteGroup (String groupname)
00141 throws VOMSException;
00142
00152 public void createRole (String rolename)
00153 throws VOMSException;
00154
00163 public void deleteRole (String rolename)
00164 throws VOMSException;
00165
00173 public void createCapability (String capability)
00174 throws VOMSException;
00175
00182 public void deleteCapability (String capability)
00183 throws VOMSException;
00184
00198 public void addMember (String groupname, String username, String userca)
00199 throws VOMSException;
00200
00215 public void removeMember (String groupname, String username, String userca)
00216 throws VOMSException;
00217
00233 public void assignRole (String groupname,
00234 String rolename,
00235 String username,
00236 String userca)
00237 throws VOMSException;
00238
00253 public void dismissRole (String parentname,
00254 String rolename,
00255 String username,
00256 String userca)
00257 throws VOMSException;
00258
00268 public void assignCapability (String capability, String username, String userca)
00269 throws VOMSException;
00270
00280 public void dismissCapability (String capability, String username, String userca)
00281 throws VOMSException;
00282
00295 public User[] listMembers (String groupname)
00296 throws VOMSException;
00297
00312 public User[] listUsersWithRole (String groupname, String rolename)
00313 throws VOMSException;
00314
00323 public User[] listUsersWithCapability (String capability)
00324 throws VOMSException;
00325
00340 public String[] getGroupPath (String groupname)
00341 throws VOMSException;
00342
00354 public String[] listSubGroups (String groupname)
00355 throws VOMSException;
00356
00369 public String[] listGroups (String username, String userca)
00370 throws VOMSException;
00371
00382 public String[] listRoles ()
00383 throws VOMSException;
00384
00398 public String[] listRoles (String username, String userca)
00399 throws VOMSException;
00400
00407 public String[] listCapabilities()
00408 throws VOMSException;
00409
00419 public String[] listCapabilities (String username, String userca)
00420 throws VOMSException;
00421
00429 public String[] listCAs()
00430 throws VOMSException;
00431
00442 public ACLEntry[] getACL (String container)
00443 throws VOMSException;
00444
00455 public void setACL (String container, ACLEntry[] acl)
00456 throws VOMSException;
00457
00469 public void addACLEntry (String container, ACLEntry aclEntry)
00470 throws VOMSException;
00471
00483 public void removeACLEntry (String container, ACLEntry aclEntry)
00484 throws VOMSException;
00485
00498 public ACLEntry[] getDefaultACL (String groupname)
00499 throws VOMSException;
00500
00513 public void setDefaultACL (String groupname, ACLEntry[] aclEntry)
00514 throws VOMSException;
00515
00527 public void addDefaultACLEntry (String groupname, ACLEntry aclEntry)
00528 throws VOMSException;
00529
00541 public void removeDefaultACLEntry (String groupname, ACLEntry aclEntry)
00542 throws VOMSException;
00543
00547 public int getMajorVersionNumber();
00551 public int getMinorVersionNumber();
00555 public int getPatchVersionNumber();
00556 }
00557
00558
00559
00560