001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: AMConstants.java,v 1.6 2009/01/28 05:34:47 ww203982 Exp $ 026 * 027 */ 028 029package com.iplanet.am.sdk; 030 031import java.util.HashSet; 032import java.util.Set; 033 034/** 035 * This interface defines constants used by <code>AM SDK</code>. 036 * @supported.all.api 037 * 038 * <br> 039 * @deprecated As of Sun Java System Access Manager 7.1. 040 */ 041public interface AMConstants { 042 043 // search scope 044 /** 045 * Specifies search scope to be just for the object specified 046 */ 047 public static final int SCOPE_BASE = com.sun.identity.shared.ldap.LDAPv2.SCOPE_BASE; 048 049 /** 050 * Specifies search scope to be a one level search. 051 */ 052 public static final int SCOPE_ONE = com.sun.identity.shared.ldap.LDAPv2.SCOPE_ONE; 053 054 /** 055 * Specifies search scope to be a sub tree search. 056 */ 057 public static final int SCOPE_SUB = com.sun.identity.shared.ldap.LDAPv2.SCOPE_SUB; 058 059 /* 060 * The above constants SCOPE_BASE, SCOPE_ONE, and SCOPE_SUB should be kept 061 * in synch with the corresponding constants defined in 062 * com.iplanet.ums.SearchControl 063 */ 064 065 /** 066 * Subscribable attribute 067 */ 068 public static String SUBSCRIBABLE_ATTRIBUTE = 069 "iplanet-am-group-subscribable"; 070 071 /** 072 * Unique member attribute 073 */ 074 public static final String UNIQUE_MEMBER_ATTRIBUTE = "uniquemember"; 075 076 // All Protected Constants used with in SDK package 077 // Sting Constants NOT Public 078 // Attributes 079 static final String STATIC_GROUP_DN_ATTRIBUTE = 080 "iplanet-am-static-group-dn"; 081 082 static final String CONTAINER_SUPPORTED_TYPES_ATTRIBUTE = 083 "sunIdentityServerSupportedTypes"; 084 085 static final String INET_DOMAIN_STATUS_ATTRIBUTE = "inetdomainstatus"; 086 087 static final String SERVICE_STATUS_ATTRIBUTE = "sunRegisteredServiceName"; 088 089 static final String ROLE_MANAGED_CONTAINER_DN_ATTRIBUTE = 090 "iplanet-am-role-managed-container-dn"; 091 092 static final String UNIQUE_ATTRIBUTE_LIST_ATTRIBUTE = 093 "sunnamespaceuniqueattrs"; 094 095 static final String USER_PASSWORD_ATTRIBUTE = "userpassword"; 096 097 static final String USER_ENCRYPTED_PASSWORD_ATTRIBUTE = 098 "encrypteduserpassword"; 099 100 static final String REQUIRED_SERVICES_ATTR = "iplanet-am-required-services"; 101 102 static final String USER_SEARCH_RETURN_ATTR = 103 "iplanet-am-admin-console-user-return-attribute"; 104 105 static final String DCT_ENABLED_ATTR = "iplanet-am-admin-console-dctree"; 106 107 static final String DCT_ATTRIBUTE_LIST_ATTR = 108 "iplanet-am-admin-console-dctree-attr-list"; 109 110 static final String ADMIN_GROUPS_ENABLED_ATTR = 111 "iplanet-am-admin-console-compliance-admin-groups"; 112 113 static final String COMPLIANCE_USER_DELETION_ATTR = 114 "iplanet-am-admin-console-compliance-user-deletion"; 115 116 static final String COMPLIANCE_SPECIAL_FILTER_ATTR = 117 "iplanet-am-admin-console-special-search-filters"; 118 119 static final String ADMIN_ROLE_ATTR = "adminrole"; 120 121 static final String EMAIL_ATTRIBUTE = "mail"; 122 123 static final String INET_DOMAIN_STATUS_ATTR = "inetdomainstatus"; 124 125 static final String DOMAIN_ADMINISTRATORS = "DomainAdministrators"; 126 127 static final String DOMAIN_HELP_DESK_ADMINISTRATORS = 128 "DomainHelpDeskAdministrators"; 129 130 static final String INET_ADMIN_OBJECT_CLASS = "inetadmin"; 131 132 // Pre Post Processing Impl attribute 133 static final String PRE_POST_PROCESSING_MODULES_ATTR = 134 "iplanet-am-admin-console-pre-post-processing-modules"; 135 136 // notification attribute names 137 static final String USER_CREATE_NOTIFICATION_LIST = 138 "iplanet-am-user-create-notification-list"; 139 140 static final String USER_DELETE_NOTIFICATION_LIST = 141 "iplanet-am-user-delete-notification-list"; 142 143 static final String USER_MODIFY_NOTIFICATION_LIST = 144 "iplanet-am-user-modify-notification-list"; 145 146 static final String FILTER_ATTR_NAME = "nsRoleFilter"; 147 148 static final String USERID_PASSWORD_VALIDATION_CLASS = 149 "iplanet-am-admin-console-user-password-validation-class"; 150 151 static final String INVALID_USERID_CHARACTERS = 152 "iplanet-am-admin-console-invalid-chars"; 153 154 // Other Constants 155 static final String CONTAINER_DEFAULT_TEMPLATE_ROLE = 156 "ContainerDefaultTemplateRole"; 157 158 // Service Names 159 static final String ADMINISTRATION_SERVICE = 160 "iPlanetAMAdminConsoleService"; 161 162 // Properties 163 static final String CACHE_ENABLED_DISABLED_KEY = 164 "com.iplanet.am.sdk.caching.enabled"; 165 166 static final String CACHE_MAX_SIZE_KEY = "com.iplanet.am.sdk.cache.maxSize"; 167 168 // Plugin interface for processing user create/delete/modify 169 static final String USER_ENTRY_PROCESSING_IMPL = 170 "com.iplanet.am.sdk.userEntryProcessingImpl"; 171 172 // COS Attribute type could default, operational, override, 173 // For policy attributes, will use "override" since user won't be 174 // able to customize them 175 // suffix for policy COSDefinition, i.e. <serviceName>Policy 176 static final String POLICY_SUFFIX = "Policy"; 177 178 static final String POLICY_COSATTR_TYPE = " override"; 179 180 // For other attributes, user will be able to customize them 181 // so use default 182 static final String OTHER_COSATTR_TYPE = " default"; 183 184 // Other constant values 185 static final int ADD_MEMBER = 1; 186 187 static final int REMOVE_MEMBER = 2; 188 189 // Constant for removing attribute 190 public static final Set REMOVE_ATTRIBUTE = new HashSet(); 191}
Copyright © 2010-2017, ForgeRock All Rights Reserved.