org.outerj.daisy.repository.commonimpl
Class RepositoryImpl

java.lang.Object
  extended byorg.outerj.daisy.repository.commonimpl.RepositoryImpl
All Implemented Interfaces:
org.outerj.daisy.repository.Repository

public class RepositoryImpl
extends java.lang.Object
implements org.outerj.daisy.repository.Repository


Field Summary
protected  AuthenticatedUser user
           
 
Constructor Summary
RepositoryImpl(CommonRepository delegate, AuthenticatedUser user)
           
 
Method Summary
 void addListener(org.outerj.daisy.repository.RepositoryListener listener)
           
 java.lang.Object clone()
           
 org.outerj.daisy.repository.Document createDocument(java.lang.String name, long documentTypeId)
           
 org.outerj.daisy.repository.Document createDocument(java.lang.String name, long documentTypeId, long branchId, long languageId)
           
 org.outerj.daisy.repository.Document createDocument(java.lang.String name, java.lang.String documentTypeName)
           
 org.outerj.daisy.repository.Document createDocument(java.lang.String name, java.lang.String documentTypeName, java.lang.String branchName, java.lang.String languageName)
           
 org.outerj.daisy.repository.Document createVariant(long documentId, long startBranchId, long startLanguageId, long startVersionId, long newBranchId, long newLanguageId, boolean copyContent)
           
 org.outerj.daisy.repository.Document createVariant(long documentId, java.lang.String startBranchName, java.lang.String startLanguageName, long startVersionId, java.lang.String newBranchName, java.lang.String newLanguageName, boolean copyContent)
           
 void deleteDocument(long documentId)
           
 void deleteVariant(long documentId, long branchId, long languageId)
           
 void deleteVariant(org.outerj.daisy.repository.VariantKey variantKey)
           
 org.outerj.daisy.repository.acl.AccessManager getAccessManager()
           
 long[] getActiveRoleIds()
           
 java.lang.String[] getActiveRolesDisplayNames()
           
 long[] getAvailableRoles()
           
 org.outerj.daisy.repository.AvailableVariants getAvailableVariants(long documentId)
           
 org.outerj.daisy.repository.CollectionManager getCollectionManager()
           
 org.outerj.daisy.repository.comment.CommentManager getCommentManager()
           
protected  CommonRepository getCommonRepository()
           
 org.outerj.daisy.repository.Document getDocument(long documentId, boolean updateable)
           
 org.outerj.daisy.repository.Document getDocument(long documentId, long branchId, long languageId, boolean updateable)
           
 org.outerj.daisy.repository.Document getDocument(long documentId, java.lang.String branchName, java.lang.String languageName, boolean updateable)
           
 org.outerj.daisy.repository.Document getDocument(org.outerj.daisy.repository.VariantKey key, boolean updateable)
           
 java.lang.Object getExtension(java.lang.String name)
           
 java.io.InputStream getPartData(long documentId, long versionId, long partTypeId)
           
 java.io.InputStream getPartData(long documentId, long branchId, long languageId, long versionId, long partTypeId)
           
 org.outerj.daisy.repository.query.QueryManager getQueryManager()
           
 org.outerj.daisy.repository.schema.RepositorySchema getRepositorySchema()
           
protected  AuthenticatedUser getUser()
           
 java.lang.String getUserDisplayName()
           
 long getUserId()
           
 org.outerx.daisy.x10.UserInfoDocument getUserInfoAsXml()
           
 java.lang.String getUserLogin()
           
 org.outerj.daisy.repository.user.UserManager getUserManager()
           
 org.outerj.daisy.repository.variant.VariantManager getVariantManager()
           
 boolean isInRole(long roleId)
           
 boolean isInRole(java.lang.String roleName)
           
 void removeListener(org.outerj.daisy.repository.RepositoryListener listener)
           
 void setActiveRoleIds(long[] roleIds)
           
 void switchRole(long roleId)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

protected final AuthenticatedUser user
Constructor Detail

RepositoryImpl

public RepositoryImpl(CommonRepository delegate,
                      AuthenticatedUser user)
Method Detail

getRepositorySchema

public org.outerj.daisy.repository.schema.RepositorySchema getRepositorySchema()
Specified by:
getRepositorySchema in interface org.outerj.daisy.repository.Repository

getAccessManager

public org.outerj.daisy.repository.acl.AccessManager getAccessManager()
Specified by:
getAccessManager in interface org.outerj.daisy.repository.Repository

getQueryManager

public org.outerj.daisy.repository.query.QueryManager getQueryManager()
Specified by:
getQueryManager in interface org.outerj.daisy.repository.Repository

getCommentManager

public org.outerj.daisy.repository.comment.CommentManager getCommentManager()
Specified by:
getCommentManager in interface org.outerj.daisy.repository.Repository

getVariantManager

public org.outerj.daisy.repository.variant.VariantManager getVariantManager()
Specified by:
getVariantManager in interface org.outerj.daisy.repository.Repository

createDocument

public org.outerj.daisy.repository.Document createDocument(java.lang.String name,
                                                           long documentTypeId,
                                                           long branchId,
                                                           long languageId)
Specified by:
createDocument in interface org.outerj.daisy.repository.Repository

createDocument

public org.outerj.daisy.repository.Document createDocument(java.lang.String name,
                                                           java.lang.String documentTypeName,
                                                           java.lang.String branchName,
                                                           java.lang.String languageName)
Specified by:
createDocument in interface org.outerj.daisy.repository.Repository

createDocument

public org.outerj.daisy.repository.Document createDocument(java.lang.String name,
                                                           long documentTypeId)
Specified by:
createDocument in interface org.outerj.daisy.repository.Repository

createDocument

public org.outerj.daisy.repository.Document createDocument(java.lang.String name,
                                                           java.lang.String documentTypeName)
Specified by:
createDocument in interface org.outerj.daisy.repository.Repository

createVariant

public org.outerj.daisy.repository.Document createVariant(long documentId,
                                                          long startBranchId,
                                                          long startLanguageId,
                                                          long startVersionId,
                                                          long newBranchId,
                                                          long newLanguageId,
                                                          boolean copyContent)
                                                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
createVariant in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

createVariant

public org.outerj.daisy.repository.Document createVariant(long documentId,
                                                          java.lang.String startBranchName,
                                                          java.lang.String startLanguageName,
                                                          long startVersionId,
                                                          java.lang.String newBranchName,
                                                          java.lang.String newLanguageName,
                                                          boolean copyContent)
                                                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
createVariant in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getDocument

public org.outerj.daisy.repository.Document getDocument(long documentId,
                                                        long branchId,
                                                        long languageId,
                                                        boolean updateable)
                                                 throws org.outerj.daisy.repository.RepositoryException
Specified by:
getDocument in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getDocument

public org.outerj.daisy.repository.Document getDocument(long documentId,
                                                        java.lang.String branchName,
                                                        java.lang.String languageName,
                                                        boolean updateable)
                                                 throws org.outerj.daisy.repository.RepositoryException
Specified by:
getDocument in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getDocument

public org.outerj.daisy.repository.Document getDocument(org.outerj.daisy.repository.VariantKey key,
                                                        boolean updateable)
                                                 throws org.outerj.daisy.repository.RepositoryException
Specified by:
getDocument in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getDocument

public org.outerj.daisy.repository.Document getDocument(long documentId,
                                                        boolean updateable)
                                                 throws org.outerj.daisy.repository.RepositoryException
Specified by:
getDocument in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getAvailableVariants

public org.outerj.daisy.repository.AvailableVariants getAvailableVariants(long documentId)
                                                                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAvailableVariants in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

deleteDocument

public void deleteDocument(long documentId)
                    throws org.outerj.daisy.repository.RepositoryException
Specified by:
deleteDocument in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

deleteVariant

public void deleteVariant(long documentId,
                          long branchId,
                          long languageId)
                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
deleteVariant in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

deleteVariant

public void deleteVariant(org.outerj.daisy.repository.VariantKey variantKey)
                   throws org.outerj.daisy.repository.RepositoryException
Specified by:
deleteVariant in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getPartData

public java.io.InputStream getPartData(long documentId,
                                       long branchId,
                                       long languageId,
                                       long versionId,
                                       long partTypeId)
                                throws org.outerj.daisy.repository.RepositoryException
Specified by:
getPartData in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getPartData

public java.io.InputStream getPartData(long documentId,
                                       long versionId,
                                       long partTypeId)
                                throws org.outerj.daisy.repository.RepositoryException
Specified by:
getPartData in interface org.outerj.daisy.repository.Repository
Throws:
org.outerj.daisy.repository.RepositoryException

getCollectionManager

public org.outerj.daisy.repository.CollectionManager getCollectionManager()
Specified by:
getCollectionManager in interface org.outerj.daisy.repository.Repository

getUserId

public long getUserId()
Specified by:
getUserId in interface org.outerj.daisy.repository.Repository

getActiveRoleIds

public long[] getActiveRoleIds()
Specified by:
getActiveRoleIds in interface org.outerj.daisy.repository.Repository

isInRole

public boolean isInRole(long roleId)
Specified by:
isInRole in interface org.outerj.daisy.repository.Repository

isInRole

public boolean isInRole(java.lang.String roleName)
Specified by:
isInRole in interface org.outerj.daisy.repository.Repository

getUserDisplayName

public java.lang.String getUserDisplayName()
Specified by:
getUserDisplayName in interface org.outerj.daisy.repository.Repository

getUserLogin

public java.lang.String getUserLogin()
Specified by:
getUserLogin in interface org.outerj.daisy.repository.Repository

getActiveRolesDisplayNames

public java.lang.String[] getActiveRolesDisplayNames()
Specified by:
getActiveRolesDisplayNames in interface org.outerj.daisy.repository.Repository

getAvailableRoles

public long[] getAvailableRoles()
Specified by:
getAvailableRoles in interface org.outerj.daisy.repository.Repository

switchRole

public void switchRole(long roleId)
Specified by:
switchRole in interface org.outerj.daisy.repository.Repository

setActiveRoleIds

public void setActiveRoleIds(long[] roleIds)
Specified by:
setActiveRoleIds in interface org.outerj.daisy.repository.Repository

getUserInfoAsXml

public org.outerx.daisy.x10.UserInfoDocument getUserInfoAsXml()
Specified by:
getUserInfoAsXml in interface org.outerj.daisy.repository.Repository

getUser

protected AuthenticatedUser getUser()

getCommonRepository

protected CommonRepository getCommonRepository()

getUserManager

public org.outerj.daisy.repository.user.UserManager getUserManager()
Specified by:
getUserManager in interface org.outerj.daisy.repository.Repository

addListener

public void addListener(org.outerj.daisy.repository.RepositoryListener listener)
Specified by:
addListener in interface org.outerj.daisy.repository.Repository

removeListener

public void removeListener(org.outerj.daisy.repository.RepositoryListener listener)
Specified by:
removeListener in interface org.outerj.daisy.repository.Repository

getExtension

public java.lang.Object getExtension(java.lang.String name)
Specified by:
getExtension in interface org.outerj.daisy.repository.Repository

clone

public java.lang.Object clone()


Copyright © -2005 . All Rights Reserved.