public class CMAEntry extends CMAResource
| Constructor and Description |
|---|
CMAEntry() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,LinkedHashMap<String,Object>> |
getFields()
Returns a map of fields for this Entry.
|
Boolean |
isArchived()
Returns true if this resource is archived.
|
Boolean |
isPublished()
Returns true if this resource is published.
|
CMAEntry |
setField(String key,
Object value,
String locale)
Creates a new field with the given
value. |
CMAEntry |
setFields(LinkedHashMap<String,LinkedHashMap<String,Object>> fields)
Sets a map of fields for this Entry.
|
CMAEntry |
setId(String id)
Sets the ID for this Entry.
|
getResourceId, getSpaceId, getSys, getVersion, setSyspublic CMAEntry setId(String id)
CMAEntry instancesetId in class CMAResourcepublic CMAEntry setField(String key, Object value, String locale)
value.
If a field named key already exists it will be replaced.key - field keyvalue - valuelocale - localeCMAEntrypublic LinkedHashMap<String,LinkedHashMap<String,Object>> getFields()
public CMAEntry setFields(LinkedHashMap<String,LinkedHashMap<String,Object>> fields)
fields - CMAEntry instancepublic Boolean isArchived()
public Boolean isPublished()
Copyright © 2014 Contentful, GmbH.. All rights reserved.