1 package org.jahia.services.sites; 18 19 import org.jahia.data.JahiaDOMObject; 20 import org.jahia.exceptions.JahiaException; 21 import org.jahia.services.JahiaService; 22 23 import java.util.Enumeration ; 24 25 30 public abstract class JahiaSitesService extends JahiaService { 31 32 public static final int ORDER_BY_SERVER_NAME = 1; 33 public static final int ORDER_BY_TITLE = 2; 34 35 36 41 public abstract Enumeration getSites () 42 throws JahiaException; 43 44 45 52 public abstract JahiaSite getSite (int id) 53 throws JahiaException; 54 55 56 63 public abstract JahiaSite getSiteByKey (String siteKey) 64 throws JahiaException; 65 66 77 public abstract JahiaSite getSiteByServerName (String serverName) 78 throws JahiaException; 79 80 87 public abstract JahiaSite getSite (String name) 88 throws JahiaException; 89 90 91 101 public abstract boolean addSite (JahiaSite site) 102 throws JahiaException; 103 104 105 110 public abstract void removeSite (JahiaSite site) 111 throws JahiaException; 112 113 114 119 public abstract void updateSite (JahiaSite site) 120 throws JahiaException; 121 122 123 124 130 public abstract int getNbSites () 131 throws JahiaException; 132 133 139 public abstract void addSiteToDelete (int siteID); 140 141 147 public abstract void removeSiteToDelete (int siteID); 148 149 157 public abstract boolean isSiteToBeDeleted (int siteID); 158 159 167 public abstract JahiaDOMObject getSiteAsDOM (int siteID) throws JahiaException; 168 169 177 public abstract JahiaDOMObject getSitePropsAsDOM (int siteID) throws JahiaException; 178 179 185 public abstract String getProperty (int siteID, String key) throws JahiaException; 186 187 } 188 189 | Popular Tags |