1 23 24 package org.infoglue.deliver.controllers.kernel; 25 26 import org.exolab.castor.jdo.Database; 27 import org.infoglue.cms.exception.SystemException; 28 import org.infoglue.cms.security.InfoGluePrincipal; 29 import org.infoglue.cms.util.CmsPropertyHandler; 30 import org.infoglue.deliver.applications.databeans.DeliveryContext; 31 import org.infoglue.deliver.controllers.kernel.impl.simple.BasicURLComposer; 32 33 40 41 public abstract class URLComposer 42 { 43 44 public static URLComposer getURLComposer() 45 { 46 String className = CmsPropertyHandler.getURLComposerClass(); 47 if (className == null || className.trim().equals("")) 48 return new BasicURLComposer(); 49 50 return null; 52 } 53 54 55 public abstract String composeDigitalAssetUrl(String dnsName, String filename, DeliveryContext deliveryContext); 56 57 public abstract String composePageUrl(Database db, InfoGluePrincipal infoGluePrincipal, Integer siteNodeId, Integer languageId, Integer contentId, DeliveryContext deliveryContext) throws SystemException; 58 59 public abstract String composePageUrlAfterLanguageChange(Database db, InfoGluePrincipal infoGluePrincipal, Integer siteNodeId, Integer languageId, Integer contentId, DeliveryContext deliveryContext) throws SystemException; 60 61 public abstract String composePageBaseUrl(String dnsName); 62 63 } | Popular Tags |