/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see .
*/
package org.alfresco.repo.domain.permissions;
import java.util.List;
import java.util.Map;
import org.alfresco.repo.security.permissions.ACEType;
import org.alfresco.repo.security.permissions.PermissionReference;
import org.alfresco.service.cmr.security.AccessStatus;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.Pair;
/**
* This provides basic services such as caching, but defers to the underlying implementation
* for CRUD operations.
*
* alf_access_control_list
* alf_acl_member
* alf_acl_change_set
* alf_access_control_entry
* alf_ace_context
* alf_permission
* alf_authority
* alf_authority_alias
*
* @since 3.4
* @author janv
*/
public interface AclCrudDAO
{
//
// Access Control List (ACL)
//
public Acl createAcl(AclEntity entity);
public Acl getAcl(long aclEntityId);
public AclUpdateEntity getAclForUpdate(long aclEntityId);
public List getAclsThatInheritFromAcl(long aclEntityId);
public Long getLatestAclByGuid(String aclGuid);
public void updateAcl(AclUpdateEntity entity);
public void deleteAcl(long aclEntityId);
public List getADMNodesByAcl(long aclEntityId, int maxResults);
public List getAVMNodesByAcl(long aclEntityId, int maxResults);
//
// Access Control Entry (ACE)
//
public Ace createAce(Permission permission, Authority authority, ACEType type, AccessStatus accessStatus);
public Ace getAce(Permission permission, Authority authority, ACEType type, AccessStatus accessStatus);
public Ace getAce(long aceEntityId);
public Ace getOrCreateAce(Permission permission, Authority authority, ACEType type, AccessStatus accessStatus);
public List getAcesByAuthority(long authorityEntityId);
public List