KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > security > auth > ACL


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.security.auth;
14
15 import java.io.Serializable JavaDoc;
16 import java.security.Principal JavaDoc;
17 import java.util.List JavaDoc;
18
19
20 /**
21  * @author Sameer Charles $Id: ACL.java 6341 2006-09-12 09:18:27Z philipp $
22  */

23 public interface ACL extends Principal JavaDoc, Serializable JavaDoc {
24
25     /**
26      * Get name given to this principal
27      * @return name
28      */

29     public String JavaDoc getName();
30
31     /**
32      * Set this principal name
33      */

34     public void setName(String JavaDoc name);
35
36     /**
37      * Get repository ID for which this ACL has been constructed
38      * @return repository ID
39      */

40     public String JavaDoc getRepository();
41
42     /**
43      * Set repository ID for which this ACL will be constructed
44      * @param repository
45      */

46     public void setRepository(String JavaDoc repository);
47
48     /**
49      * Get workspace ID for which this ACL has been contructed
50      * @return workspace ID
51      */

52     public String JavaDoc getWorkspace();
53
54     /**
55      * Set workspace ID for which this ACL will be constructed
56      * @param workspace
57      */

58     public void setWorkspace(String JavaDoc workspace);
59
60     /**
61      * add permission in to an existing list
62      * @param permission
63      */

64     public void addPermission(Object JavaDoc permission);
65
66     /**
67      * Initialize access control list with provided permissions it will overwrite any existing permissions set before.
68      * @param list
69      */

70     public void setList(List JavaDoc list);
71
72     /**
73      * Returns list of permissions for this principal
74      */

75     public List JavaDoc getList();
76
77 }
78
Popular Tags