Package com.openkm.sdk4j.definition
Interface BaseRepository
- All Known Implementing Classes:
RepositoryImpl
public interface BaseRepository
BaseRepository
- Author:
- sochoa
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAttributes(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes) Copy attributes.Execute hql query hql query results.executeHqlQuery(String hql) Execute hql query hql query results.Execute script script execution result.executeScript(String script) Execute script script execution result.Execute sql query sql query results.executeSqlQuery(String sql) Execute sql query sql query results.Gets app version.getAvailableLocales(String locale) Gets available locales.Gets categories folder.getChangeLog(String nodePath, Calendar modificationsFrom) Gets change log.Gets cluster uuid.getConfiguration(String key) Gets configuration.Gets license info.Gets mail folder.Gets mail folder base.getNodePath(String uuid) Gets node path.getNodeUuid(String nodePath) Gets node uuid.Gets personal folder.Gets personal folder base.Gets repository uuid.Gets root folder.Gets server time.Gets templates folder.getTranslations(String lang, String module) Gets translations.Gets trash folder.Gets trash folder base.Gets update message.booleanHas node boolean.voidPurge trash.
-
Method Details
-
getRootFolder
Folder getRootFolder() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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, WebserviceExceptionGets 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
Gets server time.- Returns:
- the server time
- Throws:
UnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getLicenseInfo
LicenseInfo getLicenseInfo() throws WebserviceException, RepositoryException, UnknownException, AccessDeniedExceptionGets license info.- Returns:
- the license info
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionAccessDeniedException- the access denied exception
-
getClusterUuid
Gets cluster uuid.- Returns:
- the cluster uuid
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionUnknownException- the unknown exception
-