1 14 15 package org.jahia.services.pages; 16 17 import org.jahia.data.JahiaDOMObject; 18 import org.jahia.exceptions.JahiaException; 19 import org.jahia.services.JahiaService; 20 import org.jahia.services.usermanager.JahiaUser; 21 22 import java.util.Enumeration ; 23 import java.util.Vector ; 24 25 26 33 public abstract class JahiaPageTemplateService extends JahiaService { 34 35 51 public abstract JahiaPageDefinition createPageTemplate ( 52 int siteID, 53 String name, 54 String sourcePath, 55 boolean isAvailable, 56 String image, 57 int parentAclID) 58 throws JahiaException; 59 60 61 69 public abstract void deletePageTemplate (int templateID) 70 throws JahiaException; 71 72 73 80 public abstract Vector getAllPageTemplateIDs () 81 throws JahiaException; 82 83 84 94 public abstract JahiaPageDefinition getPageTemplateBySourcePath (int siteID, String path) 95 throws JahiaException; 96 97 98 108 public abstract JahiaPageDefinition lookupPageTemplate (int templateID) 109 throws JahiaException; 110 111 112 123 public abstract JahiaPageDefinition lookupPageTemplateByName (String name, int siteID) 124 throws JahiaException; 125 126 127 138 public abstract Enumeration getPageTemplates (int siteID, boolean availableOnly) 139 throws JahiaException; 140 141 142 154 public abstract Enumeration getPageTemplates (JahiaUser user, int siteID, 155 boolean availableOnly) 156 throws JahiaException; 157 158 159 164 public abstract int getNbPageTemplates () 165 throws JahiaException; 166 167 168 175 public abstract int getNbPageTemplates (int siteID) 176 throws JahiaException; 177 178 179 180 185 public abstract JahiaDOMObject getPageDefsAsDOM (int siteID) 186 throws JahiaException; 187 188 189 194 public abstract JahiaDOMObject getPageDefPropsAsDOM (int siteID) 195 throws JahiaException; 196 197 198 204 public abstract Vector getAclIDs (int siteID) 205 throws JahiaException; 206 207 212 public abstract void updatePageTemplate(JahiaPageDefinition thePageTemplate) 213 throws JahiaException; 214 215 public abstract void patchTemplateWithoutACL () throws JahiaException; 219 220 221 } 222 223 | Popular Tags |