org.outerj.daisy.repository.commonimpl.acl
Class AccessManagerImpl

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.acl.AccessManagerImpl
All Implemented Interfaces:
org.outerj.daisy.repository.acl.AccessManager

public class AccessManagerImpl
extends java.lang.Object
implements org.outerj.daisy.repository.acl.AccessManager


Constructor Summary
AccessManagerImpl(CommonAccessManager delegate, AuthenticatedUser user)
           
 
Method Summary
 void copyLiveToStaging()
           
 void copyStagingToLive()
           
 org.outerj.daisy.repository.VariantKey[] filterDocuments(org.outerj.daisy.repository.VariantKey[] variantKeys)
           
 org.outerj.daisy.repository.VariantKey[] filterDocuments(org.outerj.daisy.repository.VariantKey[] variantKeys, org.outerj.daisy.repository.acl.AclPermission permission)
           
 long[] filterDocumentTypes(long[] documentTypeIds, long collectionId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(org.outerj.daisy.repository.Document document)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, org.outerj.daisy.repository.Document document)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, long documentId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, long documentId, long branchId, long languageId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, org.outerj.daisy.repository.VariantKey key)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, org.outerj.daisy.repository.Document document)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, long documentId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, long documentId, long branchId, long languageId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, org.outerj.daisy.repository.VariantKey key)
           
 org.outerj.daisy.repository.acl.Acl getLiveAcl()
           
 org.outerj.daisy.repository.acl.Acl getStagingAcl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessManagerImpl

public AccessManagerImpl(CommonAccessManager delegate,
                         AuthenticatedUser user)
Method Detail

getLiveAcl

public org.outerj.daisy.repository.acl.Acl getLiveAcl()
                                               throws org.outerj.daisy.repository.RepositoryException
Specified by:
getLiveAcl in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getStagingAcl

public org.outerj.daisy.repository.acl.Acl getStagingAcl()
                                                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
getStagingAcl in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

copyStagingToLive

public void copyStagingToLive()
                       throws org.outerj.daisy.repository.RepositoryException
Specified by:
copyStagingToLive in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

copyLiveToStaging

public void copyLiveToStaging()
                       throws org.outerj.daisy.repository.RepositoryException
Specified by:
copyLiveToStaging in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfo

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(org.outerj.daisy.repository.Document document)
                                                         throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfo in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnLive

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId,
                                                                      long[] roleIds,
                                                                      long documentId)
                                                               throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnLive in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnStaging

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId,
                                                                         long[] roleIds,
                                                                         long documentId)
                                                                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnStaging in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnLive

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId,
                                                                      long[] roleIds,
                                                                      long documentId,
                                                                      long branchId,
                                                                      long languageId)
                                                               throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnLive in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnLive

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId,
                                                                      long[] roleIds,
                                                                      org.outerj.daisy.repository.VariantKey key)
                                                               throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnLive in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnStaging

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId,
                                                                         long[] roleIds,
                                                                         long documentId,
                                                                         long branchId,
                                                                         long languageId)
                                                                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnStaging in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnStaging

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId,
                                                                         long[] roleIds,
                                                                         org.outerj.daisy.repository.VariantKey key)
                                                                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnStaging in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnLive

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnLive(long userId,
                                                                      long[] roleIds,
                                                                      org.outerj.daisy.repository.Document document)
                                                               throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnLive in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfoOnStaging

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfoOnStaging(long userId,
                                                                         long[] roleIds,
                                                                         org.outerj.daisy.repository.Document document)
                                                                  throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfoOnStaging in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

filterDocumentTypes

public long[] filterDocumentTypes(long[] documentTypeIds,
                                  long collectionId)
                           throws org.outerj.daisy.repository.RepositoryException
Specified by:
filterDocumentTypes in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

filterDocuments

public org.outerj.daisy.repository.VariantKey[] filterDocuments(org.outerj.daisy.repository.VariantKey[] variantKeys)
                                                         throws org.outerj.daisy.repository.RepositoryException
Specified by:
filterDocuments in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException

filterDocuments

public org.outerj.daisy.repository.VariantKey[] filterDocuments(org.outerj.daisy.repository.VariantKey[] variantKeys,
                                                                org.outerj.daisy.repository.acl.AclPermission permission)
                                                         throws org.outerj.daisy.repository.RepositoryException
Specified by:
filterDocuments in interface org.outerj.daisy.repository.acl.AccessManager
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2012 . All Rights Reserved.