KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > repository > acl > Acl


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.outerj.daisy.repository.acl;
17
18 import org.outerj.daisy.repository.RepositoryException;
19 import org.outerx.daisy.x10.AclDocument;
20
21 import java.util.Date JavaDoc;
22
23 /**
24  * An ACL (Access Control List) ordered list of AclObjects. An
25  * AclObject specifies to what (= which documents) its child AclEntries
26  * applies.
27  *
28  * <p>Modifications to the Acl are only made permanent after a call to
29  * {@link #save()}.
30  */

31 public interface Acl {
32     /**
33      * Creates a new AclObject. This AclObject will not be added to this Acl,
34      * use e.g. the {@link #add(AclObject)} method to do that.
35      */

36     public AclObject createNewObject(String JavaDoc objectExpression);
37
38     public AclObject get(int index);
39
40     public void remove(int index);
41
42     public void add(AclObject aclObject);
43
44     public void add(int index, AclObject aclObject);
45
46     public void clear();
47
48     public int size();
49
50     public Date JavaDoc getLastModified();
51
52     public long getLastModifier();
53
54     /**
55      * Saves this Acl. This includes the saving of its child AclObjects
56      * and their respective AclEntries.
57      */

58     public void save() throws RepositoryException;
59
60     public AclDocument getXml();
61
62     public void setFromXml(AclDocument.Acl aclXml);
63
64     public long getUpdateCount();
65 }
Popular Tags