public class CustomProperty extends Object
Constructor and Description |
---|
CustomProperty() |
Modifier and Type | Method and Description |
---|---|
protected NonLiteral |
addBasicCustomField(LockableMGraph contentGraph,
UriRef property,
int cardinality,
String label,
String description,
String config,
NonLiteral propertyCollection) |
boolean |
addMultipleCustomField(UriRef dependency,
String dependencyValue,
String label,
String description,
String config,
UriRef property,
String multiselect,
String selectableValues,
int cardinality)
Adding a customfield to select one or more values within some predefined ones
|
boolean |
addMultipleCustomField(UriRef dependency,
String dependencyValue,
String label,
UriRef property,
String multiselect,
String selectableValues,
int cardinality)
Adding a customfield to select one or more values within some predefined ones
|
boolean |
addSingleCustomField(UriRef dependency,
String dependencyValue,
String label,
String description,
String config,
UriRef property,
int length,
int cardinality)
Adding a single customfield to customize any item of a dependency
|
boolean |
addSingleCustomField(UriRef dependency,
String dependencyValue,
String label,
UriRef property,
int length,
int cardinality)
Adding a single customfield to customize any item of a dependency
|
protected void |
bindCgProvider(ContentGraphProvider cgProvider) |
boolean |
deleteCustomField(UriRef dependency,
String dependencyValue,
UriRef property)
Delete a customfield according to its collection and its property
|
UriRef |
getCustomFieldProperty(NonLiteral customfield) |
ArrayList<NonLiteral> |
getCustomfieldsOfCollection(NonLiteral collection) |
NonLiteral |
getCustomPropertyCollection(UriRef dependency,
String dependencyValue)
Get back the Resource of the collection for a specific dependency
|
ArrayList<UriRef> |
getPropertiesOfCollection(NonLiteral collection) |
protected void |
unbindCgProvider(ContentGraphProvider cgProvider) |
public boolean addSingleCustomField(UriRef dependency, String dependencyValue, String label, UriRef property, int length, int cardinality)
dependency
- type UriRef defining the dependency item of the customfielddependencyValue
- String to specify the property within the dependency typelabel
- label of the customfieldproperty
- UriRef defining the meaning of the customfieldlength
- cardinality
- public boolean addSingleCustomField(UriRef dependency, String dependencyValue, String label, String description, String config, UriRef property, int length, int cardinality)
dependency
- type UriRef defining the dependency item of the customfielddependencyValue
- String to specify the property within the dependency typelabel
- label of the customfielddescription
- the description about the usage of this custom fieldconfig
- configuration parameter for this customfieldproperty
- UriRef defining the meaning of the customfieldlength
- cardinality
- public boolean addMultipleCustomField(UriRef dependency, String dependencyValue, String label, UriRef property, String multiselect, String selectableValues, int cardinality)
dependency
- type UriRef defining the dependency item of the customfielddependencyValue
- String to specify the property within the dependency typelabel
- label of the customfieldproperty
- UriRef defining the meaning of the customfieldmultiselect
- defines if one or more values can be selectedselectableValues
- the values as a string seperated with a ","cardinality
- public boolean addMultipleCustomField(UriRef dependency, String dependencyValue, String label, String description, String config, UriRef property, String multiselect, String selectableValues, int cardinality)
dependency
- type UriRef defining the dependency item of the customfielddependencyValue
- String to specify the property within the dependency typelabel
- label of the customfielddescription
- the description about the usage of this custom fieldconfig
- configuration parameter for this customfieldproperty
- UriRef defining the meaning of the customfieldmultiselect
- defines if one or more values can be selectedselectableValues
- the values as a string seperated with a ","cardinality
- protected NonLiteral addBasicCustomField(LockableMGraph contentGraph, UriRef property, int cardinality, String label, String description, String config, NonLiteral propertyCollection)
public NonLiteral getCustomPropertyCollection(UriRef dependency, String dependencyValue)
dependency
- the type of items the collection is defining customproperties fordependencyValue
- a specification string to select the right collection within all dependency collectionspublic ArrayList<NonLiteral> getCustomfieldsOfCollection(NonLiteral collection)
collection
- public ArrayList<UriRef> getPropertiesOfCollection(NonLiteral collection)
collection
- public boolean deleteCustomField(UriRef dependency, String dependencyValue, UriRef property)
dependency
- dependencyValue
- property
- public UriRef getCustomFieldProperty(NonLiteral customfield)
customfield
- protected void bindCgProvider(ContentGraphProvider cgProvider)
protected void unbindCgProvider(ContentGraphProvider cgProvider)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.