src/org/glite/security/voms/services/admin/VOMSAdmin.java

00001 /*******************************************************************************
00002  *Copyright (c) Members of the EGEE Collaboration. 2006. 
00003  *See http://www.eu-egee.org/partners/ for details on the copyright
00004  *holders.  
00005  *
00006  *Licensed under the Apache License, Version 2.0 (the "License"); 
00007  *you may not use this file except in compliance with the License. 
00008  *You may obtain a copy of the License at 
00009  *
00010  *    http://www.apache.org/licenses/LICENSE-2.0 
00011  *
00012  *Unless required by applicable law or agreed to in writing, software 
00013  *distributed under the License is distributed on an "AS IS" BASIS, 
00014  *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
00015  *See the License for the specific language governing permissions and 
00016  *limitations under the License.
00017  *
00018  * Authors:
00019  *     
00020  *     Akos Frohner - akos.frohner@cern.ch
00021  *     Karoly Lorentey - karoly.lorentey.@cern.ch
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 // Please do not change this line. 
00559 // arch-tag: 1a185f21-9efc-4279-8560-d420b4a23d29 
00560 

Generated on Thu Apr 10 18:02:26 2008 for VOMS Admin by  doxygen 1.4.6