Package lcmc.crm.domain

Examples of lcmc.crm.domain.CrmXml$ResourceStatus


    }

    /** Returns names of all global parameters. */
    @Override
    public String[] getParametersFromXML() {
        final CrmXml crmXml = getBrowser().getCrmXml();
        if (crmXml == null) {
            return null;
        }
        return crmXml.getGlobalParameters();
    }
View Full Code Here


    public void setParameters(final Map<String, String> resourceNode) {
        if (resourceNode == null) {
            return;
        }
        final CrmXml crmXML = getBrowser().getCrmXml();
        if (crmXML == null) {
            LOG.appError("setParameters: crmXML is null");
            return;
        }
        /* Attributes */
 
View Full Code Here

    }

    @Override
    public String[] getParametersFromXML() {
        LOG.debug1("getParametersFromXML: start");
        final CrmXml crmXML = getBrowser().getCrmXml();
        if (crmXML == null) {
            return null;
        }
        final Collection<String> params = crmXML.getRscDefaultsParameters().keySet();
        return params.toArray(new String[params.size()]);
    }
View Full Code Here

    }

    /** Returns true if the value of the parameter is ok. */
    @Override
    protected boolean checkParam(final String param, final Value newValue) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        if (newValue == null) {
            return crmXML.checkMetaAttrParam(param, null);
        } else {
            return crmXML.checkMetaAttrParam(param, newValue);
        }
    }
View Full Code Here

    @Override
    protected Value getParamDefault(final String param) {
        if ("resource-stickiness".equals(param)) {
            return getBrowser().getServicesInfo().getResource().getValue("default-resource-stickiness");
        }
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getRscDefaultsMetaAttrDefault(param);
    }
View Full Code Here

        return value;
    }

    @Override
    protected Value getParamPreferred(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getRscDefaultsPreferred(param);
    }
View Full Code Here

        return crmXML.getRscDefaultsPreferred(param);
    }

    @Override
    protected Value[] getParamPossibleChoices(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        if (isCheckBox(param)) {
            return crmXML.getRscDefaultsCheckBoxChoices(param);
        } else {
            return crmXML.getRscDefaultsComboBoxChoices(param);
        }
    }
View Full Code Here

        }
    }

    @Override
    protected String getParamShortDesc(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getRscDefaultsMetaAttrShortDesc(param);
    }
View Full Code Here

        return crmXML.getRscDefaultsMetaAttrShortDesc(param);
    }

    @Override
    protected String getParamLongDesc(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getRscDefaultsMetaAttrLongDesc(param);
    }
View Full Code Here

        return crmXML.getRscDefaultsMetaAttrLongDesc(param);
    }

    @Override
    protected String getSection(final String param) {
        final CrmXml crmXML = getBrowser().getCrmXml();
        return crmXML.getRscDefaultsMetaAttrSection(param);
    }
View Full Code Here

TOP

Related Classes of lcmc.crm.domain.CrmXml$ResourceStatus

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.