Package org.exoplatform.portal.mop.description

Examples of org.exoplatform.portal.mop.description.DescriptionService


            ResourceBundle bundle = owner.navigation.getBundle();
            resolvedLabel = ExpressionUtil.getExpressionValue(bundle, context.getState().getLabel());
        } else if (id != null) {
            Locale userLocale = owner.navigation.portal.context.getUserLocale();
            Locale portalLocale = owner.navigation.portal.getLocale();
            DescriptionService descriptionService = owner.navigation.portal.service.getDescriptionService();
            Described.State description = descriptionService.resolveDescription(id, portalLocale, userLocale);
            if (description != null) {
                resolvedLabel = description.getName();
            }
        }
View Full Code Here


    }

    public void setResolvedLabel(String label) {
        String id = context.getId();
        Locale userLocale = owner.navigation.portal.context.getUserLocale();
        DescriptionService descriptionService = owner.navigation.portal.service.getDescriptionService();

        Described.State description = new Described.State(label, null);

        descriptionService.setDescription(id, userLocale, description);
    }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.mop.description.DescriptionService

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.