edu.internet2.middleware.grouper.externalSubjects
Class ExternalSubjectAttributeDbStorage

java.lang.Object
  extended by edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectAttributeDbStorage
All Implemented Interfaces:
ExternalSubjectAttributeStorable

public class ExternalSubjectAttributeDbStorage
extends Object
implements ExternalSubjectAttributeStorable

Grouper built in storage for external subject attributes

Author:
mchyzer

Constructor Summary
ExternalSubjectAttributeDbStorage()
           
 
Method Summary
 void delete(ExternalSubjectAttribute externalSubjectAttribute)
          delete an external subject and all its attributes
 Set<ExternalSubjectAttribute> findBySubject(String subjectUuid, QueryOptions queryOptions)
          find attributes by subject, order by system name
 ExternalSubjectAttribute findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions)
          find an external subject attribute by identifier
 void saveOrUpdate(ExternalSubjectAttribute externalSubjectAttribute)
          insert or update an external subject attribute to the DB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSubjectAttributeDbStorage

public ExternalSubjectAttributeDbStorage()
Method Detail

delete

public void delete(ExternalSubjectAttribute externalSubjectAttribute)
Description copied from interface: ExternalSubjectAttributeStorable
delete an external subject and all its attributes

Specified by:
delete in interface ExternalSubjectAttributeStorable
See Also:
ExternalSubjectAttributeStorable.delete(edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectAttribute)

findBySubject

public Set<ExternalSubjectAttribute> findBySubject(String subjectUuid,
                                                   QueryOptions queryOptions)
Description copied from interface: ExternalSubjectAttributeStorable
find attributes by subject, order by system name

Specified by:
findBySubject in interface ExternalSubjectAttributeStorable
Returns:
the external subject or null or exception
See Also:
ExternalSubjectAttributeStorable.findBySubject(java.lang.String, edu.internet2.middleware.grouper.internal.dao.QueryOptions)

findByUuid

public ExternalSubjectAttribute findByUuid(String uuid,
                                           boolean exceptionIfNotFound,
                                           QueryOptions queryOptions)
Description copied from interface: ExternalSubjectAttributeStorable
find an external subject attribute by identifier

Specified by:
findByUuid in interface ExternalSubjectAttributeStorable
Returns:
the external subject or null or exception
See Also:
ExternalSubjectAttributeStorable.findByUuid(java.lang.String, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions)

saveOrUpdate

public void saveOrUpdate(ExternalSubjectAttribute externalSubjectAttribute)
Description copied from interface: ExternalSubjectAttributeStorable
insert or update an external subject attribute to the DB

Specified by:
saveOrUpdate in interface ExternalSubjectAttributeStorable
See Also:
ExternalSubjectAttributeStorable.saveOrUpdate(edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectAttribute)