| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||
| BasicAclExtendedDao |
|
| 1.0;1 |
| 1 | /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited |
|
| 2 | * |
|
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 4 | * you may not use this file except in compliance with the License. |
|
| 5 | * You may obtain a copy of the License at |
|
| 6 | * |
|
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 8 | * |
|
| 9 | * Unless required by applicable law or agreed to in writing, software |
|
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 12 | * See the License for the specific language governing permissions and |
|
| 13 | * limitations under the License. |
|
| 14 | */ |
|
| 15 | ||
| 16 | package org.acegisecurity.acl.basic; |
|
| 17 | ||
| 18 | import org.springframework.dao.DataAccessException; |
|
| 19 | ||
| 20 | ||
| 21 | /** |
|
| 22 | * Represents a more extensive data access object |
|
| 23 | * for {@link BasicAclEntry}s. |
|
| 24 | * |
|
| 25 | * <p> |
|
| 26 | * <code>BasicAclExtendedDao</code> implementations are responsible for interpreting a |
|
| 27 | * a given {@link AclObjectIdentity}. |
|
| 28 | * </p> |
|
| 29 | * |
|
| 30 | * @author Ben Alex |
|
| 31 | * @version $Id: BasicAclExtendedDao.java 1784 2007-02-24 21:00:24Z luke_t $ |
|
| 32 | */ |
|
| 33 | public interface BasicAclExtendedDao extends BasicAclDao { |
|
| 34 | //~ Methods ======================================================================================================== |
|
| 35 | ||
| 36 | /** |
|
| 37 | * Changes the permission mask assigned to the <code>BasicAclEntry</code> associated with the specified |
|
| 38 | * <code>AclObjectIdentity</code> and recipient <code>Object</code>. |
|
| 39 | * |
|
| 40 | * @param aclObjectIdentity to locate the relevant <code>BasicAclEntry</code> |
|
| 41 | * @param recipient to locate the relevant <code>BasicAclEntry</code> |
|
| 42 | * @param newMask indicating the new permission |
|
| 43 | * |
|
| 44 | * @throws DataAccessException DOCUMENT ME! |
|
| 45 | */ |
|
| 46 | void changeMask(AclObjectIdentity aclObjectIdentity, Object recipient, Integer newMask) |
|
| 47 | throws DataAccessException; |
|
| 48 | ||
| 49 | void create(BasicAclEntry basicAclEntry) throws DataAccessException; |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Deletes <b>all</b> entries associated with the specified <code>AclObjectIdentity</code>. |
|
| 53 | * |
|
| 54 | * @param aclObjectIdentity to delete, including any <code>BasicAclEntry</code>s |
|
| 55 | * |
|
| 56 | * @throws DataAccessException DOCUMENT ME! |
|
| 57 | */ |
|
| 58 | void delete(AclObjectIdentity aclObjectIdentity) |
|
| 59 | throws DataAccessException; |
|
| 60 | ||
| 61 | /** |
|
| 62 | * Deletes the <code>BasicAclEntry</code> associated with the specified <code>AclObjectIdentity</code> and |
|
| 63 | * recipient <code>Object</code>. |
|
| 64 | * |
|
| 65 | * @param aclObjectIdentity to delete |
|
| 66 | * @param recipient to delete |
|
| 67 | * |
|
| 68 | * @throws DataAccessException DOCUMENT ME! |
|
| 69 | */ |
|
| 70 | void delete(AclObjectIdentity aclObjectIdentity, Object recipient) |
|
| 71 | throws DataAccessException; |
|
| 72 | } |