KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > model > Node


1 package org.exoplatform.services.portal.model;
2
3 import java.util.* ;
4 import org.exoplatform.services.portal.PortalACL;
5 /**
6  *
7  * @version $Revision: 1.9 $ $Date: 2004/09/28 15:13:52 $
8  * @author Fahrid Djebbari (fdjebbari@users.sourceforge.net)
9  *
10  */

11 public interface Node {
12     public String JavaDoc getUri();
13   public void setUri(String JavaDoc s) ;
14   
15     public String JavaDoc getName();
16   public void setName(String JavaDoc s) ;
17     
18     public String JavaDoc getLabel();
19     public void setLabel(String JavaDoc name);
20   
21   public String JavaDoc getResolvedLabel();
22   public void setResolvedLabel(ResourceBundle res);
23     
24     public String JavaDoc getIcon();
25     public void setIcon(String JavaDoc name);
26   
27   public String JavaDoc getViewPermission() ;
28   public void setViewPermission(String JavaDoc s) ;
29   
30   public String JavaDoc getEditPermission() ;
31   public void setEditPermission(String JavaDoc s) ;
32   
33     public String JavaDoc getDescription() ;
34   public void setDescription(String JavaDoc s) ;
35     
36   public boolean isVisible() ;
37   public void setVisible(PortalACL acl, String JavaDoc owner, String JavaDoc remoteUser) ;
38   
39   public Node getChild(int pos) ;
40   public void addChild(Node node) ;
41   public Node removeChild(int pos) ;
42   public Node removeChild(String JavaDoc uri) ;
43   public boolean hasChild(String JavaDoc name) ;
44   public Node findNode(String JavaDoc uri) ;
45   public int getChildrenSize() ;
46   public List getChildren() ;
47     
48     public Node getParent() ;
49     public void setParent(Node node) ;
50
51   public PageReference getPageReference(String JavaDoc type) ;
52     public List getPageReference() ;
53   public void setPageReference(List list) ;
54   public PageReference removePageReference(String JavaDoc type) ;
55   
56   public int getLevel() ;
57   public void setSelectedPath(boolean b) ;
58   public boolean isSelectedPath() ;
59   public boolean isShare() ;
60   
61   public void visit(NodeVisitor visitor) ;
62 }
Popular Tags