org.outerj.daisy.repository.serverimpl.acl
Class LocalAclStrategy
java.lang.Object
org.outerj.daisy.repository.serverimpl.acl.LocalAclStrategy
- All Implemented Interfaces:
- org.outerj.daisy.repository.commonimpl.acl.AclEvaluationContext, org.outerj.daisy.repository.commonimpl.acl.AclStrategy
public class LocalAclStrategy
- extends java.lang.Object
- implements org.outerj.daisy.repository.commonimpl.acl.AclStrategy, org.outerj.daisy.repository.commonimpl.acl.AclEvaluationContext
Server-side implementation of the AclStrategy interface.
Fields inherited from interface org.outerj.daisy.repository.commonimpl.acl.AclStrategy |
LIVE_ACL_ID, STAGING_ACL_ID |
Method Summary |
boolean |
checkObjectExpression(java.lang.Object compiledExpression,
org.outerj.daisy.repository.Document document)
|
java.lang.Object |
compileObjectExpression(java.lang.String expression)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalAclStrategy
public LocalAclStrategy(LocalRepositoryManager.Context context,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser systemUser,
org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
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
compileObjectExpression
public java.lang.Object compileObjectExpression(java.lang.String expression)
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
compileObjectExpression
in interface org.outerj.daisy.repository.commonimpl.acl.AclEvaluationContext
- Throws:
org.outerj.daisy.repository.RepositoryException
checkObjectExpression
public boolean checkObjectExpression(java.lang.Object compiledExpression,
org.outerj.daisy.repository.Document document)
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
checkObjectExpression
in interface org.outerj.daisy.repository.commonimpl.acl.AclEvaluationContext
- 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.