org.outerj.daisy.repository.clientimpl.acl
Class RemoteAclStrategy

java.lang.Object
  extended by org.outerj.daisy.repository.clientimpl.infrastructure.AbstractRemoteStrategy
      extended by org.outerj.daisy.repository.clientimpl.acl.RemoteAclStrategy
All Implemented Interfaces:
org.outerj.daisy.repository.commonimpl.acl.AclStrategy

public class RemoteAclStrategy
extends AbstractRemoteStrategy
implements org.outerj.daisy.repository.commonimpl.acl.AclStrategy


Field Summary
 
Fields inherited from class org.outerj.daisy.repository.clientimpl.infrastructure.AbstractRemoteStrategy
context
 
Fields inherited from interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
LIVE_ACL_ID, STAGING_ACL_ID
 
Constructor Summary
RemoteAclStrategy(RemoteRepositoryManager.Context context)
           
 
Method Summary
 void copyLiveToStaging(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 void copyStagingToLive(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 org.outerj.daisy.repository.VariantKey[] filterDocuments(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user, org.outerj.daisy.repository.VariantKey[] variantKeys, org.outerj.daisy.repository.acl.AclPermission permission)
           
 long[] filterDocumentTypes(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user, long[] documentTypeIds, long collectionId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user, long id, long userId, long[] roleIds, org.outerj.daisy.repository.Document document)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user, long id, long userId, long[] roleIds, long documentId, long branchId, long languageId)
           
 org.outerj.daisy.repository.commonimpl.acl.AclImpl loadAcl(long id, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
           
 void storeAcl(org.outerj.daisy.repository.commonimpl.acl.AclImpl acl)
           
 
Methods inherited from class org.outerj.daisy.repository.clientimpl.infrastructure.AbstractRemoteStrategy
encodeNameForUseInPath, getBranchLangParams, getClient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteAclStrategy

public RemoteAclStrategy(RemoteRepositoryManager.Context context)
Method Detail

loadAcl

public org.outerj.daisy.repository.commonimpl.acl.AclImpl loadAcl(long id,
                                                                  org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                                                           throws org.outerj.daisy.repository.RepositoryException
Specified by:
loadAcl in interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

storeAcl

public void storeAcl(org.outerj.daisy.repository.commonimpl.acl.AclImpl acl)
              throws org.outerj.daisy.repository.RepositoryException
Specified by:
storeAcl in interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

copyStagingToLive

public void copyStagingToLive(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                       throws org.outerj.daisy.repository.RepositoryException
Specified by:
copyStagingToLive in interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

copyLiveToStaging

public void copyLiveToStaging(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user)
                       throws org.outerj.daisy.repository.RepositoryException
Specified by:
copyLiveToStaging in interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfo

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user,
                                                                long id,
                                                                long userId,
                                                                long[] roleIds,
                                                                org.outerj.daisy.repository.Document document)
                                                         throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfo in interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfo

public org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user,
                                                                long id,
                                                                long userId,
                                                                long[] roleIds,
                                                                long documentId,
                                                                long branchId,
                                                                long languageId)
                                                         throws org.outerj.daisy.repository.RepositoryException
Specified by:
getAclInfo in interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException

filterDocumentTypes

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

filterDocuments

public org.outerj.daisy.repository.VariantKey[] filterDocuments(org.outerj.daisy.repository.commonimpl.AuthenticatedUser user,
                                                                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.commonimpl.acl.AclStrategy
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2012 . All Rights Reserved.