|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The main interface for the time-based publishing service that controls the
visibility of resources.
It defines methods to set or read the time when a resource in a repository
is visible or hidden. These methods are mainly used by the user interface.
A scheduler task has to be configured to call the handle...
methods at regular intervals.
A namespace filter is responsible for finding out, whether a resource is visible
or hidden.
Passing null as an argument in methods causes an exception unless otherwise stated in the method description.
Whether a resource is visible or hidden depends on the user:
| Method Summary | |
ITimebasedPublishEvent |
getTimebasedPublishEventTemplate(int type)
Get a ITimebasedPublishEvent-template for the given
ITimebasedPublishEvent-type. |
void |
handleInvisibleResources()
Searches for all resources which have become invisible since the last call of this method and sends an event for every resource to inform other services about these hidden resources. |
void |
handleVisibleResources()
Searches for all resources which have become visible since the last call of this method and sends an event for every resource to inform other services about the visibility of these resources. |
boolean |
isTimebasePublishEnabled(IResource impResource)
Checks whether time-based publishing has been enabled for the resource. |
boolean |
isVisible(IResource impResource)
Checks whether all conditions for the visibility of the time-based publishing service have been fullfilled. |
java.util.Date |
readInvalidDate(IResource impResource)
Reads the date on which a resource will be hidden. |
java.util.Date |
readValidDate(IResource impResource)
Reads the date on which a resource will be visible. |
void |
saveInvalidDate(IResource impResource,
java.util.Date invalidDate)
Saves the date on which a resource will become visible. |
void |
saveValidDate(IResource impResource,
java.util.Date validDate)
Saves the date on which a resource will be hidden. |
void |
setTimebasePublishEnabled(ICollection impFolder,
boolean enabled)
Enables the time-based publishing service for a folder When the time-based publishing service is enabled for a folder, the visibility of all children within this folder is controlled by the time-based publishing service. |
| Methods inherited from interface com.sapportals.wcm.repository.service.IRepositoryService |
acceptServletCall, getDescription, getDescription, getID, getServiceType |
| Methods inherited from interface com.sapportals.wcm.util.events.IEventSender |
getEvents |
| Method Detail |
public void setTimebasePublishEnabled(ICollection impFolder,
boolean enabled)
throws WcmException
impFolder - the folder to enable the service forenabled - true, if the service is enabled
public boolean isTimebasePublishEnabled(IResource impResource)
throws WcmException
impResource is a collection, the settings for this collection are checked. Otherwise, the
settings for the parent collection of the impResource are checked. Returns false if the impResource is null.impResource - resource to check
public void saveValidDate(IResource impResource,
java.util.Date validDate)
throws WcmException
validDate deletes the
previous setting.impResource - the current resourcevalidDate - the date on which the resource becomes valid
public void saveInvalidDate(IResource impResource,
java.util.Date invalidDate)
throws WcmException
invalidDate deletes the
previous setting.impResource - the current resourceinvalidDate - the date on which the resource becomes invalid
public java.util.Date readValidDate(IResource impResource)
throws WcmException
impResource - the current resource
public java.util.Date readInvalidDate(IResource impResource)
throws WcmException
impResource - the current resource
public boolean isVisible(IResource impResource)
throws WcmException
namespace filter impResource - the current resource
public void handleVisibleResources()
throws WcmException
scheduler
task
public void handleInvisibleResources()
throws WcmException
scheduler task public ITimebasedPublishEvent getTimebasedPublishEventTemplate(int type)
ITimebasedPublishEvent-template for the given
ITimebasedPublishEvent-type.type - the ITimebasedPublishEvent-type to get the template for.ITimebasedPublishEvent-template for the given type
or null if the given type is not valid.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||