1 7 8 package org.jboss.portal.server; 9 10 import org.jboss.portal.common.MediaType; 11 import org.jboss.portal.server.metadata.LayoutRegistrationMetaData; 12 import org.jboss.portal.server.theme.LayoutException; 13 import org.jboss.portal.server.theme.PortalLayout; 14 import org.jboss.portal.server.theme.PortalRenderSet; 15 import org.jboss.portal.server.theme.strategy.AbstractLayoutStrategy; 16 import org.jboss.portal.server.theme.strategy.LayoutStrategy; 17 18 24 public interface LayoutServer 25 { 26 35 void addLayout(LayoutRegistrationMetaData metaData) throws LayoutException; 36 37 44 void setDefaultLayout(String name) throws LayoutException; 45 46 59 PortalLayout getLayout(ServerRegistrationID id, boolean defaultOnNull); 60 61 74 PortalLayout getLayout(String name, boolean defaultOnNull); 75 76 85 void removeLayouts(String appName) throws LayoutException; 86 87 93 void addStrategy(AbstractLayoutStrategy strategy); 94 95 110 public LayoutStrategy getStrategy(PortalLayout layout, MediaType mediaType); 111 112 122 public LayoutStrategy getStrategy(String strategyName, MediaType mediaType); 123 124 133 void removeStrategies(String appName) throws LayoutException; 134 135 141 void addRenderSet(PortalRenderSet renderSet); 142 143 155 PortalRenderSet getRenderSet(PortalLayout layout, MediaType mediaType); 156 157 169 PortalRenderSet getRenderSet(String renderSetName, MediaType mediaType); 170 171 180 void removeRenderSets(String appName) throws LayoutException; 181 } 182 | Popular Tags |