edu.internet2.middleware.grouper.internal.dao.PITFieldDAO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper Show documentation
Show all versions of grouper Show documentation
Internet2 Groups Management Toolkit
/**
* Copyright 2014 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author shilen
* $Id$
*/
package edu.internet2.middleware.grouper.internal.dao;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.Set;
import edu.internet2.middleware.grouper.Field;
import edu.internet2.middleware.grouper.pit.PITField;
/**
*
*/
public interface PITFieldDAO extends GrouperDAO {
/**
* insert or update
* @param pitField
*/
public void saveOrUpdate(PITField pitField);
/**
* insert or update
* @param pitFields
*/
public void saveOrUpdate(Set pitFields);
/**
* delete
* @param pitField
*/
public void delete(PITField pitField);
/**
* @param id
* @param exceptionIfNotFound
* @return PITField
*/
public PITField findBySourceIdActive(String id, boolean exceptionIfNotFound);
/**
* @param ids
* @return PITMembership
*/
public Set findBySourceIdsActive(Collection ids);
/**
* @param id
* @param exceptionIfNotFound
* @return PITField
*/
public PITField findById(String id, boolean exceptionIfNotFound);
/**
* @param id
* @param exceptionIfNotFound
* @return PITField
*/
public PITField findBySourceIdUnique(String id, boolean exceptionIfNotFound);
/**
* @param id
* @param exceptionIfNotFound
* @return set of PITField
*/
public Set findBySourceId(String id, boolean exceptionIfNotFound);
/**
* Delete records that ended before the given date.
* @param time
* @return the number of records deleted
*/
public long deleteInactiveRecords(Timestamp time);
/**
* @return active fields that are missing in point in time
*/
public Set findMissingActivePITFields();
/**
* @return active point in time fields that should be inactive
*/
public Set findMissingInactivePITFields();
/**
* @return source ids of records that have duplicate active entries in PIT
*/
public Set findActiveDuplicates();
/**
* Delete (won't run pre and post delete methods)
* @param id
*/
public void delete(String id);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy