KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > policyframework > Resource


1 package com.sslexplorer.policyframework;
2
3 import java.util.Calendar JavaDoc;
4
5 import com.sslexplorer.security.SessionInfo;
6
7 /**
8  * Resource interface, defines common methods for all resources.
9  *
10  * @author James D Robinson <a HREF="mailto:james@3sp.com">&lt;james@3sp.com&gt;</a>
11  *
12  *
13  */

14 public interface Resource extends Comparable JavaDoc {
15
16     /**
17      * Constant for the max resource name length
18      */

19     public final int MAX_RESOURCE_NAME_LENGTH = 32;
20
21     /**
22      * @return Rsource ID
23      */

24     public int getResourceId();
25
26     /**
27      * @return ResourceType
28      */

29     public ResourceType getResourceType();
30
31     /**
32      * @return Resource name
33      */

34     public String JavaDoc getResourceName();
35
36     /**
37      * @return String
38      */

39     public String JavaDoc getResourceDisplayName();
40
41     /**
42      * @return Resource description
43      */

44     public String JavaDoc getResourceDescription();
45
46     /**
47      * @param name Resource Name
48      */

49     public void setResourceName(String JavaDoc name);
50
51     /**
52      * @param description Resource description.
53      */

54     public void setResourceDescription(String JavaDoc description);
55
56     /**
57      * @return Date created
58      */

59     public Calendar JavaDoc getDateCreated();
60
61     /**
62      * @return Date changed
63      */

64     public Calendar JavaDoc getDateAmended();
65
66     /**
67      * @param date Date changed
68      */

69     public void setDateAmended(Calendar JavaDoc date);
70
71     /**
72      * @param sessionInfo
73      * @return Resource requires session password.
74      */

75     public boolean sessionPasswordRequired(SessionInfo sessionInfo);
76
77     /**
78      * @return do resource parameters require session passwod.
79      */

80     public boolean paramsRequirePassword();
81
82     /**
83      * @return the realm ID the resource is in.
84      */

85     public int getRealmID();
86 }
87
Popular Tags