org.outerj.daisy.repository.commonimpl.acl
Interface AclStrategy


public interface AclStrategy

Allows to customise the behaviour of the abstract implementation classes of the repository ACL API.

For (important) general information about this and other strategy interfaces, see also DocumentStrategy.


Field Summary
static long LIVE_ACL_ID
           
static long STAGING_ACL_ID
           
 
Method Summary
 void copyLiveToStaging(AuthenticatedUser user)
           
 void copyStagingToLive(AuthenticatedUser user)
           
 org.outerj.daisy.repository.VariantKey[] filterDocuments(AuthenticatedUser user, org.outerj.daisy.repository.VariantKey[] variantKeys)
           
 long[] filterDocumentTypes(AuthenticatedUser user, long[] documentTypeIds, long collectionId)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(AuthenticatedUser user, long id, long userId, long[] roleIds, org.outerj.daisy.repository.Document document)
           
 org.outerj.daisy.repository.acl.AclResultInfo getAclInfo(AuthenticatedUser user, long id, long userId, long[] roleIds, long documentId, long branchId, long languageId)
           
 AclImpl loadAcl(long id, AuthenticatedUser user)
           
 void storeAcl(AclImpl acl)
           
 

Field Detail

LIVE_ACL_ID

public static final long LIVE_ACL_ID
See Also:
Constant Field Values

STAGING_ACL_ID

public static final long STAGING_ACL_ID
See Also:
Constant Field Values
Method Detail

loadAcl

public AclImpl loadAcl(long id,
                       AuthenticatedUser user)
                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

storeAcl

public void storeAcl(AclImpl acl)
              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

copyStagingToLive

public void copyStagingToLive(AuthenticatedUser user)
                       throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

copyLiveToStaging

public void copyLiveToStaging(AuthenticatedUser user)
                       throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getAclInfo

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

getAclInfo

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

filterDocumentTypes

public long[] filterDocumentTypes(AuthenticatedUser user,
                                  long[] documentTypeIds,
                                  long collectionId)
                           throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

filterDocuments

public org.outerj.daisy.repository.VariantKey[] filterDocuments(AuthenticatedUser user,
                                                                org.outerj.daisy.repository.VariantKey[] variantKeys)
                                                         throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2005 . All Rights Reserved.