edu.internet2.middleware.grouper.externalSubjects
Interface ExternalSubjectAttributeStorable

All Known Implementing Classes:
ExternalSubjectAttributeDbStorage

public interface ExternalSubjectAttributeStorable

interface to implement to keep external subjects somewhere besides in the Grouper DB

Author:
mchyzer

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
 

Method Detail

delete

void delete(ExternalSubjectAttribute externalSubjectAttribute)
delete an external subject and all its attributes

Parameters:
externalSubjectAttribute -

saveOrUpdate

void saveOrUpdate(ExternalSubjectAttribute externalSubjectAttribute)
insert or update an external subject attribute to the DB

Parameters:
externalSubjectAttribute -

findByUuid

ExternalSubjectAttribute findByUuid(String uuid,
                                    boolean exceptionIfNotFound,
                                    QueryOptions queryOptions)
find an external subject attribute by identifier

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

findBySubject

Set<ExternalSubjectAttribute> findBySubject(String subjectUuid,
                                            QueryOptions queryOptions)
find attributes by subject, order by system name

Parameters:
subjectUuid -
queryOptions -
Returns:
the external subject or null or exception