/**
* 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: SerializedField.java,v 1.4 2008/08/19 19:09:06 veiming Exp $
*
* Portions Copyrighted 2015 ForgeRock AS.
*/
/**
* This class takes a serializable object, serialized it when
* adding as a hidden field in a form (for information tracking
* between pages) and deserialized it when retrieving during
* form submission.
* This component is proprietary to OpenSSO Administration Console
*/
{
/**
* Constructs a minimal instance using the parent's default model
* and the field's name as its bound name
*
* @param parent view of this object
* @param name and model bound name.
* @param value - serializable object
*/
public SerializedField(
) {
}
/**
* Constructs an instance using the specified model and the
* field's name as its bound name
*
* @param parent view of this object
* @param model to which this <code>DisplayField</code> is bound
* @param name and model bound name.
* @param value - serializable object
*/
public SerializedField(
) {
}
/**
* Constructs this component directly
*
* @param parent view of this object
* @param model to which this <code>DisplayField</code> is bound
* @param name this view's name.
* @param boundName name of the model field to which this
* <code>DisplayField</code> is bound
* @param value - serializable object
*/
public SerializedField(
) {
}
/**
* Gets serializable object
*
* @return serializable object
*/
public <T> T getSerializedObj() {
if (serializedStr != null) {
try {
} catch (IOException ioe) {
} catch (ClassNotFoundException cnfe) {
}
}
return result;
}
/**
* Set serializable object
*
* @param obj serializable object
*/
}
/**
* Set serialized string.
*
* @param str Serizalized String.
*/
}
/**
* Set serializable object
*
* @param obj serializable object
* @param overwrite - true to overwrite existing value
*/
if (!overwrite) {
overwrite = true;
}
}
if (overwrite) {
try {
} catch (IOException ioe) {
}
} else {
}
}
}
}