edu.internet2.middleware.grouper.externalSubjects
Interface ExternalSubjectStorable

All Known Implementing Classes:
ExternalSubjectDbStorage

public interface ExternalSubjectStorable

implement this to change how external subjects are stored

Author:
mchyzer

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
 

Method Detail

findAllDisabledMismatch

Set<ExternalSubject> findAllDisabledMismatch()
find all external subjects which have a disabled date which are not disabled

Returns:
the set of subjects

findAll

Set<ExternalSubject> findAll()
find all external subjects

Returns:
the set of subjects

findByIdentifier

ExternalSubject findByIdentifier(String identifier,
                                 boolean exceptionIfNotFound,
                                 QueryOptions queryOptions)
find an external subject by identifier

Parameters:
identifier -
exceptionIfNotFound -
queryOptions -
Returns:
the external subject or null or exception

delete

void delete(ExternalSubject externalSubject)
delete an external subject and all its attributes

Parameters:
externalSubject -

saveOrUpdate

void saveOrUpdate(ExternalSubject externalSubject)
insert or update an external subject to the DB

Parameters:
externalSubject -