Package com.adito.properties.attributes.forms

Examples of com.adito.properties.attributes.forms.AttributeDefinitionsForm


     * @throws Exception on any error
     */
    public ActionForward confirmRemove(ActionMapping mapping, ActionForm form, HttpServletRequest request,
                                       HttpServletResponse response) throws Exception {
        PolicyUtil.checkPermission(getResourceType(), PolicyConstants.PERM_MAINTAIN, request);
        AttributeDefinitionsForm schemesForm = (AttributeDefinitionsForm) form;
        String name = schemesForm.getSelectedItem();
        int idx = name.indexOf('/');
        String propertyClass = name.substring(0, idx);
        name = name.substring(idx + 1);
        AttributeDefinition def = (AttributeDefinition) PropertyClassManager.getInstance()
                        .getPropertyClass(propertyClass)
View Full Code Here


     * @throws Exception on any error
     */
    public ActionForward remove(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        PolicyUtil.checkPermission(getResourceType(), PolicyConstants.PERM_MAINTAIN, request);
        AttributeDefinitionsForm f = (AttributeDefinitionsForm) form;
        String name = f.getSelectedItem();
        int idx = name.indexOf('/');
        String propertyClass = name.substring(0, idx);
        name = name.substring(idx + 1);
        AttributeDefinition def = (AttributeDefinition) PropertyClassManager.getInstance()
                        .getPropertyClass(propertyClass)
View Full Code Here

     * @throws Exception on any error
     */
    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        PolicyUtil.checkPermission(getResourceType(), PolicyConstants.PERM_MAINTAIN, request);
        AttributeDefinitionsForm f = (AttributeDefinitionsForm) form;
        String selected = f.getSelectedItem();
        int idx = selected.indexOf('/');
        String attributeClass = selected.substring(0, idx);
        String name = selected.substring(idx + 1);
        AttributeDefinition def = (AttributeDefinition) PropertyClassManager.getInstance()
                        .getPropertyClass(attributeClass)
View Full Code Here

     * @throws Exception on any error
     */
    public ActionForward create(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        PolicyUtil.checkPermission(getResourceType(), PolicyConstants.PERM_MAINTAIN, request);
        AttributeDefinitionsForm f = (AttributeDefinitionsForm) form;

        // Get the property class
        AttributesPropertyClass attributesPropertyClass = (AttributesPropertyClass) PropertyClassManager.getInstance()
                        .getPropertyClass(f.getPropertyClassName());
        if (attributesPropertyClass == null) {
            throw new Exception("Invalid property class.");
        }

        // Create the definition to edit
View Full Code Here

     * @throws Exception on any error
     */
    public ActionForward list(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        PolicyUtil.checkPermission(getResourceType(), PolicyConstants.PERM_MAINTAIN, request);
        AttributeDefinitionsForm f = (AttributeDefinitionsForm) form;
        getResources(request);
        Collection<AttributeDefinition> defs = (Collection) PropertyClassManager.getInstance()
                        .getDefinitions(AttributesPropertyClass.class);
        f.initialize(request.getSession(), defs);
        Util.noCache(response);
        return mapping.findForward("display");
    }
View Full Code Here

TOP

Related Classes of com.adito.properties.attributes.forms.AttributeDefinitionsForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.