Package org.saidone.unrest.client
Class Properties
java.lang.Object
org.saidone.unrest.client.Properties
Typed property factories shared by all write clients. Singular factories create scalars; plural factories
create explicit lists, including singleton and empty lists. Use
nullValue() to clear a scalar and
an empty plural factory to clear a list. Omit a property to preserve it on update.
The repository validates value kinds and cardinality against its dictionary; scalars and lists are never implicitly interchanged. These factories do not depend on Alfresco repository classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.saidone.unrest.api.Propertybool(boolean value) static org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertydecimal(double value) static org.saidone.unrest.api.Propertydecimals(double... values) static org.saidone.unrest.api.Propertyinteger(long value) static org.saidone.unrest.api.Propertyintegers(long... values) static org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.PropertyExplicit null for a single-valued property; list properties use an empty list instead.static org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertystatic org.saidone.unrest.api.Propertytimestamps(Instant... values)
-
Method Details
-
text
-
texts
-
integer
public static org.saidone.unrest.api.Property integer(long value) -
integers
public static org.saidone.unrest.api.Property integers(long... values) -
decimal
public static org.saidone.unrest.api.Property decimal(double value) -
decimals
public static org.saidone.unrest.api.Property decimals(double... values) -
bool
public static org.saidone.unrest.api.Property bool(boolean value) -
booleans
-
timestamp
-
timestamps
-
nodeRef
-
nodeRefs
-
qname
-
qnames
-
nullValue
public static org.saidone.unrest.api.Property nullValue()Explicit null for a single-valued property; list properties use an empty list instead.
-