|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hlcl.rql.util.as.ProjectPage
com.hlcl.rql.hip.as.ChangeLogPage
public class ChangeLogPage
Constructor Summary | |
---|---|
ChangeLogPage(Page page)
Construct a change log page wrapping the given general page. |
Method Summary | |
---|---|
ChangeLogEntry |
addEntry(User user,
java.lang.String comment)
Adds a new change log entry for given user and comment with current date and time. |
java.util.List<ChangeLogEntry> |
getChanges()
Returns the list of changes sorted by date descending. |
int |
getCommentMaxLength()
Returns the maximal length of the comment field. |
ChangeLogEntry |
getLatestChange()
Returns the latest entry of the list of changes |
ChangeLogEntry |
getNewEntry(User user)
Returns the new entry initialized with user and timestamp, but empty comment. |
java.util.Date |
getNewEntryTimestamp()
Returns the timestamp at which time the new entry was requested. |
int |
getNumberOfChanges()
Returns the number of changes of page. |
boolean |
isCommentValid(java.lang.String comment)
Returns true only, if the given comment text is valid. |
boolean |
isSubscribeable()
Liefert true, falls diese seite abonniert werden darf. |
void |
saveNewEntry(java.lang.String comment)
Speichert den Kommtar comment im neuen Entry und speichert alle changes wieder in der seite. |
void |
setIsSubscribeable(boolean isSubscribeable)
Ändert die Seiteneigenschaft isSubscribeable auf den gegebenen Wert. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeLogPage(Page page)
Method Detail |
---|
public boolean isSubscribeable() throws RQLException
RQLException
public void setIsSubscribeable(boolean isSubscribeable) throws RQLException
RQLException
public ChangeLogEntry addEntry(User user, java.lang.String comment) throws RQLException
RQLException
public ChangeLogEntry getNewEntry(User user) throws RQLException
RQLException
public int getCommentMaxLength() throws RQLException
RQLException
public java.util.Date getNewEntryTimestamp() throws RQLException
RQLException
public void saveNewEntry(java.lang.String comment) throws RQLException
RQLException
public boolean isCommentValid(java.lang.String comment) throws RQLException
RQLException
public int getNumberOfChanges() throws RQLException
RQLException
public ChangeLogEntry getLatestChange() throws RQLException
RQLException
public java.util.List<ChangeLogEntry> getChanges() throws RQLException
RQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |