com.ibm.workplace.wcm.api
Interface LibraryDateComponent
- All Superinterfaces:
- Document, Editable, EditableLibraryComponent, LibraryComponent, WorkflowedDocument
public interface LibraryDateComponent
- extends EditableLibraryComponent
Represents a Date component.
A LibraryDateComponent is a LibraryComponent and
must be stored as a separate entity in the repository.
A LibraryDateComponent can contain Date. This interface provides
methods to retrieve and set the Date contained within this component.
note: since v6.0.0, a LibraryComponent is
referred to as a "Component" in the Authoring UI.
- See Also:
LibraryComponent
|
Field Summary |
static int |
TYPE_DATE
Type constant indicating that the Date returned from this DateComponent
will be formatted to only show the date. |
static int |
TYPE_TIME
Type constant indicating that the Date returned from this DateComponent
will be formatted to only show the time. |
static int |
TYPE_TIME_AND_DATE
Type constant indicating that the Date returned from this DateComponent
will be formatted to show the time and date. |
|
Method Summary |
java.util.Date |
getDate()
Returns the Date contained in this component as a Date. |
int |
getDateType()
Returns the formatting type set in this LibraryDateComponent. |
void |
setDate(java.util.Date date)
Sets the Date contained in this DateComponent. |
void |
setDateType(int dateType)
Sets the formatting type for this LibraryDateComponent. |
| Methods inherited from interface com.ibm.workplace.wcm.api.Document |
getAuthors, getContributorAccessMembers, getDeleteAccessMembers, getDescription, getEditAccessMembers, getEditorAccessMembers, getHistoryLog, getId, getInheritedContributorAccessMembers, getInheritedEditorAccessMembers, getInheritedManagerAccessMembers, getInheritedUserAccessMembers, getLiveAccessMembers, getManagerAccessMembers, getModifiedDate, getName, getOwnerLibrary, getOwners, getReadAccessMembers, getSourceWorkspace, getTitle, getUserAccessMembers, hasDeleteAccess, hasDeleteAccess, hasEditAccess, hasEditAccess, hasLiveAccess, hasLiveAccess, hasReadAccess, hasReadAccess, isContributorAccessInherited, isEditorAccessInherited, isManagerAccessInherited, isUserAccessInherited, isWorkflowed |
| Methods inherited from interface com.ibm.workplace.wcm.api.Editable |
addAuthors, addContributorAccessMembers, addDeleteAccessMembers, addEditAccessMembers, addEditorAccessMembers, addHistoryLogEntry, addLiveAccessMembers, addManagerAccessMembers, addOwners, addReadAccessMembers, addUserAccessMembers, isChanged, removeAuthors, removeContributorAccessMembers, removeDeleteAccessMembers, removeEditAccessMembers, removeEditorAccessMembers, removeLiveAccessMembers, removeManagerAccessMembers, removeOwners, removeReadAccessMembers, removeUserAccessMembers, setContributorAccessInheritance, setDescription, setEditorAccessInheritance, setManagerAccessInheritance, setName, setTitle, setUserAccessInheritance |
| Methods inherited from interface com.ibm.workplace.wcm.api.Document |
getAuthors, getContributorAccessMembers, getDeleteAccessMembers, getDescription, getEditAccessMembers, getEditorAccessMembers, getHistoryLog, getId, getInheritedContributorAccessMembers, getInheritedEditorAccessMembers, getInheritedManagerAccessMembers, getInheritedUserAccessMembers, getLiveAccessMembers, getManagerAccessMembers, getModifiedDate, getName, getOwnerLibrary, getOwners, getReadAccessMembers, getSourceWorkspace, getTitle, getUserAccessMembers, hasDeleteAccess, hasDeleteAccess, hasEditAccess, hasEditAccess, hasLiveAccess, hasLiveAccess, hasReadAccess, hasReadAccess, isContributorAccessInherited, isEditorAccessInherited, isManagerAccessInherited, isUserAccessInherited, isWorkflowed |
| Methods inherited from interface com.ibm.workplace.wcm.api.WorkflowedDocument |
addAdditionalViewers, addApprovers, cancelDraftDocument, createDraftDocument, decline, getAdditionalViewers, getCurrentApprovers, getEffectiveDate, getExpiryDate, getGeneralDateOne, getGeneralDateTwo, getWorkflowId, getWorkflowStageId, hasApproverAccess, hasApproverAccess, hasDraft, isDraft, isExpired, isPublished, nextWorkflowStage, removeAdditionalViewers, removeApprovers, restartWorkflow, setEffectiveDate, setExpiryDate, setGeneralDateOne, setGeneralDateTwo, setWorkflowId |
TYPE_TIME
static final int TYPE_TIME
- Type constant indicating that the
Date returned from this DateComponent
will be formatted to only show the time.
- See Also:
- Constant Field Values
TYPE_DATE
static final int TYPE_DATE
- Type constant indicating that the
Date returned from this DateComponent
will be formatted to only show the date.
- See Also:
- Constant Field Values
TYPE_TIME_AND_DATE
static final int TYPE_TIME_AND_DATE
- Type constant indicating that the
Date returned from this DateComponent
will be formatted to show the time and date.
- See Also:
- Constant Field Values
getDate
java.util.Date getDate()
- Returns the Date contained in this component as a
Date.
Returns null if the Date is not set.
- Returns:
- the Date
setDate
void setDate(java.util.Date date)
throws OperationFailedException
- Sets the Date contained in this
DateComponent.
Note. This method replaces any existing Date in this component.
- Parameters:
date - the Date
- Throws:
OperationFailedException - if the string argument is null or the
Date could not be set
getDateType
int getDateType()
- Returns the formatting type set in this
LibraryDateComponent.
Returns the default value LibraryDateComponent.TYPE_TIME if the new
date type has been set.
- Returns:
- the date formatting type
setDateType
void setDateType(int dateType)
throws OperationFailedException
- Sets the formatting type for this
LibraryDateComponent.
Valid values are:
- TYPE_TIME - Date format type to show the time
- TYPE_DATE - Date format type to show the date
- TYPE_TIME_AND_DATE - Date format type to show the date and time
- Parameters:
dateType - the date formatting type to be set
- Throws:
OperationFailedException - if an invalid date formatting type was passed in