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, resourcepublic RepositoryImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Folder getRootFolder() throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepositorygetRootFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetTrashFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetTrashFolderBase in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetTemplatesFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetPersonalFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetPersonalFolderBase in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetMailFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetMailFolderBase in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetThesaurusFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetCategoriesFolder in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorypurgeTrash in interface BaseRepositoryPathNotFoundException - 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
BaseRepositorygetUpdateMessage in interface BaseRepositoryRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic String getRepositoryUuid() throws RepositoryException, DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepositorygetRepositoryUuid in interface BaseRepositoryRepositoryException - 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
BaseRepositoryhasNode in interface BaseRepositorynodeId - 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
BaseRepositorygetNodePath in interface BaseRepositoryuuid - 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
BaseRepositorygetNodeUuid in interface BaseRepositorynodePath - 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
BaseRepositorygetAppVersion in interface BaseRepositoryRepositoryException - 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
BaseRepositorycopyAttributes in interface BaseRepositoryuuid - 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 BaseRepositoryuuid - 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
BaseRepositoryexecuteScript in interface BaseRepositoryis - the isUnknownException - the unknown exceptionWebserviceException - the webservice exceptionAccessDeniedException - the access denied exceptionpublic ScriptExecutionResult executeScript(String script) throws AccessDeniedException, UnknownException, WebserviceException, IOException
BaseRepositoryexecuteScript in interface BaseRepositoryscript - the scriptAccessDeniedException - the access denied exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionIOException - the io exceptionpublic SqlQueryResults executeSqlQuery(InputStream is) throws DatabaseException, UnknownException, WebserviceException, AccessDeniedException
BaseRepositoryexecuteSqlQuery in interface BaseRepositoryis - 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
BaseRepositoryexecuteSqlQuery in interface BaseRepositorysql - 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
BaseRepositoryexecuteHqlQuery in interface BaseRepositoryis - 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
BaseRepositoryexecuteHqlQuery in interface BaseRepositoryhql - 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
BaseRepositorygetTranslations in interface BaseRepositorylang - 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
BaseRepositorygetConfiguration in interface BaseRepositorykey - the keyDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<ChangeLogged> getChangeLog(String nodePath, Calendar modificationsFrom) throws AccessDeniedException, DatabaseException, PathNotFoundException, UnknownException, WebserviceException
BaseRepositorygetChangeLog in interface BaseRepositorynodePath - 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
BaseRepositorygetAvailableLocales in interface BaseRepositorylocale - 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
BaseRepositorygetServerTime in interface BaseRepositoryUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic LicenseInfo getLicenseInfo() throws WebserviceException, RepositoryException, UnknownException, AccessDeniedException
BaseRepositorygetLicenseInfo in interface BaseRepositoryWebserviceException - the webservice exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionAccessDeniedException - the access denied exceptionpublic String getClusterUuid() throws WebserviceException, RepositoryException, UnknownException
BaseRepositorygetClusterUuid in interface BaseRepositoryWebserviceException - the webservice exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionpublic boolean getIsFilePlan()
throws WebserviceException,
RepositoryException,
UnknownException
BaseRepositorygetIsFilePlan in interface BaseRepositoryWebserviceException - the webservice exceptionRepositoryException - the repository exceptionUnknownException - the unknown exceptionCopyright © 2024 Open Knowledge Management System S.L.. All Rights Reserved.