public class RepositoryImpl extends ClientImpl implements BaseRepository, Serializable
Constructor and Description |
---|
RepositoryImpl(String host)
RepositoryImpl
|
Modifier and Type | Method and Description |
---|---|
void |
copyAttributes(String uuid,
String dstId,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes)
Copy attributes.
|
void |
copyAttributes(String uuid,
String dstId,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean wiki)
Deprecated.
As of sdk4j 3.13, replaced by
copyAttributes(String, String, boolean, boolean, boolean, boolean) |
HqlQueryResults |
executeHqlQuery(InputStream is)
Execute hql query hql query results.
|
HqlQueryResults |
executeHqlQuery(String hql)
Execute hql query hql query results.
|
ScriptExecutionResult |
executeScript(InputStream is)
Execute script script execution result.
|
ScriptExecutionResult |
executeScript(String script)
Execute script script execution result.
|
SqlQueryResults |
executeSqlQuery(InputStream is)
Execute sql query sql query results.
|
SqlQueryResults |
executeSqlQuery(String sql)
Execute sql query sql query results.
|
AppVersion |
getAppVersion()
Gets app version.
|
Map<String,String> |
getAvailableLocales(String locale)
Gets available locales.
|
Folder |
getCategoriesFolder()
Gets categories folder.
|
List<ChangeLogged> |
getChangeLog(String nodePath,
Calendar modificationsFrom)
Gets change log.
|
String |
getClusterUuid()
Gets cluster uuid.
|
Configuration |
getConfiguration(String key)
Gets configuration.
|
boolean |
getIsFilePlan()
Gets is file plan.
|
LicenseInfo |
getLicenseInfo()
Gets license info.
|
Folder |
getMailFolder()
Gets mail folder.
|
Folder |
getMailFolderBase()
Gets mail folder base.
|
String |
getNodePath(String uuid)
Gets node path.
|
String |
getNodeUuid(String nodePath)
Gets node uuid.
|
Folder |
getPersonalFolder()
Gets personal folder.
|
Folder |
getPersonalFolderBase()
Gets personal folder base.
|
String |
getRepositoryUuid()
Gets repository uuid.
|
Folder |
getRootFolder()
Gets root folder.
|
String |
getServerTime()
Gets server time.
|
Folder |
getTemplatesFolder()
Gets templates folder.
|
Folder |
getThesaurusFolder()
Gets thesaurus folder.
|
Map<String,String> |
getTranslations(String lang,
String module)
Gets translations.
|
Folder |
getTrashFolder()
Gets trash folder.
|
Folder |
getTrashFolderBase()
Gets trash folder base.
|
String |
getUpdateMessage()
Gets update message.
|
boolean |
hasNode(String nodeId)
Has node boolean.
|
void |
purgeTrash()
Purge trash.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
getClient, resource, resource
public RepositoryImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Folder getRootFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getRootFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getTrashFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getTrashFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getTrashFolderBase() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getTrashFolderBase
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getTemplatesFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getTemplatesFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getPersonalFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getPersonalFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getPersonalFolderBase() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getPersonalFolderBase
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getMailFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getMailFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getMailFolderBase() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getMailFolderBase
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getThesaurusFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getThesaurusFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Folder getCategoriesFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getCategoriesFolder
in interface BaseRepository
PathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic void purgeTrash() throws PathNotFoundException, AccessDeniedException, LockException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseRepository
purgeTrash
in interface BaseRepository
PathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionLockException
- the lock exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic String getUpdateMessage() throws RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getUpdateMessage
in interface BaseRepository
RepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic String getRepositoryUuid() throws RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getRepositoryUuid
in interface BaseRepository
RepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic boolean hasNode(String nodeId) throws RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
hasNode
in interface BaseRepository
nodeId
- the node idRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic String getNodePath(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getNodePath
in interface BaseRepository
uuid
- the uuidPathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic String getNodeUuid(String nodePath) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getNodeUuid
in interface BaseRepository
nodePath
- the node pathPathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic AppVersion getAppVersion() throws RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getAppVersion
in interface BaseRepository
RepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic 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
BaseRepository
copyAttributes
in interface BaseRepository
uuid
- the uuiddstId
- the dst idcategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the notesItemExistsException
- 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@Deprecated public void copyAttributes(String uuid, String dstId, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
copyAttributes(String, String, boolean, boolean, boolean, boolean)
copyAttributes
in interface BaseRepository
uuid
- the uuiddstId
- the dst idcategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the noteswiki
- the wikiItemExistsException
- 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 exceptioncopyAttributes(String, String, boolean, boolean, boolean, boolean)
public ScriptExecutionResult executeScript(InputStream is) throws UnknownException, WebserviceException, AccessDeniedException
BaseRepository
executeScript
in interface BaseRepository
is
- the isUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic ScriptExecutionResult executeScript(String script) throws AccessDeniedException, UnknownException, WebserviceException, IOException
BaseRepository
executeScript
in interface BaseRepository
script
- the scriptAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionIOException
- the io exceptionpublic SqlQueryResults executeSqlQuery(InputStream is) throws DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
executeSqlQuery
in interface BaseRepository
is
- the isDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic SqlQueryResults executeSqlQuery(String sql) throws DatabaseException, UnknownException, WebserviceException, AccessDeniedException, IOException
BaseRepository
executeSqlQuery
in interface BaseRepository
sql
- the sqlDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionIOException
- the io exceptionpublic HqlQueryResults executeHqlQuery(InputStream is) throws DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
executeHqlQuery
in interface BaseRepository
is
- the isDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic HqlQueryResults executeHqlQuery(String hql) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException, IOException
BaseRepository
executeHqlQuery
in interface BaseRepository
hql
- the hqlAccessDeniedException
- the access denied exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionIOException
- the io exceptionpublic Map<String,String> getTranslations(String lang, String module) throws DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepository
getTranslations
in interface BaseRepository
lang
- the langmodule
- the moduleDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionAccessDeniedException
- the access denied exceptionpublic Configuration getConfiguration(String key) throws DatabaseException, UnknownException, WebserviceException
BaseRepository
getConfiguration
in interface BaseRepository
key
- the keyDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<ChangeLogged> getChangeLog(String nodePath, Calendar modificationsFrom) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseRepository
getChangeLog
in interface BaseRepository
nodePath
- the node pathmodificationsFrom
- the modifications fromAccessDeniedException
- the access denied exceptionDatabaseException
- the database exceptionPathNotFoundException
- the path not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Map<String,String> getAvailableLocales(String locale) throws WebserviceException, PathNotFoundException, DatabaseException, UnknownException, AccessDeniedException
BaseRepository
getAvailableLocales
in interface BaseRepository
locale
- the localeWebserviceException
- the webservice exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionAccessDeniedException
- the access denied exceptionpublic String getServerTime() throws UnknownException, WebserviceException
BaseRepository
getServerTime
in interface BaseRepository
UnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic LicenseInfo getLicenseInfo() throws WebserviceException, RepositoryException, UnknownException, AccessDeniedException
BaseRepository
getLicenseInfo
in interface BaseRepository
WebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionUnknownException
- the unknown exceptionAccessDeniedException
- the access denied exceptionpublic String getClusterUuid() throws WebserviceException, RepositoryException, UnknownException
BaseRepository
getClusterUuid
in interface BaseRepository
WebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionUnknownException
- the unknown exceptionpublic boolean getIsFilePlan() throws WebserviceException, RepositoryException, UnknownException
BaseRepository
getIsFilePlan
in interface BaseRepository
WebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionUnknownException
- the unknown exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.