Package com.openkm.sdk4j.definition
Interface BaseRepository
-
- All Known Implementing Classes:
RepositoryImpl
public interface BaseRepositoryBaseRepository- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyAttributes(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes)Copy attributes.HqlQueryResultsexecuteHqlQuery(InputStream is)Execute hql query hql query results.HqlQueryResultsexecuteHqlQuery(String hql)Execute hql query hql query results.ScriptExecutionResultexecuteScript(InputStream is)Execute script script execution result.ScriptExecutionResultexecuteScript(String script)Execute script script execution result.SqlQueryResultsexecuteSqlQuery(InputStream is)Execute sql query sql query results.SqlQueryResultsexecuteSqlQuery(String sql)Execute sql query sql query results.AppVersiongetAppVersion()Gets app version.Map<String,String>getAvailableLocales(String locale)Gets available locales.FoldergetCategoriesFolder()Gets categories folder.List<ChangeLogged>getChangeLog(String nodePath, Calendar modificationsFrom)Gets change log.StringgetClusterUuid()Gets cluster uuid.ConfigurationgetConfiguration(String key)Gets configuration.LicenseInfogetLicenseInfo()Gets license info.FoldergetMailFolder()Gets mail folder.FoldergetMailFolderBase()Gets mail folder base.StringgetNodePath(String uuid)Gets node path.StringgetNodeUuid(String nodePath)Gets node uuid.FoldergetPersonalFolder()Gets personal folder.FoldergetPersonalFolderBase()Gets personal folder base.StringgetRepositoryUuid()Gets repository uuid.FoldergetRootFolder()Gets root folder.StringgetServerTime()Gets server time.FoldergetTemplatesFolder()Gets templates folder.Map<String,String>getTranslations(String lang, String module)Gets translations.FoldergetTrashFolder()Gets trash folder.FoldergetTrashFolderBase()Gets trash folder base.StringgetUpdateMessage()Gets update message.booleanhasNode(String nodeId)Has node boolean.voidpurgeTrash()Purge trash.
-
-
-
Method Detail
-
getRootFolder
Folder getRootFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets root folder.- Returns:
- the root folder
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getTrashFolder
Folder getTrashFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets trash folder.- Returns:
- the trash folder
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getTrashFolderBase
Folder getTrashFolderBase() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets trash folder base.- Returns:
- the trash folder base
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getTemplatesFolder
Folder getTemplatesFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets templates folder.- Returns:
- the templates folder
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPersonalFolder
Folder getPersonalFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets personal folder.- Returns:
- the personal folder
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPersonalFolderBase
Folder getPersonalFolderBase() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets personal folder base.- Returns:
- the personal folder base
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getMailFolder
Folder getMailFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets mail folder.- Returns:
- the mail folder
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getMailFolderBase
Folder getMailFolderBase() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets mail folder base.- Returns:
- the mail folder base
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getCategoriesFolder
Folder getCategoriesFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets categories folder.- Returns:
- the categories folder
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
purgeTrash
void purgeTrash() throws PathNotFoundException, AccessDeniedException, LockException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceExceptionPurge trash.- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionLockException- the lock exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getUpdateMessage
String getUpdateMessage() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets update message.- Returns:
- the update message
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getRepositoryUuid
String getRepositoryUuid() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets repository uuid.- Returns:
- the repository uuid
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
hasNode
boolean hasNode(String nodeId) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Has node boolean.- Parameters:
nodeId- the node id- Returns:
- the boolean
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getNodePath
String getNodePath(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets node path.- Parameters:
uuid- the uuid- Returns:
- the node path
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getNodeUuid
String getNodeUuid(String nodePath) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets node uuid.- Parameters:
nodePath- the node path- Returns:
- the node uuid
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAppVersion
AppVersion getAppVersion() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets app version.- Returns:
- the app version
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
copyAttributes
void copyAttributes(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Copy attributes.- Parameters:
uuid- the uuiddstId- the dst idcategories- the categorieskeywords- the keywordspropertyGroups- the property groupsnotes- the notes- Throws:
ItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUserQuotaExceededException- the user quota exceeded exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executeScript
ScriptExecutionResult executeScript(InputStream is) throws AccessDeniedException, UnknownException, WebserviceException
Execute script script execution result.- Parameters:
is- the is- Returns:
- the script execution result
- Throws:
AccessDeniedException- the access denied exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executeScript
ScriptExecutionResult executeScript(String script) throws AccessDeniedException, UnknownException, WebserviceException, IOException
Execute script script execution result.- Parameters:
script- the script- Returns:
- the script execution result
- Throws:
AccessDeniedException- the access denied exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException- the io exception
-
executeSqlQuery
SqlQueryResults executeSqlQuery(InputStream is) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Execute sql query sql query results.- Parameters:
is- the is- Returns:
- the sql query results
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executeSqlQuery
SqlQueryResults executeSqlQuery(String sql) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException, IOException
Execute sql query sql query results.- Parameters:
sql- the sql- Returns:
- the sql query results
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException- the io exception
-
executeHqlQuery
HqlQueryResults executeHqlQuery(InputStream is) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Execute hql query hql query results.- Parameters:
is- the is- Returns:
- the hql query results
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executeHqlQuery
HqlQueryResults executeHqlQuery(String hql) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException, IOException
Execute hql query hql query results.- Parameters:
hql- the hql- Returns:
- the hql query results
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException- the io exception
-
getTranslations
Map<String,String> getTranslations(String lang, String module) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Gets translations.- Parameters:
lang- the langmodule- the module- Returns:
- the translations
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getConfiguration
Configuration getConfiguration(String key) throws DatabaseException, UnknownException, WebserviceException
Gets configuration.- Parameters:
key- the key- Returns:
- the configuration
- Throws:
DatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChangeLog
List<ChangeLogged> getChangeLog(String nodePath, Calendar modificationsFrom) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
Gets change log.- Parameters:
nodePath- the node pathmodificationsFrom- the modifications from- Returns:
- the change log
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAvailableLocales
Map<String,String> getAvailableLocales(String locale) throws WebserviceException, PathNotFoundException, ParseException, RepositoryException, DatabaseException, UnknownException, AccessDeniedException
Gets available locales.- Parameters:
locale- the locale- Returns:
- the available locales
- Throws:
WebserviceException- the webservice exceptionPathNotFoundException- the path not found exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionAccessDeniedException- the access denied exception
-
getServerTime
String getServerTime() throws UnknownException, WebserviceException
Gets server time.- Returns:
- the server time
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getLicenseInfo
LicenseInfo getLicenseInfo() throws WebserviceException, RepositoryException, UnknownException, AccessDeniedException
Gets license info.- Returns:
- the license info
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionAccessDeniedException- the access denied exception
-
getClusterUuid
String getClusterUuid() throws WebserviceException, RepositoryException, UnknownException
Gets cluster uuid.- Returns:
- the cluster uuid
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionUnknownException- the unknown exception
-
-