KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > security > registry > AuthorityLink


1 /*
2  * Created on 09.07.2004
3  *
4  */

5 package com.nightlabs.ipanema.security.registry;
6
7 import java.io.Serializable JavaDoc;
8
9 import com.nightlabs.ipanema.security.Authority;
10
11 /**
12  * @author Niklas Schiffler <nick@nightlabs.de>
13  *
14  */

15
16 /**
17  * @jdo.persistence-capable
18  * identity-type = "application"
19  * objectid-class = "AuthorityLinkID"
20  * detachable = "true"
21  *
22  * @jdo.inheritance strategy = "new-table"
23  **/

24 public class AuthorityLink implements Serializable JavaDoc
25 {
26     /**
27      * @jdo.field primary-key="true"
28      * @jdo.column length="100"
29      */

30     private String JavaDoc objectID;
31
32     
33     public AuthorityLink() {}
34     
35     public AuthorityLink(String JavaDoc objectID, Authority auth)
36     {
37         this.objectID = objectID;
38         this.authority = auth;
39     }
40     
41     /**
42      * @jdo.field persistence-modifier="persistent"
43      */

44     private Authority authority;
45     
46     /**
47      * @return Returns the authority.
48      */

49     public Authority getAuthority()
50     {
51         return authority;
52     }
53     
54     /**
55      * @return Returns the authorityLinkID.
56      */

57     public String JavaDoc getObjectID()
58     {
59         return objectID;
60     }
61 }
62
Popular Tags