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

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


        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


        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
Copyright © 2018 www.massapi.com. 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.