001/* 002 * Copyright 2019 Ping Identity Corporation 003 * All Rights Reserved. 004 */ 005/* 006 * Copyright (C) 2019 Ping Identity Corporation 007 * 008 * This program is free software; you can redistribute it and/or modify 009 * it under the terms of the GNU General Public License (GPLv2 only) 010 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) 011 * as published by the Free Software Foundation. 012 * 013 * This program is distributed in the hope that it will be useful, 014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 016 * GNU General Public License for more details. 017 * 018 * You should have received a copy of the GNU General Public License 019 * along with this program; if not, see <http://www.gnu.org/licenses>. 020 */ 021package com.unboundid.ldap.sdk.transformations; 022 023 024 025import java.io.Serializable; 026 027import com.unboundid.ldap.sdk.Entry; 028import com.unboundid.util.NotMutable; 029import com.unboundid.util.ThreadSafety; 030import com.unboundid.util.ThreadSafetyLevel; 031 032 033 034/** 035 * This class provides an entry transformation that will simply suppress all 036 * entries. It can be useful when processing a series of LDIF records if you 037 * only want to preserve change records and suppress all entries. 038 */ 039@NotMutable() 040@ThreadSafety(level = ThreadSafetyLevel.COMPLETELY_THREADSAFE) 041public final class ExcludeAllEntriesTransformation 042 implements EntryTransformation, Serializable 043{ 044 /** 045 * The serial version UID for this serializable class. 046 */ 047 private static final long serialVersionUID = 8203086326365856962L; 048 049 050 051 /** 052 * Creates a new instance of this transformation. 053 */ 054 public ExcludeAllEntriesTransformation() 055 { 056 // No implementation is required. 057 } 058 059 060 061 /** 062 * {@inheritDoc} 063 */ 064 @Override() 065 public Entry transformEntry(final Entry entry) 066 { 067 return null; 068 } 069 070 071 072 /** 073 * {@inheritDoc} 074 */ 075 @Override() 076 public Entry translate(final Entry original, final long firstLineNumber) 077 { 078 return null; 079 } 080 081 082 083 /** 084 * {@inheritDoc} 085 */ 086 @Override() 087 public Entry translateEntryToWrite(final Entry original) 088 { 089 return null; 090 } 091}