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

Examples of com.agiletec.plugins.jacms.aps.system.services.dispenser.ContentRenderizationInfo


    try {
      modelId = this.createMockContentModel();
      contentId = this.createMockContent();
      String renderInfoCacheKey = BaseContentDispenser.getRenderizationInfoCacheKey(contentId, modelId, langCode, reqCtx);
      assertNull(this._cacheInfoManager.getFromCache(renderInfoCacheKey));
      ContentRenderizationInfo outputInfo = this._contentDispenser.getRenderizationInfo(contentId, modelId, langCode, reqCtx);
      ContentRenderizationInfo cachedOutputInfo = (ContentRenderizationInfo) this._cacheInfoManager.getFromCache(renderInfoCacheKey);
      assertNotNull(cachedOutputInfo);
      assertEquals(outputInfo.hashCode(), cachedOutputInfo.hashCode());
      assertEquals(outputInfo.getContentId(), cachedOutputInfo.getContentId());
      assertEquals(outputInfo.getModelId(), cachedOutputInfo.getModelId());
      assertEquals(outputInfo.getCachedRenderedContent(), cachedOutputInfo.getCachedRenderedContent());
    } catch (Throwable t) {
      throw t;
    } finally {
      this.deleteMockContentObject(contentId, modelId);
    }
View Full Code Here


    long modelId = -1;
    try {
      modelId = this.createMockContentModel();
      contentId = this.createMockContent();
      String renderInfoCacheKey = BaseContentDispenser.getRenderizationInfoCacheKey(contentId, modelId, langCode, reqCtx);
      ContentRenderizationInfo outputInfo = this._contentDispenser.getRenderizationInfo(contentId, modelId, langCode, reqCtx);
      assertNotNull(outputInfo);
      assertNotNull(this._cacheInfoManager.getFromCache(renderInfoCacheKey));
      //-----------
      Content content = this._contentManager.loadContent(contentId, true);
      content.setDescr("Modified content description");
View Full Code Here

    long modelId = -1;
    try {
      modelId = this.createMockContentModel();
      contentId = this.createMockContent();
      String renderInfoCacheKey = BaseContentDispenser.getRenderizationInfoCacheKey(contentId, modelId, langCode, reqCtx);
      ContentRenderizationInfo outputInfo = this._contentDispenser.getRenderizationInfo(contentId, modelId, langCode, reqCtx);
      assertNotNull(outputInfo);
      assertNotNull(this._cacheInfoManager.getFromCache(renderInfoCacheKey));
      //-----------
      ContentModel contentModel = this._contentModelManager.getContentModel(modelId);
      contentModel.setDescription("Modified model description");
View Full Code Here

    String langCode = "en";
    try {
      String groupsCsv = BaseContentDispenser.getRenderizationInfoCacheGroupsCsv(contentId, modelId);
      String renderInfoCacheKey = BaseContentDispenser.getRenderizationInfoCacheKey(contentId, modelId, langCode, reqCtx);
      assertNull(this._cacheInfoManager.getFromCache(renderInfoCacheKey));
      ContentRenderizationInfo outputInfo = this._contentDispenser.getRenderizationInfo(contentId, modelId, langCode, reqCtx);
      assertNotNull(outputInfo);
      assertNotNull(this._cacheInfoManager.getFromCache(renderInfoCacheKey));
      //-----------
      assertTrue(groupsCsv.indexOf(cacheGroupId) > -1);
      this._cacheInfoManager.flushGroup(cacheGroupId);
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jacms.aps.system.services.dispenser.ContentRenderizationInfo

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.