public interface ParaObject extends Serializable, Linkable, Votable
Votable.VoteValue| Modifier and Type | Method and Description |
|---|---|
String |
create()
Stores this object in the data store.
|
void |
delete()
Deletes the object permanently by removing it from the data store.
|
boolean |
exists()
Checks if an object is stored in the data store.
|
String |
getAppid()
The application name.
|
Boolean |
getCached()
Boolean flag which controls whether this object is cached.
|
String |
getCreatorid()
The id of the user who created this.
|
String |
getId()
The id of an object.
|
Boolean |
getIndexed()
Boolean flag which controls whether this object is indexed
by the search engine.
|
@NotBlank @Size(min=2,max=255) String |
getName()
The name of the object.
|
String |
getObjectURI()
The URI of this object.
|
String |
getParentid()
The id of the parent object.
|
String |
getPlural()
The plural name of the object.
|
Boolean |
getStored()
Boolean flag which controls whether this object is stored
in the database or not.
|
List<String> |
getTags()
The tags associated with this object.
|
Long |
getTimestamp()
The time when the object was created, in milliseconds.
|
String |
getType()
The name of the object's class.
|
Long |
getUpdated()
The last time this object was updated.
|
Long |
getVersion()
Returns the version number for this object.
|
void |
setAppid(String appid)
Sets a new app name.
|
void |
setCached(Boolean isCached)
Sets the "isCached" flag.
|
void |
setCreatorid(String creatorid)
Sets a new creator id.
|
void |
setId(String id)
Sets a new id.
|
void |
setIndexed(Boolean isIndexed)
Sets the "isIndexed" flag.
|
void |
setName(String name)
Sets a new name.
|
void |
setParentid(String parentid)
Sets a new parent id.
|
void |
setStored(Boolean isStored)
Sets the "isStored" flag.
|
void |
setTags(List<String> tags)
Merges the given tags with existing tags.
|
void |
setTimestamp(Long timestamp)
Sets the timestamp.
|
void |
setType(String type)
Sets a new object type.
|
void |
setUpdated(Long updated)
Sets the last updated timestamp.
|
void |
setVersion(Long version)
Sets the version of this object.
|
void |
update()
Updates the object permanently.
|
countChildren, countLinks, deleteChildren, findChildren, findLinkedObjects, getChildren, getChildren, getLinkedObjects, getLinks, isLinked, isLinked, link, unlink, unlinkAllString getId()
void setId(String id)
id - the new id@NotBlank
@Size(min=2,
max=255)
@NotBlank @Size(min=2,max=255) String getName()
void setName(String name)
name - the new nameString getAppid()
void setAppid(String appid)
appid - the new app id (name)String getParentid()
void setParentid(String parentid)
parentid - a new idString getType()
Class.getSimpleName().toLowerCase()void setType(String type)
type - a new typeString getCreatorid()
User id.void setCreatorid(String creatorid)
creatorid - a new idString getPlural()
String getObjectURI()
Utils.getObjectURI(com.erudika.para.core.ParaObject, boolean, boolean)Long getTimestamp()
void setTimestamp(Long timestamp)
timestamp - a new timestamp in milliseconds.Long getUpdated()
void setUpdated(Long updated)
updated - a new timestampList<String> getTags()
Tagvoid setTags(List<String> tags)
tags - the additional tags, or clears all tags if set to nullBoolean getStored()
void setStored(Boolean isStored)
isStored - when set to true, object is stored in DB.Boolean getIndexed()
void setIndexed(Boolean isIndexed)
isIndexed - when set to true, object is indexed.Boolean getCached()
void setCached(Boolean isCached)
isCached - when set to true, object is cached.Long getVersion()
0 if unused or -1, indicating a failed update.void setVersion(Long version)
version - a positive number, different than the current value of the version fieldString create()
Stored,
DAO.create(com.erudika.para.core.ParaObject)void update()
Locked fields are ignored.void delete()
boolean exists()
DAO.read(java.lang.String)Copyright © 2018 Erudika. All rights reserved.