edu.internet2.middleware.grouper.internal.dao
Interface AttributeDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeDAO

public interface AttributeDAO
extends GrouperDAO

Basic Attribute DAO interface.

Since:
1.2.0
Version:
$Id: AttributeDAO.java,v 1.1 2009-03-24 17:12:08 mchyzer Exp $
Author:
blair christensen.

Method Summary
 void createOrUpdate(Attribute attribute)
           
 void delete(Attribute attribute)
          delete an attribute from the database
 java.util.Map<java.lang.String,Attribute> findAllAttributesByGroup(java.lang.String uuid)
           
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,Attribute>> findAllAttributesByGroups(java.util.Collection<java.lang.String> uuids)
           
 Attribute findByUuidOrName(java.lang.String id, java.lang.String groupUUID, java.lang.String fieldId, boolean exceptionIfNotFound)
           
 void saveUpdateProperties(Attribute attribute)
          save the update properties which are auto saved when business method is called
 

Method Detail

createOrUpdate

void createOrUpdate(Attribute attribute)
Parameters:
attribute -

findAllAttributesByGroup

java.util.Map<java.lang.String,Attribute> findAllAttributesByGroup(java.lang.String uuid)
                                                                   throws GrouperDAOException
Parameters:
uuid -
Returns:
map of attribute names to attribute
Throws:
GrouperDAOException

findAllAttributesByGroups

java.util.Map<java.lang.String,java.util.Map<java.lang.String,Attribute>> findAllAttributesByGroups(java.util.Collection<java.lang.String> uuids)
                                                                                                    throws GrouperDAOException
Parameters:
uuids -
Returns:
map of grouper uuid to map of attribute names to attribute note, if there is no attributes, return an empty map anyways
Throws:
GrouperDAOException

delete

void delete(Attribute attribute)
delete an attribute from the database

Parameters:
attribute -

findByUuidOrName

Attribute findByUuidOrName(java.lang.String id,
                           java.lang.String groupUUID,
                           java.lang.String fieldId,
                           boolean exceptionIfNotFound)
Parameters:
id -
groupUUID -
fieldId -
exceptionIfNotFound -
Returns:
the attribute or null

saveUpdateProperties

void saveUpdateProperties(Attribute attribute)
save the update properties which are auto saved when business method is called

Parameters:
attribute -