public interface ClientEntity extends ClientLinked, ClientAnnotatable, ClientInvokeResult
Modifier and Type | Method and Description |
---|---|
URI |
getEditLink()
Returns OData entity edit link.
|
String |
getETag()
Gets ETag.
|
URI |
getId()
To request entity references in place of the actual entities, the client issues a GET request with /$ref appended
to the resource path.
|
URI |
getLink() |
URI |
getMediaContentSource()
Gets media content source.
|
String |
getMediaContentType()
Gets media content type.
|
ClientLink |
getMediaEditLink(String name)
Gets media-edit link with given name, if available, otherwise null.
|
List<ClientLink> |
getMediaEditLinks()
Returns entity media edit links.
|
String |
getMediaETag()
ETag of the binary stream represented by this media entity or named stream property.
|
ClientOperation |
getOperation(String title)
Searches for operation with given title.
|
List<ClientOperation> |
getOperations()
Gets operations.
|
List<ClientProperty> |
getProperties()
Returns OData entity properties.
|
ClientProperty |
getProperty(String name)
Searches for property with given name.
|
FullQualifiedName |
getTypeName() |
boolean |
isMediaEntity()
Checks if the current entity is a media entity.
|
boolean |
isReadOnly()
TRUE if read-only entity.
|
void |
setEditLink(URI editLink)
Sets OData entity edit link.
|
void |
setETag(String eTag)
Sets ETag.
|
void |
setId(URI id)
Set id for this OData entity.
|
void |
setMediaContentSource(URI mediaContentSource)
Sets media content source.
|
void |
setMediaContentType(String mediaContentType)
Sets media content type.
|
void |
setMediaEntity(boolean isMediaEntity)
Sets media entity flag.
|
void |
setMediaETag(String eTag)
Set media ETag.
|
addLink, getAssociationLink, getAssociationLinks, getNavigationLink, getNavigationLinks, removeLink
getAnnotations
FullQualifiedName getTypeName()
URI getLink()
URI getEditLink()
void setEditLink(URI editLink)
editLink
- edit link.String getETag()
void setETag(String eTag)
eTag
- ETag.ClientOperation getOperation(String title)
title
- operation to look forList<ClientOperation> getOperations()
ClientProperty getProperty(String name)
name
- property to look forList<ClientProperty> getProperties()
URI getId()
void setId(URI id)
id
- the if for this entityClientLink getMediaEditLink(String name)
name
- candidate link nameList<ClientLink> getMediaEditLinks()
boolean isReadOnly()
boolean isMediaEntity()
void setMediaEntity(boolean isMediaEntity)
isMediaEntity
- media entity flag value.String getMediaContentType()
void setMediaContentType(String mediaContentType)
mediaContentType
- media content type.URI getMediaContentSource()
void setMediaContentSource(URI mediaContentSource)
mediaContentSource
- media content source.String getMediaETag()
void setMediaETag(String eTag)
eTag
- media ETag valueCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.