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

- All Superinterfaces:
- com.RuntimeCollective.webapps.bean.EntityBean, com.RuntimeCollective.permission.bean.Permissible, com.RuntimeCollective.webapps.bean.PermissionBean, java.io.Serializable
- All Known Subinterfaces:
- SiteLocation
- All Known Implementing Classes:
- SimplePublishable, SimpleSiteLocation
- public interface Publishable
- extends com.RuntimeCollective.permission.bean.Permissible
Interface to implement if you want an object to be publishable, ie sometimes live and sometimes dead.
If you want to be spared the hassle of writing JSPs for the publishing of your Publishable 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 publishPageXXX.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 sitemap/web/admin ...
You can also check the Sussex Enterprise staging server (ask Fabrice, JoeH or Sophie).
- Version:
- $Id: Publishable.java,v 1.12 2003/09/30 15:12:59 joe Exp $
| Field Summary | |
static java.lang.String |
DATABASE_TABLE
The name of the database table for this bean type. |
static java.lang.String |
STATUS_APPROVED
|
static java.lang.String |
STATUS_ARCHIVED
|
static java.lang.String |
STATUS_EDITED
Possible statuses |
static java.lang.String |
STATUS_TO_BE_APPROVED
|
| Fields inherited from interface com.RuntimeCollective.permission.bean.Permissible |
EDIT_ACTION, VIEW_ACTION |
| Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean |
INTERFACE_BEAN, NULL_ID |
| Method Summary | |
boolean |
getAlwaysLive()
Get whether the object will be always live |
java.util.Date |
getGoDeadDate()
Get the date bean when the object will go dead |
java.util.Date |
getGoLiveDate()
Get the date bean when the object will go live |
boolean |
getIsNew()
Get whether the object IsNew |
boolean |
getNeedApproval()
Get whether the object will be always approved |
java.lang.String |
getStatus()
Get the status of this Publishable |
java.util.Date |
getStatusLastModifiedDate()
Get the date of the last status modificatin of this Publishable |
boolean |
isAlwaysLive()
Get whether the object will be always live |
boolean |
isApproved()
|
boolean |
isArchived()
|
boolean |
isEdited()
Set/Check for possible statuses |
boolean |
isLive()
Check whether the object is live right now |
boolean |
isNew()
Get whether the object IsNew |
boolean |
isToBeApproved()
|
void |
markAsApproved()
|
void |
markAsArchived()
|
void |
markAsEdited()
|
void |
markAsToBeApproved()
|
boolean |
needsApproval()
Get whether the object will be always approved |
void |
publish(java.util.Date liveDate,
java.util.Date deadDate)
Publish this object on (only) one SiteLocation |
void |
saveArchivedData()
Special save method which only saves the necessary data when archiving the publishable. |
void |
setAlwaysLive(boolean bool)
Set whether the object will be always live |
void |
setGoDeadDate(java.util.Date date)
Set the date bean when the object will go dead |
void |
setGoLiveDate(java.util.Date date)
Set the date bean when the object will go live |
void |
setIsNew(boolean bool)
Set whether the object IsNew |
void |
setNeedApproval(boolean bool)
Set whether the object will be always approved |
void |
setStatus(java.lang.String status)
Set the status of this Publishable |
void |
setStatusLastModifiedDate(java.util.Date date)
Set the date of the last status modificatin of this Publishable |
| Methods inherited from interface com.RuntimeCollective.permission.bean.Permissible |
canEdit, canPerformAction, canView, delete, getActionPermissionRule, getActions, getAuthorisationPathForAction, getAuthorisationPathForAction, getId, save, setActionPermissionRule, setId |
| 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
STATUS_EDITED
public static final java.lang.String STATUS_EDITED
- Possible statuses
- See Also:
- Constant Field Values
STATUS_TO_BE_APPROVED
public static final java.lang.String STATUS_TO_BE_APPROVED
- See Also:
- Constant Field Values
STATUS_APPROVED
public static final java.lang.String STATUS_APPROVED
- See Also:
- Constant Field Values
STATUS_ARCHIVED
public static final java.lang.String STATUS_ARCHIVED
- See Also:
- Constant Field Values
| Method Detail |
saveArchivedData
public void saveArchivedData()
- Special save method which only saves the necessary data when archiving the publishable.
This supposes the object has been already saved.
setGoLiveDate
public void setGoLiveDate(java.util.Date date)
- Set the date bean when the object will go live
getGoLiveDate
public java.util.Date getGoLiveDate()
- Get the date bean when the object will go live
setGoDeadDate
public void setGoDeadDate(java.util.Date date)
- Set the date bean when the object will go dead
getGoDeadDate
public java.util.Date getGoDeadDate()
- Get the date bean when the object will go dead
publish
public void publish(java.util.Date liveDate, java.util.Date deadDate)
- Publish this object on (only) one SiteLocation
setNeedApproval
public void setNeedApproval(boolean bool)
- Set whether the object will be always approved
getNeedApproval
public boolean getNeedApproval()
- Get whether the object will be always approved
needsApproval
public boolean needsApproval()
- Get whether the object will be always approved
setAlwaysLive
public void setAlwaysLive(boolean bool)
- Set whether the object will be always live
getAlwaysLive
public boolean getAlwaysLive()
- Get whether the object will be always live
isAlwaysLive
public boolean isAlwaysLive()
- Get whether the object will be always live
isLive
public boolean isLive()
- Check whether the object is live right now
setStatus
public void setStatus(java.lang.String status)
- Set the status of this Publishable
getStatus
public java.lang.String getStatus()
- Get the status of this Publishable
setStatusLastModifiedDate
public void setStatusLastModifiedDate(java.util.Date date)
- Set the date of the last status modificatin of this Publishable
getStatusLastModifiedDate
public java.util.Date getStatusLastModifiedDate()
- Get the date of the last status modificatin of this Publishable
isEdited
public boolean isEdited()
- Set/Check for possible statuses
isToBeApproved
public boolean isToBeApproved()
isApproved
public boolean isApproved()
isArchived
public boolean isArchived()
markAsEdited
public void markAsEdited()
markAsToBeApproved
public void markAsToBeApproved()
markAsApproved
public void markAsApproved()
markAsArchived
public void markAsArchived()
setIsNew
public void setIsNew(boolean bool)
- Set whether the object IsNew
getIsNew
public boolean getIsNew()
- Get whether the object IsNew
isNew
public boolean isNew()
- Get whether the object IsNew
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> sitemap >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC