1 14 package org.jahia.services.files; 15 16 17 import java.io.IOException ; 18 19 import org.jahia.exceptions.JahiaException; 20 import org.jahia.exceptions.JahiaInitializationException; 21 import org.jahia.services.JahiaService; 22 import org.jahia.services.usermanager.JahiaUser; 23 import org.jahia.settings.SettingsBean; 24 25 34 public abstract class JahiaTextFileService extends JahiaService { 35 36 37 38 41 public abstract void init( SettingsBean jSettings ) 42 throws JahiaInitializationException; 43 44 45 48 public abstract String loadBigTextValue(int jahiaID, int pageID, int fieldID, String fieldValue, 49 int versionID, int versionStatus, String languageCode) 50 throws JahiaException; 51 52 53 56 public abstract String saveContents( int jahiaID, int pageID, int fieldID, 57 String fieldValue, 58 int versionID, 59 int versionStatus, 60 String languageCode ) 61 throws JahiaException; 62 63 64 70 public abstract String getFileName( int jahiaID, int pageID, int fieldID, 71 int versionID, 72 int versionStatus, 73 String languageCode) 74 throws JahiaException; 75 76 86 public abstract int copySiteBigText(int siteID, String destFolder) 87 throws IOException ; 88 89 98 public abstract boolean deleteSiteBigText(int siteID, JahiaUser user) 99 throws IOException ; 100 101 106 public abstract boolean renameFile (int jahiaID, int pageID, int fieldID, 107 int versionID, 108 int versionStatus, 109 String languageCode, 110 111 int njahiaID, int npageID, int nfieldID, 112 int nversionID, 113 int nversionStatus, 114 String nlanguageCode) throws Exception ; 115 116 121 public abstract boolean copyFile (int jahiaID, int pageID, int fieldID, 122 int versionID, 123 int versionStatus, 124 String languageCode, 125 126 int njahiaID, int npageID, int nfieldID, 127 int nversionID, 128 int nversionStatus, 129 String nlanguageCode); 130 131 135 public abstract boolean deleteFile (int jahiaID, int pageID, int fieldID, 136 int versionID, 137 int versionStatus, 138 String languageCode); 139 140 } | Popular Tags |