|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEntry
Shared interface for model and data BaseEntry to implement.
Method Summary | |
---|---|
ILink |
addLink(java.lang.String rel,
java.lang.String type,
java.lang.String href)
Creates and adds a link to the entry. |
java.util.List<? extends IPerson> |
getAuthors()
Gets a list of all authors on this entry. |
boolean |
getCanEdit()
Returns true if the entry can be modified by a client. |
java.util.Set<? extends ICategory> |
getCategories()
Gets a set of all categories on this entry. |
IContent |
getContent()
Gets the content of this entry. |
DateTime |
getEdited()
Get a DateTime instance representing the last time this entry was
edited. |
ILink |
getEditLink()
Gets the edit link, which is the link to PUT an updated version of the entry to. |
java.lang.String |
getEtag()
Gets the value of the gd:etag attribute for this entry. |
java.lang.String |
getId()
Get the unique id for this entry. |
ILink |
getLink(java.lang.String rel,
java.lang.String type)
Retrieves the first link with the supplied rel and/or
type value. |
java.util.List<? extends ILink> |
getLinks()
Gets a list containing all links on this entry. |
ILink |
getMediaEditLink()
Gets the media-edit link, which is the link to PUT an updated version of the media content to. |
DateTime |
getPublished()
Get a DateTime instance representing the time that this entry was
created. |
ILink |
getSelfLink()
Gets the self link, which points back at this entry. |
DateTime |
getUpdated()
Get a DateTime instance representing the last time this entry was
updated. |
java.lang.String |
getVersionId()
Version ID. |
void |
setCanEdit(boolean canEdit)
Sets whether the server allows this entry to be modified by the client. |
void |
setEdited(DateTime edited)
Set the last time this entry was edited using the app:edited element. |
void |
setEtag(java.lang.String etag)
Sets the value of the gd:etag attribute for this entry. |
void |
setId(java.lang.String id)
Sets the unique id for this entry. |
void |
setPublished(DateTime published)
Sets the date of publishing for this entry. |
void |
setService(Service s)
Sets the service that this entry is being used with. |
void |
setUpdated(DateTime updated)
Sets the last time this entry was updated. |
void |
setVersionId(java.lang.String versionId)
Sets the versionId. |
Method Detail |
---|
java.lang.String getId()
void setId(java.lang.String id)
java.lang.String getVersionId()
This property is only used for services to communicate the current version ID back to the servlet. It is NOT set when entries are parsed (either from requests or from arbitrary XML).
void setVersionId(java.lang.String versionId)
getVersionId()
for a description of what
the versionId is used for.
DateTime getUpdated()
DateTime
instance representing the last time this entry was
updated. Represents the atom:updated element.
void setUpdated(DateTime updated)
DateTime getEdited()
DateTime
instance representing the last time this entry was
edited. Represents the app:edited element.
void setEdited(DateTime edited)
DateTime getPublished()
DateTime
instance representing the time that this entry was
created. Represents the atom:published element.
void setPublished(DateTime published)
java.lang.String getEtag()
void setEtag(java.lang.String etag)
boolean getCanEdit()
true
if the entry can be modified by a client.
void setCanEdit(boolean canEdit)
IContent getContent()
void setService(Service s)
ILink getSelfLink()
ILink getEditLink()
ILink getMediaEditLink()
ILink getLink(java.lang.String rel, java.lang.String type)
rel
and/or
type
value.
If either parameter is null
, it will not return matches
for that paramter.
rel
- link relation.type
- link type.
java.util.List<? extends ILink> getLinks()
ILink addLink(java.lang.String rel, java.lang.String type, java.lang.String href)
rel
- the value of the "rel" attribute on the linktype
- the value of the "type" attribute on the linkhref
- the value of the "href" attribute on the link
java.util.List<? extends IPerson> getAuthors()
java.util.Set<? extends ICategory> getCategories()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |