|
|||||||||
| Home >> All >> com >> RuntimeCollective >> content >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.content.bean
Class URLLink

java.lang.Objectcom.RuntimeCollective.content.bean.SimpleContent
com.RuntimeCollective.content.bean.Link
com.RuntimeCollective.content.bean.URLLink
- All Implemented Interfaces:
- Content, com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, java.io.Serializable
- public class URLLink
- extends Link
The URLLink class implements the Link abstract class, using a URL. Some refer to this class as ExternalLink.
If you want to be spared the hassle of writing JSPs for the editing of your URLLink objects, do have a look at the pages written for the Sussex Enterprise project. You can find them by checking out the relevent project: "cvs co rsework", then look in rsework/web/admin.
The pages are called create/edit/deleteExternalLinkXXX.jsp. They should be pretty self-explanatory. The rsework/struts-config.xml file is also worth checking, for the action mappings etc.
And while you're at it, why not vanilla them and copy them to content/web/admin ...
You can also check the Sussex Enterprise staging server (ask Fabrice, JoeH or Sophie).
- Version:
- $Id: URLLink.java,v 1.15 2003/09/30 15:12:46 joe Exp $
| Field Summary | |
static java.lang.String |
DATABASE_TABLE
The name of the database table for this bean type. |
protected java.net.URL |
LinkURL
The LinkURL |
| Fields inherited from class com.RuntimeCollective.content.bean.Link |
AHREF, CLOSE_TAG, END_QUOTE, END_TAG, ExplanatoryText, FOLLOW_LINK, HTTP, IsTrackable, LinkText, NEW_TARGET, NumberOfHits, OpenInNewWindow, PAGE_ROOT |
| Fields inherited from class com.RuntimeCollective.content.bean.SimpleContent |
Author_id, CreationDate, id, LastModifiedDate, LastModifierUser_id |
| Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean |
INTERFACE_BEAN, NULL_ID |
| Constructor Summary | |
URLLink()
Construct a new blank URLLink, giving it a new unique ID. |
|
URLLink(int id)
Get a URLLink from the database, given an id. |
|
| Method Summary | |
void |
delete()
Delete this URLLink from the database. |
static java.util.List |
getAll()
Returns all URLLinks. |
static java.util.List |
getAll(java.lang.String orderBy)
Returns all URLLinks, ordered according to a creatain criteria. |
java.net.URL |
getLinkURL()
Get the LinkURL |
static URLLink |
getURLLinkFromURL(java.lang.String url)
Given a URL String, returns the first created URLLink that matches it. |
boolean |
isDisplayable()
Is this link displayable, ie is it valid ? |
void |
save()
Save this URLLink to the database. |
void |
setLinkURL(java.net.URL linkURL)
Set the LinkURL |
| Methods inherited from class com.RuntimeCollective.content.bean.Link |
addHit, getDescription, getExplanatoryText, getIsTrackable, getLinkCloseTag, getLinkOpenTag, getLinkText, getNumberOfHits, getOpenInNewWindow, getTitle, isTrackable, setExplanatoryText, setIsTrackable, setLinkText, setNumberOfHits, setOpenInNewWindow, viewFormat |
| Methods inherited from class com.RuntimeCollective.content.bean.SimpleContent |
customiseDuplicate, getAuthor, getCreationDate, getId, getLastModifiedDate, getLastModifierUser, makeDuplicate, makeDuplicate, setAuthor, setCreationDate, setDescription, setId, setLastModifiedDate, setLastModifierUser, setTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DATABASE_TABLE
public static final java.lang.String DATABASE_TABLE
- The name of the database table for this bean type.
- See Also:
- Constant Field Values
LinkURL
protected java.net.URL LinkURL
- The LinkURL
| Constructor Detail |
URLLink
public URLLink()
throws java.sql.SQLException
- Construct a new blank URLLink, giving it a new unique ID.
URLLink
public URLLink(int id)
throws java.sql.SQLException
- Get a URLLink from the database, given an id.
| Method Detail |
save
public void save()
throws java.sql.SQLException
- Save this URLLink to the database.
- Specified by:
savein interfacecom.RuntimeCollective.webapps.bean.EntityBean- Overrides:
savein classLink
delete
public void delete()
throws java.sql.SQLException
- Delete this URLLink from the database.
- Specified by:
deletein interfacecom.RuntimeCollective.webapps.bean.EntityBean- Overrides:
deletein classLink
isDisplayable
public boolean isDisplayable()
- Is this link displayable, ie is it valid ?
- Specified by:
isDisplayablein classLink
getLinkURL
public java.net.URL getLinkURL()
- Get the LinkURL
- Specified by:
getLinkURLin classLink
setLinkURL
public void setLinkURL(java.net.URL linkURL)
- Set the LinkURL
getURLLinkFromURL
public static URLLink getURLLinkFromURL(java.lang.String url)
- Given a URL String, returns the first created URLLink that matches it.
getAll
public static java.util.List getAll()
- Returns all URLLinks.
getAll
public static java.util.List getAll(java.lang.String orderBy)
- Returns all URLLinks, ordered according to a creatain criteria.
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> content >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC