src/org/glite/security/voms/services/attributes/VOMSAttributes.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  *     Andrea Ceccanti - andrea.ceccanti@cnaf.infn.it
00020  *******************************************************************************/
00021 package org.glite.security.voms.services.attributes;
00022 
00023 import org.glite.security.voms.services.User;
00024 import org.glite.security.voms.services.VOMSException;
00025 
00026 
00027 
00034 public interface VOMSAttributes {
00035     
00051     public void createAttributeClass(String name, String description, boolean uniquenessChecked)
00052         throws VOMSException;
00053     
00065     public void createAttributeClass(String name, String description)
00066         throws VOMSException;
00067     
00078     public void createAttributeClass(String name)
00079         throws VOMSException;
00080 
00092     public AttributeClass getAttributeClass(String name)
00093         throws VOMSException;
00094     
00106     public void saveAttributeClass(AttributeClass attributeClass)
00107         throws VOMSException;
00108     
00119     public void deleteAttributeClass(String name)
00120         throws VOMSException;
00121     
00131     public void deleteAttributeClass(AttributeClass attributeClass)
00132         throws VOMSException;
00133     
00142     public AttributeClass[] listAttributeClasses()
00143         throws VOMSException;
00144     
00155     public AttributeValue[] listUserAttributes(User user)
00156         throws VOMSException;
00157     
00169     public void setUserAttribute(User user, AttributeValue attributeValue)
00170         throws VOMSException;
00171     
00182     public void deleteUserAttribute(User user, String attributeName)
00183         throws VOMSException;
00184     
00195     public void deleteUserAttribute(User user, AttributeValue attributeValue)
00196         throws VOMSException;
00197     
00207     public void setGroupAttribute(String groupName, AttributeValue attributeValue)
00208         throws VOMSException;
00209     
00221     public void deleteGroupAttribute(String groupName, String attributeName)
00222         throws VOMSException;
00223     
00235     public void deleteGroupAttribute(String groupName, AttributeValue attributeValue)
00236         throws VOMSException;
00237     
00249     public AttributeValue[] listGroupAttributes(String groupName)
00250         throws VOMSException;
00251     
00252     
00264     public void setRoleAttribute(String groupName, String roleName, AttributeValue attributeValue)
00265         throws VOMSException;
00266     
00278     public void deleteRoleAttribute(String groupName, String roleName, String attrName)
00279         throws VOMSException;
00280     
00295     public void deleteRoleAttribute(String groupName, String roleName, AttributeValue attributeValue)
00296         throws VOMSException;
00297     
00309     public AttributeValue[] listRoleAttributes(String groupName, String roleName)
00310         throws VOMSException;
00311     
00312 }

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