1 16 package org.outerj.daisy.repository.acl; 17 18 import org.outerj.daisy.repository.Document; 19 import org.outerj.daisy.repository.RepositoryException; 20 import org.outerj.daisy.repository.VariantKey; 21 22 60 public interface AccessManager { 61 66 public Acl getLiveAcl() throws RepositoryException; 67 68 71 public Acl getStagingAcl() throws RepositoryException; 72 73 76 public void copyStagingToLive() throws RepositoryException; 77 78 81 public void copyLiveToStaging() throws RepositoryException; 82 83 87 public AclResultInfo getAclInfo(Document document) throws RepositoryException; 88 89 93 public AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, long documentId, long branchId, long languageId) throws RepositoryException; 94 95 99 public AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, VariantKey key) throws RepositoryException; 100 101 105 public AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, long documentId) throws RepositoryException; 106 107 111 public AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, long documentId, long branchId, long languageId) throws RepositoryException; 112 113 117 public AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, VariantKey key) throws RepositoryException; 118 119 123 public AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, long documentId) throws RepositoryException; 124 125 132 public AclResultInfo getAclInfoOnLive(long userId, long[] roleIds, Document document) throws RepositoryException; 133 134 137 public AclResultInfo getAclInfoOnStaging(long userId, long[] roleIds, Document document) throws RepositoryException; 138 139 150 public long[] filterDocumentTypes(long[] documentTypeIds, long collectionId) throws RepositoryException; 151 152 161 public VariantKey[] filterDocuments(VariantKey[] variantKeys, AclPermission permission) throws RepositoryException; 162 163 167 public VariantKey[] filterDocuments(VariantKey[] variantKeys) throws RepositoryException; 168 } 169 | Popular Tags |