public class Resource extends Object
Constructor and Description |
---|
Resource(String type,
String id) |
Resource(String type,
String id,
Map<String,Object> attributes,
Map<String,Relationship> relationships,
Map<String,String> links,
Map<String,Meta> meta) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Map<String,Object> |
getAttributes() |
String |
getId() |
Map<String,String> |
getLinks() |
Map<String,Meta> |
getMeta() |
Map<String,Relationship> |
getRelationships() |
String |
getType() |
int |
hashCode() |
void |
setAttributes(Map<String,Object> obj) |
void |
setId(String id) |
void |
setLinks(Map<String,String> links) |
void |
setMeta(Map<String,Meta> meta) |
void |
setRelationships(Map<String,Relationship> relationships) |
void |
setType(String type) |
PersistentResource<?> |
toPersistentResource(RequestScope requestScope) |
ResourceIdentifier |
toResourceIdentifier()
Convert Resource to resource identifier.
|
public String getId()
public void setRelationships(Map<String,Relationship> relationships)
public Map<String,Relationship> getRelationships()
public void setId(String id)
public void setType(String type)
public String getType()
public ResourceIdentifier toResourceIdentifier()
public PersistentResource<?> toPersistentResource(RequestScope requestScope) throws ForbiddenAccessException, InvalidObjectIdentifierException
Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.