Uses of Interface
com.erudika.para.core.ParaObject
Package
Description
Core domain classes for modeling the Para domain space.
The persistence module - handles data store communications and object persistence.
The search module - manages indexing operations and enables search.
Utility classes.
Object validation utilities.
-
Uses of ParaObject in com.erudika.para.core
Modifier and TypeClassDescriptionclass
This class represents an address.class
This is a representation of an application within Para.final class
This class represents a many-to-many relationship (link) between two objects.class
A generic system class for storing data.class
A tag.class
A translation is a key/value pair which holds a single translated string.class
The core user object.class
When a user votes on an object the vote is saved as positive or negative.class
Represents a webhook registration.Modifier and TypeMethodDescription<P extends ParaObject>
List<P> Address.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> App.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> Linkable.findChildren
(String type, String query, Pager... pager) Search through all child objects.<P extends ParaObject>
List<P> Linker.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> Sysprop.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> Tag.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> Translation.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> User.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> Vote.findChildren
(String type, String query, Pager... pager) <P extends ParaObject>
List<P> Address.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> App.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> Linkable.findLinkedObjects
(String type, String field, String query, Pager... pager) Similar toLinkable.findChildren(java.lang.String, java.lang.String, com.erudika.para.core.utils.Pager...)
but for many-to-many relationships.<P extends ParaObject>
List<P> Linker.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> Sysprop.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> Tag.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> Translation.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> User.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> Vote.findLinkedObjects
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> Address.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> Address.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> App.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> App.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> Linkable.getChildren
(String type, Pager... pager) Returns all child objects linked to this object.<P extends ParaObject>
List<P> Linkable.getChildren
(String type, String field, String term, Pager... pager) Returns all child objects linked to this object.<P extends ParaObject>
List<P> Linker.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> Linker.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> Sysprop.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> Sysprop.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> Tag.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> Tag.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> Translation.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> Translation.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> User.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> User.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> Vote.getChildren
(String type, Pager... pager) <P extends ParaObject>
List<P> Vote.getChildren
(String type, String field, String term, Pager... pager) <P extends ParaObject>
List<P> Address.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> App.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> Linkable.getLinkedObjects
(String type, Pager... pager) Similar toLinkable.getChildren(java.lang.String, com.erudika.para.core.utils.Pager...)
but for many-to-many relationships.<P extends ParaObject>
List<P> Linker.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> Sysprop.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> Tag.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> Translation.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> User.getLinkedObjects
(String type, Pager... pager) <P extends ParaObject>
List<P> Vote.getLinkedObjects
(String type, Pager... pager) Modifier and TypeMethodDescriptionboolean
App.addDatatypes
(ParaObject... objects) Adds unknown types to this app's list of data types.void
Linker.addNestedObject
(ParaObject obj) Add an object to nest inside the linker object.boolean
User.canModify
(ParaObject obj) Note: this method assumes that child objects can be modified by their parents.boolean
Address.isLinked
(ParaObject toObj) boolean
App.isLinked
(ParaObject toObj) boolean
Linkable.isLinked
(ParaObject toObj) Checks if a given object is linked to this one.boolean
Linker.isLinked
(ParaObject toObj) boolean
Sysprop.isLinked
(ParaObject toObj) boolean
Tag.isLinked
(ParaObject toObj) boolean
Translation.isLinked
(ParaObject toObj) boolean
User.isLinked
(ParaObject toObj) boolean
Vote.isLinked
(ParaObject toObj) boolean
App.permissionsContainOwnKeyword
(User user, ParaObject object) Check if the permissions map contains "OWN" keyword, which restricts access to objects to their creators. -
Uses of ParaObject in com.erudika.para.core.persistence
Modifier and TypeMethodDescription<P extends ParaObject>
StringPersists an object to the data store.<P extends ParaObject>
StringDAO.create
(P object) Persists an object to the data store.<P extends ParaObject>
String<P extends ParaObject>
StringMockDAO.create
(P so) <P extends ParaObject>
voidSaves multiple objects to the data store.<P extends ParaObject>
voidSaves multiple objects to the data store.<P extends ParaObject>
void<P extends ParaObject>
void<P extends ParaObject>
voidDeletes an object permanently.<P extends ParaObject>
voidDAO.delete
(P object) Deletes an object permanently.<P extends ParaObject>
void<P extends ParaObject>
voidMockDAO.delete
(P so) <P extends ParaObject>
voidDeletes multiple objects.<P extends ParaObject>
voidDeletes multiple objects.<P extends ParaObject>
void<P extends ParaObject>
void<P extends ParaObject>
PRetrieves an object from the data store.<P extends ParaObject>
PRetrieves an object from the data store.<P extends ParaObject>
P<P extends ParaObject>
P<P extends ParaObject>
Map<String, P> Retrieves multiple objects from the data store.<P extends ParaObject>
Map<String, P> Retrieves multiple objects from the data store.<P extends ParaObject>
Map<String, P> <P extends ParaObject>
Map<String, P> <P extends ParaObject>
List<P> Reads a fixed number of objects.<P extends ParaObject>
List<P> Reads a fixed number of objects.<P extends ParaObject>
List<P> <P extends ParaObject>
List<P> <P extends ParaObject>
voidUpdates an object permanently.<P extends ParaObject>
voidDAO.update
(P object) Updates an object permanently.<P extends ParaObject>
void<P extends ParaObject>
voidMockDAO.update
(P so) <P extends ParaObject>
voidUpdates multiple objects.<P extends ParaObject>
voidUpdates multiple objects.<P extends ParaObject>
void<P extends ParaObject>
void -
Uses of ParaObject in com.erudika.para.core.search
Modifier and TypeMethodDescription<P extends ParaObject>
P<P extends ParaObject>
P<P extends ParaObject>
PSimple id search.<P extends ParaObject>
PSimple id search.<P extends ParaObject>
List<P> <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Simple multi id search.<P extends ParaObject>
List<P> Simple multi id search.<P extends ParaObject>
List<P> MockSearch.findNearby
(String type, String query, int radius, double lat, double lng, Pager... pager) <P extends ParaObject>
List<P> MockSearch.findNearby
(String appid, String type, String query, int radius, double lat, double lng, Pager... pager) <P extends ParaObject>
List<P> Search.findNearby
(String type, String query, int radius, double lat, double lng, Pager... pager) Search forAddress
objects in a radius of X km from a given point.<P extends ParaObject>
List<P> Search.findNearby
(String appid, String type, String query, int radius, double lat, double lng, Pager... pager) Search forAddress
objects in a radius of X km from a given point.<P extends ParaObject>
List<P> MockSearch.findNestedQuery
(String type, String field, String query, Pager... pager) <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Search.findNestedQuery
(String type, String field, String query, Pager... pager) Searches within a nested field.<P extends ParaObject>
List<P> Searches within a nested field.<P extends ParaObject>
List<P> MockSearch.findPrefix
(String type, String field, String prefix, Pager... pager) <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Search.findPrefix
(String type, String field, String prefix, Pager... pager) Searches for objects that have a property which value starts with a given prefix.<P extends ParaObject>
List<P> Searches for objects that have a property which value starts with a given prefix.<P extends ParaObject>
List<P> <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Query string search.<P extends ParaObject>
List<P> Query string search.<P extends ParaObject>
List<P> MockSearch.findSimilar
(String type, String filterKey, String[] fields, String liketext, Pager... pager) <P extends ParaObject>
List<P> MockSearch.findSimilar
(String appid, String type, String filterKey, String[] fields, String liketext, Pager... pager) <P extends ParaObject>
List<P> Searches for objects that have similar property values to a given text.<P extends ParaObject>
List<P> Search.findSimilar
(String appid, String type, String filterKey, String[] fields, String liketext, Pager... pager) Searches for objects that have similar property values to a given text.<P extends ParaObject>
List<P> MockSearch.findTagged
(String type, String[] tags, Pager... pager) <P extends ParaObject>
List<P> MockSearch.findTagged
(String appid, String type, String[] tags, Pager... pager) <P extends ParaObject>
List<P> Search.findTagged
(String type, String[] tags, Pager... pager) Searches for objects tagged with one or more tags.<P extends ParaObject>
List<P> Search.findTagged
(String appid, String type, String[] tags, Pager... pager) Searches for objects tagged with one or more tags.<P extends ParaObject>
List<P> <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Searches forTag
objects.<P extends ParaObject>
List<P> Searches forTag
objects.<P extends ParaObject>
List<P> <P extends ParaObject>
List<P> MockSearch.findTermInList
(String type, String field, List<?> terms, Pager... pager) <P extends ParaObject>
List<P> Searches for objects having a property value that is in list of possible values.<P extends ParaObject>
List<P> Search.findTermInList
(String type, String field, List<?> terms, Pager... pager) Searches for objects having a property value that is in list of possible values.<P extends ParaObject>
List<P> MockSearch.findTerms
(String appid, String type, Map<String, ?> terms, boolean matchAll, Pager... pager) <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Searches for objects that have properties matching some given values.<P extends ParaObject>
List<P> Searches for objects that have properties matching some given values.<P extends ParaObject>
List<P> MockSearch.findWildcard
(String type, String field, String wildcard, Pager... pager) <P extends ParaObject>
List<P> <P extends ParaObject>
List<P> Search.findWildcard
(String type, String field, String wildcard, Pager... pager) Searches for objects that have a property with a value matching a wildcard query.<P extends ParaObject>
List<P> Searches for objects that have a property with a value matching a wildcard query.<P extends ParaObject>
void<P extends ParaObject>
void<P extends ParaObject>
voidIndexes multiple objects in a batch operation.<P extends ParaObject>
voidIndexes multiple objects in a batch operation.<P extends ParaObject>
voidMockSearch.unindexAll
(String appid, List<P> objects) <P extends ParaObject>
voidMockSearch.unindexAll
(List<P> objects) <P extends ParaObject>
voidSearch.unindexAll
(String appid, List<P> objects) Removes multiple objects from the index in a batch operation.<P extends ParaObject>
voidSearch.unindexAll
(List<P> objects) Removes multiple objects from the index in a batch operation.Modifier and TypeMethodDescriptionvoid
MockSearch.index
(ParaObject po) void
MockSearch.index
(String appid, ParaObject po) void
Search.index
(ParaObject po) Indexes an object.void
Search.index
(String appid, ParaObject po) Indexes an object.void
MockSearch.unindex
(ParaObject po) void
MockSearch.unindex
(String appid, ParaObject po) void
Search.unindex
(ParaObject po) Removes an object from the index.void
Search.unindex
(String appid, ParaObject po) Removes an object from the index. -
Uses of ParaObject in com.erudika.para.core.utils
Modifier and TypeMethodDescriptionabstract <P extends ParaObject>
List<P> CoreUtils.findChildren
(ParaObject obj, String type2, String query, Pager... pager) Searches through child objects in a one-to-many relationship.abstract <P extends ParaObject>
List<P> CoreUtils.findLinkedObjects
(ParaObject obj, String type2, String field, String query, Pager... pager) Searches through all linked objects in many-to-many relationships.static <P extends ParaObject>
PConverts a JSON string to a domain object.static <P extends ParaObject>
Map<String, Object> ParaObjectUtils.getAnnotatedFields
(P pojo) static <P extends ParaObject>
Map<String, Object> ParaObjectUtils.getAnnotatedFields
(P pojo, boolean flattenNestedObjectsToString) static <P extends ParaObject>
Map<String, Object> ParaObjectUtils.getAnnotatedFields
(P pojo, Class<? extends Annotation> filter) static <P extends ParaObject>
Map<String, Object> ParaObjectUtils.getAnnotatedFields
(P pojo, Class<? extends Annotation> filter, boolean flattenNestedObjectsToString) Returns a map of annotated fields of a domain object.abstract <P extends ParaObject>
List<P> CoreUtils.getChildren
(ParaObject obj, String type2, Pager... pager) Returns all child objects linked to this object.abstract <P extends ParaObject>
List<P> CoreUtils.getChildren
(ParaObject obj, String type2, String field, String term, Pager... pager) Returns all child objects linked to this object.abstract <P extends ParaObject>
PCoreUtils.getCreator
(ParaObject obj) The user object of the creator.abstract <P extends ParaObject>
List<P> CoreUtils.getLinkedObjects
(ParaObject obj, String type2, Pager... pager) Returns all objects linked to the given one.abstract <P extends ParaObject>
PCoreUtils.getParent
(ParaObject obj) The parent object.static <P extends ParaObject>
PParaObjectUtils.setAnnotatedFields
(Map<String, Object> data) static <P extends ParaObject>
PParaObjectUtils.setAnnotatedFields
(P pojo, Map<String, Object> data, Class<? extends Annotation> filter) Converts a map of fields/values to a domain object.static <P extends ParaObject>
StringParaObjectUtils.toJSON
(P obj) Converts a domain object to JSON.static <P extends ParaObject>
PConstructs a new instance of a core object.Modifier and TypeMethodDescriptionstatic Map
<String, Class<? extends ParaObject>> ParaObjectUtils.getCoreClassesMap()
Searches through the Para core package andConfig.CORE_PACKAGE_NAME
package forParaObject
subclasses and adds their names them to the map.static Class
<? extends ParaObject> Converts a class name to a real Class object.static Class
<? extends ParaObject> ParaObjectUtils.toClass
(String type, Class<? extends ParaObject> defaultClass) Converts a class name to a realParaObject
subclass.Modifier and TypeMethodDescriptionabstract Long
CoreUtils.countChildren
(ParaObject obj, String type2) Count the total number of child objects for this object.abstract Long
CoreUtils.countLinks
(ParaObject obj, String type2) Count the total number of links between this object and another type of object.abstract void
CoreUtils.deleteChildren
(ParaObject obj, String type2) Deletes all child objects permanently.abstract <P extends ParaObject>
List<P> CoreUtils.findChildren
(ParaObject obj, String type2, String query, Pager... pager) Searches through child objects in a one-to-many relationship.abstract <P extends ParaObject>
List<P> CoreUtils.findLinkedObjects
(ParaObject obj, String type2, String field, String query, Pager... pager) Searches through all linked objects in many-to-many relationships.abstract <P extends ParaObject>
List<P> CoreUtils.getChildren
(ParaObject obj, String type2, Pager... pager) Returns all child objects linked to this object.abstract <P extends ParaObject>
List<P> CoreUtils.getChildren
(ParaObject obj, String type2, String field, String term, Pager... pager) Returns all child objects linked to this object.abstract <P extends ParaObject>
PCoreUtils.getCreator
(ParaObject obj) The user object of the creator.abstract <P extends ParaObject>
List<P> CoreUtils.getLinkedObjects
(ParaObject obj, String type2, Pager... pager) Returns all objects linked to the given one.CoreUtils.getLinks
(ParaObject obj, String type2, Pager... pager) Returns a list of all Linker objects for a given object.abstract String
CoreUtils.getObjectURI
(ParaObject obj) Returns the relative path to the object, e.g.static String
Utils.getObjectURI
(ParaObject obj, boolean includeName, boolean includeId) Returns the default URL for a given domain object.abstract <P extends ParaObject>
PCoreUtils.getParent
(ParaObject obj) The parent object.abstract boolean
CoreUtils.isLinked
(ParaObject obj, ParaObject toObj) Checks if a given object is linked to this one.abstract boolean
CoreUtils.isLinked
(ParaObject obj, String type2, String id2) Checks if this object is linked to another.abstract String
CoreUtils.link
(ParaObject obj, String id2) Links two objects in a many-to-many relationship.abstract String
CoreUtils.link
(ParaObject obj, String id2, String metadata) Links two objects in a many-to-many relationship.abstract String
CoreUtils.overwrite
(ParaObject obj) Creates the object again (use with caution!).abstract String
CoreUtils.overwrite
(String appid, ParaObject obj) Creates the object again (use with caution!).static boolean
ParaObjectUtils.typesMatch
(ParaObject so) Checks if the type of an object matches its real Class name.abstract void
CoreUtils.unlink
(ParaObject obj, String type2, String id2) Unlinks an object from this one.abstract void
CoreUtils.unlinkAll
(ParaObject obj) Unlinks all objects that are linked to this one.abstract boolean
CoreUtils.vote
(ParaObject votable, String userid, Votable.VoteValue upDown) Casts a vote on a given object.abstract boolean
CoreUtils.vote
(ParaObject votable, String userid, Votable.VoteValue upDown, Integer expiresAfter, Integer lockedAfter) Casts a vote on a given object.Modifier and TypeMethodDescriptionUtils.getAllDeclaredFields
(Class<? extends ParaObject> clazz) Returns a list of all declared fields in a class.static Class
<? extends ParaObject> ParaObjectUtils.toClass
(String type, Class<? extends ParaObject> defaultClass) Converts a class name to a realParaObject
subclass.static String
Utils.type
(Class<? extends ParaObject> clazz) Returns the simple name of a class in lowercase (AKA the type). -
Uses of ParaObject in com.erudika.para.core.validation
Modifier and TypeMethodDescriptionstatic boolean
ValidationUtils.isValidObject
(App app, ParaObject obj) Validates objects using Hibernate Validator.static boolean
ValidationUtils.isValidObject
(ParaObject obj) Validates objects using Hibernate Validator.static String[]
ValidationUtils.validateObject
(App app, ParaObject content) Validates objects.static String[]
ValidationUtils.validateObject
(ParaObject content) Validates objects using Hibernate Validator.