| java.lang.Object org.outerj.daisy.repository.commonimpl.CommonRepository
All known Subclasses: org.outerj.daisy.repository.clientimpl.RemoteCommonRepository, org.outerj.daisy.repository.serverimpl.LocalCommonRepository,
CommonRepository | abstract public class CommonRepository (Code) | | |
Constructor Summary | |
public | CommonRepository(RepositoryStrategy repositoryStrategy, DocumentStrategy documentStrategy, SchemaStrategy schemaStrategy, AclStrategy aclStrategy, UserManagementStrategy userManagementStrategy, VariantStrategy variantStrategy, CollectionStrategy collectionStrategy, CommentStrategy commentStrategy, Map<String, ExtensionProvider> extensions, AuthenticatedUser cacheUser) |
Method Summary | |
public void | addListener(RepositoryListener listener) | public DocumentImpl | createDocument(String name, long documentTypeId, long branchId, long languageId, AuthenticatedUser user) | public DocumentImpl | createDocument(String name, String documentTypeName, String branchName, String languageName, AuthenticatedUser user) | public Document | createVariant(DocId docId, long startBranchId, long startLanguageId, long startVersionId, long newBranchId, long newLanguageId, boolean copyContent, AuthenticatedUser user) | public Document | createVariant(DocId docId, String startBranchName, String startLanguageName, long startVersionId, String newBranchName, String newLanguageName, boolean copyContent, AuthenticatedUser user) | public void | deleteDocument(DocId docId, AuthenticatedUser user) | public void | deleteVariant(DocId docId, long branchId, long languageId, AuthenticatedUser user) | public void | fireRepositoryEvent(RepositoryEventType type, Object id, long updateCount) | public CommonAccessManager | getAccessManager() | public AvailableVariants | getAvailableVariants(DocId docId, AuthenticatedUser user) Note: it is important that all actual retrievals of AvailableVariants go through this method, as this method
is overrided in the local implementation to get objects from the cache. | public InputStream | getBlob(DocId docId, long branchId, long languageId, long versionId, long partTypeId, AuthenticatedUser user) | public String | getClientVersion(AuthenticatedUser user) | public CommonCollectionManager | getCollectionManager() | public CommonCommentManager | getCommentManager() | public Document | getDocument(String documentId, long branchId, long languageId, boolean updateable, AuthenticatedUser user) | public Document | getDocument(DocId docId, long branchId, long languageId, boolean updateable, AuthenticatedUser user) Note: it is important that all actual document retrievals go through this method, as this method
is overrided in the local implementation to get objects from the cache. | public Document | getDocument(DocId docId, String branchName, String languageName, boolean updateable, AuthenticatedUser user) | public ExtensionProvider | getExtensionProvider(String extensionName) | public CommonNamespaceManager | getNamespaceManager() | abstract public QueryManager | getQueryManager(AuthenticatedUser user) | public CommonRepositorySchema | getRepositorySchema() | public String | getServerVersion(AuthenticatedUser user) | public CommonUserManager | getUserManager() | public CommonVariantManager | getVariantManager() | public String | normalizeDocumentId(String documentId) | public void | removeListener(RepositoryListener listener) |
CommonRepository | public CommonRepository(RepositoryStrategy repositoryStrategy, DocumentStrategy documentStrategy, SchemaStrategy schemaStrategy, AclStrategy aclStrategy, UserManagementStrategy userManagementStrategy, VariantStrategy variantStrategy, CollectionStrategy collectionStrategy, CommentStrategy commentStrategy, Map<String, ExtensionProvider> extensions, AuthenticatedUser cacheUser)(Code) | | |
getDocument | public Document getDocument(DocId docId, long branchId, long languageId, boolean updateable, AuthenticatedUser user) throws RepositoryException(Code) | | Note: it is important that all actual document retrievals go through this method, as this method
is overrided in the local implementation to get objects from the cache.
|
|
|