DynamicRequestViewBean.java revision 44533057912ac5c4bca52935b8fbc8e6d59d0671
/*
* 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 legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at 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 copyright [year] [name of copyright owner]".
*
* Copyright 2015 ForgeRock AS.
*/
/**
* This view bean handles dynamic requests made from the client.
*
* @since 13.0.0
*/
public abstract class DynamicRequestViewBean extends AMPrimaryMastHeadViewBean {
protected boolean dynamicRequest = false;
protected AMPropertySheetModel propertySheetModel;
/**
* Creates an instance of {@link DynamicRequestViewBean}.
*
* @param name Name of page.
*/
super(name);
}
/**
* Checks to see if this is a dynamic validator request, if not execution is passed to the sub class.
*
* @param event Request invocation event.
*/
// Store the current attribute values from the UI to render when beginDisplay is called
dynamicRequest = true;
} else {
}
}
/**
* Retrieve the validators specified for the attribute, invoke their
* validate methods and display the validation messages if any are present.
*
* @param attributeName The name of the attribute for which the validation should be done.
*/
/**
* Handle the appropriate dynamic link request.
*
* @param attributeName The name of the attribute that invoked the request.
*/
/**
* Get the current (could be unsaved) attribute values for the view bean.
*
* @return the attribute values
*/
/**
* Validate a provided script.
*
* @param attributeName The name of the attribute for which the validation should be done.
* @param instance The name of the script instance.
* @param validators List of predefined classes that implement {@link DynamicAttributeValidator},
* which should be used to validate the script.
* @throws IllegalAccessException, InstantiationException if any of the classes could not be instantiated
*/
throws IllegalAccessException, InstantiationException {
}
}
}
}
}
final String message = messageBuilder.substring(0, messageBuilder.length() - 4); // 4 is length of '<br>'
} else {
}
}
}