MAPModelBase.java revision bee2440354b4bc8796e1de0b6cbd60e1f68deba0
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: MAPModelBase.java,v 1.3 2009/01/28 05:34:57 ww203982 Exp $
*
* Portions Copyright 2015 ForgeRock AS.
*/
/**
* Array of the characters that may be escaped in a DN.
*/
static {
int i = 0;
for (; i < ESCAPED_CHAR.length; i++) {
invalidCharacters[i] = ESCAPED_CHAR[i];
}
invalidCharacters[i++] = ' ';
invalidCharacters[i++] = '/';
invalidCharacters[i++] = ':';
invalidCharacters[i++] = '=';
invalidCharacters[i] = '\\';
}
}
private void initClientCapDataInstance() {
try {
} catch (AMClientCapException e) {
}
}
private void getServiceResourceBundle() {
try {
getUserLocale());
}
} catch (SMSException e) {
} catch (SSOException e) {
}
}
/**
* Canonicalizes un-support characters in LDAP DN.
*
* @param str string to be canonicalized.
* @return canonicalized string.
*/
}
return str;
}
/**
* Returns true if an user agent name is valid.
*
* @param userAgent user agent name.
* @return true if <code>userAgent</code> is valid.
*/
boolean valid = true;
}
return valid;
}
protected AMClientCapData getClientCapDataIntInstance() {
return clientCapDataIntInstance;
}
protected AMClientCapData getClientCapDataExtInstance() {
return clientCapDataExtInstance;
}
}
/**
* Returns styles of a profile.
*
* @param name Name of profile.
* @return styles of a profile.
*/
return (clientTypesManager != null)
}
return (serviceResourceBundle != null) ?
}
if ((clientCapDataIntInstance != null) &&
(clientCapDataExtInstance != null))
{
}
}
}
}
return as;
}
}
return values;
}
boolean isSet = true;
}
return isSet;
}
/**
* Returns true if the given client is customizable.
*
* @param clientType Client Type.
* @return true if the given client is customizable.
*/
}
/**
* Returns true if the given client is customizable.
*
* @param clientType Client Type.
* @return true if the given client is customizable.
*/
}
/**
* Returns true if the client can be deleted.
*
* @param clientType Client Type.
* @return true if the client can be deleted.
*/
}
/**
* Returns device user agent of a client.
*
* @param clientType Client Type.
* @return device user agent of a client.
*/
}
return value;
}
/**
* Returns prefix for client type.
*
* @return prefix for client type.
*/
public String getClientTypePrefix() {
return getLocalizedString("mapCloneClient.prefix");
}
/**
* Returns prefix for device user agent.
*
* @return prefix for device user agent.
*/
public String getDeviceNamePrefix() {
return getLocalizedString("mapCloneClient.name");
}
}