在我们的应用程序基于身份验证,即用户无法登录我们的应用程序,直到他/她使用凭据登录.但是如果它在Dispatcher中缓存,我们的大坝内容就可以访问了.一旦图像缓存在调度程序中,调用就不会发布到吊销身份验证服务中,我已经为/ content/dam启用了身份验证.在我们登录之前,有谁能告诉我如何阻止大坝内容.我们正在使用AEM 6.1 SP2
谢谢,Tushar
我正在尝试编写一个侦听器,用于侦听页面激活但在发布环境中。我编写的代码可以在作者环境中运行,但不能在发布中运行,即即使在发布环境中它也不会监听复制。我已附上底层代码。非常感谢任何帮助。
package com.whirlpool.portal.services.listeners;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;
import org.osgi.framework.BundleContext;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.day.cq.replication.ReplicationAction;
import com.day.cq.workflow.event.WorkflowEvent;
//Sling Imports
/**
* Just a simple DS Component
*/
@Component
@Service
@Properties({
@Property(
label = "Event Topics",
value = { ReplicationAction.EVENT_TOPIC },
description = "[Required] Event Topics this event handler will to respond to.",
name = EventConstants.EVENT_TOPIC,
propertyPrivate = true
),
@Property(
label = "Event Filters",
value = "(" + …Run Code Online (Sandbox Code Playgroud) aem ×2