📄 jahiatextfileservice.java
字号:
//// Interface JahiaTextFileService// EV 18.11.2000//// init()// composeJahiaFileName()// loadContents()// saveContents()// fileExists()// readFile()// writeFile()//package org.jahia.services.files;import java.io.*; // File access methodsimport java.util.*; // Vectorimport org.jahia.utils.*; // JahiaConsoleimport org.jahia.settings.*; // JahiaPrivateSettingsimport org.jahia.services.*; // JahiaService Interfaceimport org.jahia.services.usermanager.*;import org.jahia.exceptions.*; // JahiaService Interface/** * Interface JahiaTextFileService */public abstract class JahiaTextFileService extends JahiaService { /*** * init */ public abstract void init( JahiaPrivateSettings jSettings ) throws JahiaInitializationException; /*** * loadContents */ public abstract String loadContents( int jahiaID, int pageID, int fieldID, String fieldValue ) throws JahiaException; /*** * saveContents */ public abstract String saveContents( int jahiaID, int pageID, int fieldID, String fieldValue ) throws JahiaException; /*** * getFileName * YG 29.08.2001 * returns the file name * */ public abstract String getFileName( int jahiaID, int pageID, int fieldID) throws JahiaException; //-------------------------------------------------------------------------- /** * Copy all big text of a site in a gived folder * This folder must be a valid folder * * @param int siteID the id of the requested site * @param String destFolder the destination Folder * @return the number of duplicated files, -1 on error * @author NK */ public abstract int copySiteBigText(int siteID, String destFolder) throws IOException; //-------------------------------------------------------------------------- /** * Delete all big text files of a site * * @param int siteID the id of the requested site * @param User the user must be a root user * @return false on error * @author NK */ public abstract boolean deleteSiteBigText(int siteID, JahiaUser user) throws IOException; } // end JahiaTextFileService
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -