Package com.agiletec.plugins.jacms.aps.system.services.resource

Examples of com.agiletec.plugins.jacms.aps.system.services.resource.IResourceManager


        JAXBImageMapValue value = (JAXBImageMapValue) jaxbAttribute.getValue();
        if (null == value) return;
        JAXBResourceValue jaxbImageValue = value.getImage();
        if (null == jaxbImageValue) return;
        try {
            IResourceManager resourceManager = this.getResourceManager();
            ResourceInterface resource = resourceManager.loadResource(jaxbImageValue.getResourceId().toString());
            if (null != resource) {
                this.setResource(resource, this.getDefaultLangCode());
            }
      if (null != value.getAreas()) {
        for (int i = 0; i < value.getAreas().size(); i++) {
View Full Code Here


public class LoadSurveyTag extends TagSupport {
 
  public int doStartTag() throws JspException {
    ISurveyManager surveyManager = (ISurveyManager) ApsWebApplicationUtils.getBean(SurveySystemConstants.SURVEY_MANAGER, pageContext);
    ILangManager langManager = (ILangManager) ApsWebApplicationUtils.getBean(SystemConstants.LANGUAGE_MANAGER,pageContext);
    IResourceManager resourceManager = (IResourceManager) ApsWebApplicationUtils.getBean(JacmsSystemConstants.RESOURCE_MANAGER, this.pageContext);
    SurveyRecord survey = null
    try {
      String defaultLang = langManager.getDefaultLang().getCode();
      survey = surveyManager.loadSurvey(this.getSurveyId());
      if (this._preferredLang == null) {
        this._preferredLang = defaultLang;
      }
      this.pageContext.setAttribute(this.getCtxName(), survey);
      // fetch image
      if (null != this.getCtxImageUrl() && null != survey.getImageId()) {
        ImageResource resource = (ImageResource) resourceManager.loadResource(survey.getImageId());
        if (null != this.getImageDimension() && null != resource.getImagePath(this.getImageDimension())) {
          this.pageContext.setAttribute(this.getCtxImageUrl(), resource.getImagePath(this.getImageDimension()));
        } else {
          this.pageContext.setAttribute(this.getCtxImageUrl(), resource.getImagePath("0"));
        }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jacms.aps.system.services.resource.IResourceManager

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.