001/* 002 * CDDL HEADER START 003 * 004 * The contents of this file are subject to the terms of the 005 * Common Development and Distribution License, Version 1.0 only 006 * (the "License"). You may not use this file except in compliance 007 * with the License. 008 * 009 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt 010 * or http://forgerock.org/license/CDDLv1.0.html. 011 * See the License for the specific language governing permissions 012 * and limitations under the License. 013 * 014 * When distributing Covered Code, include this CDDL HEADER in each 015 * file and include the License file at legal-notices/CDDLv1_0.txt. 016 * If applicable, add the following below this CDDL HEADER, with the 017 * fields enclosed by brackets "[]" replaced with your own identifying 018 * information: 019 * Portions Copyright [yyyy] [name of copyright owner] 020 * 021 * CDDL HEADER END 022 * 023 * 024 * Copyright 2008 Sun Microsystems, Inc. 025 */ 026package org.opends.server.admin.std.client; 027 028 029 030import java.util.Collection; 031import java.util.SortedSet; 032import org.opends.server.admin.ManagedObjectDefinition; 033import org.opends.server.admin.PropertyException; 034import org.opends.server.admin.std.meta.PluginCfgDefn.PluginType; 035import org.opends.server.admin.std.server.SevenBitCleanPluginCfg; 036import org.opends.server.types.AttributeType; 037import org.opends.server.types.DN; 038 039 040 041/** 042 * A client-side interface for reading and modifying Seven Bit Clean 043 * Plugin settings. 044 * <p> 045 * The Seven Bit Clean Plugin ensures that values for a specified set 046 * of attributes are 7-bit clean. 047 */ 048public interface SevenBitCleanPluginCfgClient extends PluginCfgClient { 049 050 /** 051 * Get the configuration definition associated with this Seven Bit Clean Plugin. 052 * 053 * @return Returns the configuration definition associated with this Seven Bit Clean Plugin. 054 */ 055 ManagedObjectDefinition<? extends SevenBitCleanPluginCfgClient, ? extends SevenBitCleanPluginCfg> definition(); 056 057 058 059 /** 060 * Gets the "attribute-type" property. 061 * <p> 062 * Specifies the name or OID of an attribute type for which values 063 * should be checked to ensure that they are 7-bit clean. 064 * 065 * @return Returns the values of the "attribute-type" property. 066 */ 067 SortedSet<AttributeType> getAttributeType(); 068 069 070 071 /** 072 * Sets the "attribute-type" property. 073 * <p> 074 * Specifies the name or OID of an attribute type for which values 075 * should be checked to ensure that they are 7-bit clean. 076 * 077 * @param values The values of the "attribute-type" property. 078 * @throws PropertyException 079 * If one or more of the new values are invalid. 080 */ 081 void setAttributeType(Collection<AttributeType> values) throws PropertyException; 082 083 084 085 /** 086 * Gets the "base-dn" property. 087 * <p> 088 * Specifies the base DN below which the checking is performed. 089 * <p> 090 * Any attempt to update a value for one of the configured 091 * attributes below this base DN must be 7-bit clean for the 092 * operation to be allowed. 093 * 094 * @return Returns the values of the "base-dn" property. 095 */ 096 SortedSet<DN> getBaseDN(); 097 098 099 100 /** 101 * Sets the "base-dn" property. 102 * <p> 103 * Specifies the base DN below which the checking is performed. 104 * <p> 105 * Any attempt to update a value for one of the configured 106 * attributes below this base DN must be 7-bit clean for the 107 * operation to be allowed. 108 * 109 * @param values The values of the "base-dn" property. 110 * @throws PropertyException 111 * If one or more of the new values are invalid. 112 */ 113 void setBaseDN(Collection<DN> values) throws PropertyException; 114 115 116 117 /** 118 * Gets the "java-class" property. 119 * <p> 120 * Specifies the fully-qualified name of the Java class that 121 * provides the plug-in implementation. 122 * 123 * @return Returns the value of the "java-class" property. 124 */ 125 String getJavaClass(); 126 127 128 129 /** 130 * Sets the "java-class" property. 131 * <p> 132 * Specifies the fully-qualified name of the Java class that 133 * provides the plug-in implementation. 134 * 135 * @param value The value of the "java-class" property. 136 * @throws PropertyException 137 * If the new value is invalid. 138 */ 139 void setJavaClass(String value) throws PropertyException; 140 141 142 143 /** 144 * Gets the "plugin-type" property. 145 * <p> 146 * Specifies the set of plug-in types for the plug-in, which 147 * specifies the times at which the plug-in is invoked. 148 * 149 * @return Returns the values of the "plugin-type" property. 150 */ 151 SortedSet<PluginType> getPluginType(); 152 153 154 155 /** 156 * Sets the "plugin-type" property. 157 * <p> 158 * Specifies the set of plug-in types for the plug-in, which 159 * specifies the times at which the plug-in is invoked. 160 * 161 * @param values The values of the "plugin-type" property. 162 * @throws PropertyException 163 * If one or more of the new values are invalid. 164 */ 165 void setPluginType(Collection<PluginType> values) throws PropertyException; 166 167}