public class RemoteJackRabbitFileStore
extends com.kdgcsoft.power.filestore.AbstractFileStore
implements com.kdgcsoft.power.filestore.FileStore
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
DEFAULT_PASS |
protected static String |
DEFAULT_USER |
protected static org.slf4j.Logger |
logger |
protected String |
password |
protected javax.jcr.Repository |
repository |
protected String |
rootNodeName |
protected String |
user |
| 构造器和说明 |
|---|
RemoteJackRabbitFileStore(String url)
使用缺省账号,创建一个远程JackRabbit仓库的连接,实例名采用缺省名。
|
RemoteJackRabbitFileStore(String url,
String storeName)
用指定的命名,创建一个连接远程JackRabbit仓库的仓库实例,使用UUID作为文件Key。
|
RemoteJackRabbitFileStore(String url,
String userName,
String password)
用指定的命名和访问账号,创建一个远程JackRabbit仓库的连接。
|
RemoteJackRabbitFileStore(String url,
String userName,
String password,
com.kdgcsoft.power.filestore.strategy.IKeyStrategy keyStrategy)
用指定的命名和访问账号,指定的KEY生成策略,创建一个远程JackRabbit仓库的连接。
|
RemoteJackRabbitFileStore(String url,
String storeName,
String userName,
String password)
用指定的命名和访问账号,创建一个远程JackRabbit仓库的连接。
|
RemoteJackRabbitFileStore(String url,
String storeName,
String userName,
String password,
com.kdgcsoft.power.filestore.strategy.IKeyStrategy keyStrategy)
用指定的命名和访问账号,创建一个远程JackRabbit仓库的连接
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected javax.jcr.Session |
CreateSession() |
boolean |
deleteFile(String arg0) |
boolean |
exist(String arg0) |
InputStream |
getFileAsStream(String arg0) |
com.kdgcsoft.power.filestore.FileInfo |
getFileInfo(String arg0) |
long |
getFileSize(String arg0) |
protected void |
init(javax.jcr.Repository arg0,
String arg1) |
protected void |
init(javax.jcr.Repository arg0,
String arg1,
com.kdgcsoft.power.filestore.strategy.IKeyStrategy arg2) |
protected void |
init(javax.jcr.Repository arg0,
String arg1,
String arg2,
String arg3) |
protected void |
init(javax.jcr.Repository arg0,
String arg1,
String arg2,
String arg3,
com.kdgcsoft.power.filestore.strategy.IKeyStrategy arg4) |
com.kdgcsoft.power.filestore.FileInfo |
putFile(File arg0,
String arg1) |
com.kdgcsoft.power.filestore.FileInfo |
putFileAsStream(InputStream arg0,
String arg1) |
List<String> |
searchFullText(String arg0) |
Map<String,String> |
searchFullTextWithExcerpt(String arg0) |
void |
setLoginAccount(String arg0,
String arg1) |
void |
shutdown() |
boolean |
supportFullTextSearch() |
protected static org.slf4j.Logger logger
protected javax.jcr.Repository repository
protected String rootNodeName
protected String user
protected String password
public RemoteJackRabbitFileStore(String url) throws com.kdgcsoft.power.filestore.FileStoreException
url - 必须。远程仓库的URL,例如http://localhost:8082/rmi。使用UUID作为文件Key。com.kdgcsoft.power.filestore.FileStoreException - 存储库异常public RemoteJackRabbitFileStore(String url, String storeName) throws com.kdgcsoft.power.filestore.FileStoreException
url - 必须。远程仓库的URL,例如http://localhost:8082/rmi。storeName - 必须。给仓库起个名字,后面需要根据这个名字来获取仓库实例。该名字也会成为仓库的根节点目录名。
文字中不能含有特殊字符如斜杠等。com.kdgcsoft.power.filestore.FileStoreException - 存储库异常public RemoteJackRabbitFileStore(String url, String userName, String password) throws com.kdgcsoft.power.filestore.FileStoreException
url - 必须。远程仓库的URL,例如http://localhost:8082/rmi。userName - 用于访问仓库的用户名。password - 用于访问仓库的密码。注意用户名和密码的设置是在JackRabbit的配置文件中,这里设置的只能用于访问仓库,不能用于创建仓库账户。com.kdgcsoft.power.filestore.FileStoreException - 存储库异常public RemoteJackRabbitFileStore(String url, String userName, String password, com.kdgcsoft.power.filestore.strategy.IKeyStrategy keyStrategy) throws com.kdgcsoft.power.filestore.FileStoreException
url - 必须。远程仓库的URL,例如http://localhost:8082/rmi。userName - 用于访问仓库的用户名。password - 用于访问仓库的密码。注意用户名和密码的设置是在JackRabbit的配置文件中,这里设置的只能用于访问仓库,不能用于创建仓库账户。keyStrategy - 希望使用的文件Key策略com.kdgcsoft.power.filestore.FileStoreException - 存储库异常public RemoteJackRabbitFileStore(String url, String storeName, String userName, String password) throws com.kdgcsoft.power.filestore.FileStoreException
url - 必须。远程仓库的URL,例如http://localhost:8082/rmi。storeName - 给仓库实例起的名字,后面需要根据这个名字来获取仓库实例。该名字也会成为仓库的根节点目录名。 文字中不能含有特殊字符如斜杠等。userName - 用于访问仓库的用户名。password - 用于访问仓库的密码。注意用户名和密码的设置是在JackRabbit的配置文件中,这里设置的只能用于访问仓库,不能用于创建仓库账户。com.kdgcsoft.power.filestore.FileStoreException - 存储库异常public RemoteJackRabbitFileStore(String url, String storeName, String userName, String password, com.kdgcsoft.power.filestore.strategy.IKeyStrategy keyStrategy) throws com.kdgcsoft.power.filestore.FileStoreException
url - 必须。远程仓库的URL,例如http://localhost:8082/rmi。storeName - 给仓库实例起的名字,后面需要根据这个名字来获取仓库实例。该名字也会成为仓库的根节点目录名。 文字中不能含有特殊字符如斜杠等。userName - 用于访问仓库的用户名。password - 用于访问仓库的密码。注意用户名和密码的设置是在JackRabbit的配置文件中,这里设置的只能用于访问仓库,不能用于创建仓库账户。keyStrategy - 希望使用的文件Key策略com.kdgcsoft.power.filestore.FileStoreException - 存储库异常public void shutdown()
shutdown 在接口中 com.kdgcsoft.power.filestore.FileStoreprotected void init(javax.jcr.Repository arg0,
String arg1)
throws com.kdgcsoft.power.filestore.FileStoreException
com.kdgcsoft.power.filestore.FileStoreExceptionprotected void init(javax.jcr.Repository arg0,
String arg1,
com.kdgcsoft.power.filestore.strategy.IKeyStrategy arg2)
throws com.kdgcsoft.power.filestore.FileStoreException
com.kdgcsoft.power.filestore.FileStoreExceptionprotected void init(javax.jcr.Repository arg0,
String arg1,
String arg2,
String arg3)
throws com.kdgcsoft.power.filestore.FileStoreException
com.kdgcsoft.power.filestore.FileStoreExceptionprotected void init(javax.jcr.Repository arg0,
String arg1,
String arg2,
String arg3,
com.kdgcsoft.power.filestore.strategy.IKeyStrategy arg4)
throws com.kdgcsoft.power.filestore.FileStoreException
com.kdgcsoft.power.filestore.FileStoreExceptionpublic void setLoginAccount(String arg0, String arg1)
setLoginAccount 在接口中 com.kdgcsoft.power.filestore.FileStoreprotected javax.jcr.Session CreateSession()
throws com.kdgcsoft.power.filestore.FileStoreException
com.kdgcsoft.power.filestore.FileStoreExceptionpublic com.kdgcsoft.power.filestore.FileInfo putFile(File arg0, String arg1) throws com.kdgcsoft.power.filestore.FileStoreException
putFile 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic com.kdgcsoft.power.filestore.FileInfo putFileAsStream(InputStream arg0, String arg1) throws com.kdgcsoft.power.filestore.FileStoreException
putFileAsStream 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic com.kdgcsoft.power.filestore.FileInfo getFileInfo(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
getFileInfo 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic InputStream getFileAsStream(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
getFileAsStream 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic long getFileSize(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
getFileSize 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic boolean exist(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
exist 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic boolean deleteFile(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
deleteFile 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic List<String> searchFullText(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
searchFullText 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic Map<String,String> searchFullTextWithExcerpt(String arg0) throws com.kdgcsoft.power.filestore.FileStoreException
searchFullTextWithExcerpt 在接口中 com.kdgcsoft.power.filestore.FileStorecom.kdgcsoft.power.filestore.FileStoreExceptionpublic boolean supportFullTextSearch()
supportFullTextSearch 在接口中 com.kdgcsoft.power.filestore.FileStoreCopyright © 2019. All rights reserved.