edu.internet2.middleware.grouper.externalSubjects
Class ExternalSubjectDbStorage

java.lang.Object
  extended by edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectDbStorage
All Implemented Interfaces:
ExternalSubjectStorable

public class ExternalSubjectDbStorage
extends Object
implements ExternalSubjectStorable

Author:
mchyzer

Constructor Summary
ExternalSubjectDbStorage()
           
 
Method Summary
 void delete(ExternalSubject externalSubject)
          delete an external subject and all its attributes
 Set<ExternalSubject> findAll()
          find all external subjects
 Set<ExternalSubject> findAllDisabledMismatch()
          find all external subjects which have a disabled date which are not disabled
 ExternalSubject findByIdentifier(String identifier, boolean exceptionIfNotFound, QueryOptions queryOptions)
          find an external subject by identifier
 void saveOrUpdate(ExternalSubject externalSubject)
          insert or update an external subject to the DB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSubjectDbStorage

public ExternalSubjectDbStorage()
Method Detail

delete

public void delete(ExternalSubject externalSubject)
Description copied from interface: ExternalSubjectStorable
delete an external subject and all its attributes

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

findAll

public Set<ExternalSubject> findAll()
Description copied from interface: ExternalSubjectStorable
find all external subjects

Specified by:
findAll in interface ExternalSubjectStorable
Returns:
the set of subjects
See Also:
ExternalSubjectStorable.findAll()

findAllDisabledMismatch

public Set<ExternalSubject> findAllDisabledMismatch()
Description copied from interface: ExternalSubjectStorable
find all external subjects which have a disabled date which are not disabled

Specified by:
findAllDisabledMismatch in interface ExternalSubjectStorable
Returns:
the set of subjects
See Also:
ExternalSubjectStorable.findAllDisabledMismatch()

findByIdentifier

public ExternalSubject findByIdentifier(String identifier,
                                        boolean exceptionIfNotFound,
                                        QueryOptions queryOptions)
Description copied from interface: ExternalSubjectStorable
find an external subject by identifier

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

saveOrUpdate

public void saveOrUpdate(ExternalSubject externalSubject)
Description copied from interface: ExternalSubjectStorable
insert or update an external subject to the DB

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