public class ContentSummary extends ContentBase
Modifier and Type | Class and Description |
---|---|
static class |
ContentSummary.Status |
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_LINK
Name of the bound property "contentLink".
|
static String |
CONTENT_SUMMARY_MIME_TYPE
Default mime-type for content summary.
|
static String |
THUMBNAIL_PROPERTY
Name of the bound property "thumbnail".
|
mContentDescriptor
Constructor and Description |
---|
ContentSummary(ContentDescriptor pContentSummaryDescriptor,
Link pContentLink)
Creates a
ContentSummary . |
ContentSummary(ContentDescriptor pContentSummaryDescriptor,
Link pContentLink,
UUID pSyntheticID)
Creates a
ContentSummary . |
ContentSummary(ContentSummary pOther)
Creates a copy of the given content summary.
|
ContentSummary(Content pContent,
URI pContentURI)
Creates a summary from a content item.
|
Modifier and Type | Method and Description |
---|---|
Link |
getContentLink() |
int |
getRelationID()
The numerical identifier of a corresponding IORelation
|
ContentSummary.Status |
getStatus() |
UUID |
getSyntheticID() |
Link |
getThumbnail() |
void |
setContentLink(Link pContentLink) |
void |
setFailed() |
void |
setRelationID(int relationID) |
void |
setStatus(ContentSummary.Status pStatus) |
void |
setThumbnail(Link pThumbnail) |
void |
sync(ContentBase pOther)
In order for the Swing client to maintain the correct state, we need to update the object values instead of
replacing object instances whenever possible.
|
void |
sync(Content pOther,
URI pContentURI) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDescriptor, getProperty, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, hasValueForProperty, isValid, readResolve, removePropertyChangeListener, removePropertyChangeListener, setProperty, setProperty, toString, transfer
public static final String CONTENT_SUMMARY_MIME_TYPE
public static final String THUMBNAIL_PROPERTY
getThumbnail()
,
Constant Field Valuespublic static final String CONTENT_LINK
getContentLink()
,
Constant Field Valuespublic ContentSummary(ContentDescriptor pContentSummaryDescriptor, Link pContentLink, UUID pSyntheticID)
ContentSummary
.pContentSummaryDescriptor
- the summary content descriptor; may not be null
.pContentLink
- a Link
that points to the backing content item for this instance. May not be null
pSyntheticID
- synthetic ID of the content summary.public ContentSummary(ContentDescriptor pContentSummaryDescriptor, Link pContentLink)
ContentSummary
.pContentSummaryDescriptor
- the summary content descriptor; may not be null
.pContentLink
- a Link
that points to the backing content item for this instance. May not be null
public ContentSummary(Content pContent, URI pContentURI)
pContent
- the content to copy, may not be null
.
The content must have a summary descriptor
pContentURI
- the URI of the content, may not be null
public ContentSummary(ContentSummary pOther)
pOther
- the content summary to copypublic void sync(ContentBase pOther)
ContentBase
sync
in class ContentBase
pOther
- the ContentBase instance to sync with.public void setContentLink(Link pContentLink)
public Link getContentLink()
public void setFailed()
public void setStatus(ContentSummary.Status pStatus)
public ContentSummary.Status getStatus()
public UUID getSyntheticID()
public void setThumbnail(Link pThumbnail)
public Link getThumbnail()
public void setRelationID(int relationID)
public int getRelationID()
© 1998- 2021 Escenic AS