[jboss-cvs] jboss-portal/api/src/main/org/jboss/portal/node ...
Julien Viet
julien at jboss.com
Mon Jul 31 15:29:45 EDT 2006
User: julien
Date: 06/07/31 15:29:45
Added: api/src/main/org/jboss/portal/node PortalNode.java
PortalNodeURL.java
Log:
- moved the portal api in the api module in order to have a standalone jar
- JBPORTAL-631 : Try to move org.jboss.portlet package to the api module
- IPC support in 2.4 (only for local portlets)
Revision Changes Path
1.1 date: 2006/07/31 19:29:45; author: julien; state: Exp;jboss-portal/api/src/main/org/jboss/portal/node/PortalNode.java
Index: PortalNode.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.portal.node;
import java.util.Collection;
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
*/
public interface PortalNode
{
/** A node of type context. */
int TYPE_CONTEXT = 0;
/** A node of type portal. */
int TYPE_PORTAL = 1;
/** A node of type page. */
int TYPE_PAGE = 2;
/** A node of type window. */
int TYPE_WINDOW = 3;
/**
* Return the node type.
*/
int getType();
/**
* Return the root node of this node.
*/
PortalNode getRoot();
/**
* Return the parent node of this node.
*/
PortalNode getParent();
/**
* Return the node name relative to its parent.
*/
String getName();
/**
* Return a child of this object.
*/
PortalNode getChild(String name);
/**
* Return the children of this object.
*/
Collection getChildren();
/**
* Get a portal node relative to this object.
*
* @param relativePath the relative path
* @return the relative object
*/
PortalNode resolve(String relativePath);
}
1.1 date: 2006/07/31 19:29:45; author: julien; state: Exp;jboss-portal/api/src/main/org/jboss/portal/node/PortalNodeURL.java
Index: PortalNodeURL.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.portal.node;
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
*/
public interface PortalNodeURL
{
/**
*
*/
void setParameter(String name, String value);
/**
*
*/
void setParameter(String name, String[] values);
/**
*
*/
void setAuthenticated(Boolean wantAuthenticated);
/**
*
*/
void setSecure(Boolean wantSecure);
/**
*
*/
void setRelative(boolean relative);
/**
* Generate an URL for this node.
*
* @return a generated url.
*/
String toString();
}
More information about the jboss-cvs-commits
mailing list