|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.workplace.wcm.api.versioning.RestoreStateOption
public final class RestoreStateOption
This is one of the RestoreOption to be used in conjuction
with VersioningService.restore(Version, RestoreOption...)
This Option only applies to Items that are workflowed. Non-Workflowed items are always restored as published.
Note: only one of these options can be specified for a single restore operation.
For example the following code does not make sense and will throw an IllegalArgumentException
versioningService.restore(myVersion, RestoreStateOption.asPublished(), RestoreStateOption.asDraft());
| Nested Class Summary | |
|---|---|
static class |
RestoreStateOption.State
State to restore as |
| Method Summary | |
|---|---|
static RestoreStateOption |
asDraft()
Specify to restore the item as draft. |
static RestoreStateOption |
asDraftInProject(DocumentId projectId)
Specify to restore the item as a draft in the given project. |
static RestoreStateOption |
asPublished()
Specify to restore the item in published state. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static RestoreStateOption asPublished()
RestoreStateOption to specifiy restore as publishedpublic static RestoreStateOption asDraft()
RestoreStateOption to specify restore as draftpublic static RestoreStateOption asDraftInProject(DocumentId projectId)
projectId - the Id of the project to restore the item into.
RestoreStateOption to specifiy restore as draft in the given projectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||