All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
addDataType(DataTypeDefinition dataTypeDefinition) |
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
addDataType(DataTypeDefinition dataTypeDefinition,
boolean inTransaction) |
fj.data.Either<Map<String,PropertyData>,TitanOperationStatus> |
addPropertiesToElementType(String uniqueId,
NodeTypeEnum elementType,
List<PropertyDefinition> properties) |
protected fj.data.Either<Map<String,PropertyData>,TitanOperationStatus> |
addPropertiesToElementType(String uniqueId,
NodeTypeEnum nodeType,
Map<String,PropertyDefinition> propertiesMap)
add properties to element type.
|
protected TitanOperationStatus |
addPropertiesToElementType(String uniqueId,
NodeTypeEnum nodeType,
Map<String,PropertyDefinition> propertiesMap,
com.thinkaurelius.titan.core.TitanVertex elementVertex) |
TitanOperationStatus |
addPropertiesToElementType(com.thinkaurelius.titan.core.TitanVertex elementVertex,
String uniqueId,
NodeTypeEnum elementType,
List<PropertyDefinition> properties) |
TitanOperationStatus |
addPropertiesToGraph(Map<String,PropertyDefinition> properties,
String resourceId,
Map<String,DataTypeDefinition> dataTypes) |
TitanOperationStatus |
addPropertiesToGraph(com.thinkaurelius.titan.core.TitanVertex metadataVertex,
Map<String,PropertyDefinition> properties,
Map<String,DataTypeDefinition> dataTypes,
String resourceId) |
fj.data.Either<PropertyData,StorageOperationStatus> |
addProperty(String propertyName,
PropertyDefinition propertyDefinition,
String resourceId) |
fj.data.Either<PropertyData,TitanOperationStatus> |
addPropertyToGraph(String propertyName,
PropertyDefinition propertyDefinition,
String resourceId) |
TitanOperationStatus |
addPropertyToGraphByVertex(com.thinkaurelius.titan.core.TitanVertex metadataVertex,
String propertyName,
PropertyDefinition propertyDefinition,
String resourceId) |
fj.data.Either<PropertyData,TitanOperationStatus> |
addPropertyToNodeType(String propertyName,
PropertyDefinition propertyDefinition,
NodeTypeEnum nodeType,
String uniqueId) |
TitanOperationStatus |
addPropertyToNodeType(com.thinkaurelius.titan.core.TitanVertex elementVertex,
String propertyName,
PropertyDefinition propertyDefinition,
NodeTypeEnum nodeType,
String uniqueId) |
void |
addRulesToNewPropertyValue(PropertyValueData propertyValueData,
ComponentInstanceProperty resourceInstanceProperty,
String resourceInstanceId) |
ComponentInstanceProperty |
buildResourceInstanceProperty(PropertyValueData propertyValueData,
ComponentInstanceProperty resourceInstanceProperty) |
fj.data.Either<String,TitanOperationStatus> |
checkInnerType(PropertyDataDefinition propDataDef) |
protected DataTypeDefinition |
convertDTDataToDTDefinition(DataTypeData dataTypeData)
convert between graph Node object to Java object
|
PropertyDefinition |
convertPropertyDataToPropertyDefinition(PropertyData propertyDataResult,
String propertyName,
String resourceId) |
fj.data.Either<Map<String,PropertyDefinition>,StorageOperationStatus> |
deleteAllPropertiesAssociatedToNode(NodeTypeEnum nodeType,
String uniqueId)
Delete all properties of resource
|
fj.data.Either<PropertyData,StorageOperationStatus> |
deleteProperty(String propertyId) |
fj.data.Either<PropertyData,TitanOperationStatus> |
deletePropertyFromGraph(String propertyId) |
protected TitanOperationStatus |
fillProperties(String uniqueId,
Consumer<List<PropertyDefinition>> propertySetter) |
TitanOperationStatus |
findAllResourcePropertiesRecursively(String resourceId,
List<PropertyDefinition> properties)
fetch all properties under a given resource(includes its parents' resources)
|
fj.data.Either<String,TitanOperationStatus> |
findDefaultValueFromSecondPosition(List<String> pathOfComponentInstances,
String propertyUniqueId,
String defaultValue)
Find the default value from the list of component instances.
|
fj.data.Either<Map<String,PropertyDefinition>,TitanOperationStatus> |
findPropertiesOfNode(NodeTypeEnum nodeType,
String uniqueId) |
protected TitanOperationStatus |
findPropertiesOfNode(NodeTypeEnum nodeType,
String uniqueId,
List<PropertyDefinition> properties) |
org.apache.commons.lang3.tuple.ImmutablePair<TitanOperationStatus,String> |
findPropertyValue(String resourceInstanceId,
String propertyId) |
fj.data.Either<List<DataTypeData>,TitanOperationStatus> |
getAllDataTypeNodes() |
fj.data.Either<Map<String,DataTypeDefinition>,TitanOperationStatus> |
getAllDataTypes() |
fj.data.Either<List<ComponentInstanceProperty>,TitanOperationStatus> |
getAllPropertiesOfResourceInstanceOnlyPropertyDefId(String resourceInstanceUid)
return all properties associated to resource instance.
|
fj.data.Either<List<ComponentInstanceProperty>,TitanOperationStatus> |
getAllPropertiesOfResourceInstanceOnlyPropertyDefId(String resourceInstanceUid,
NodeTypeEnum instanceNodeType) |
fj.data.Either<DataTypeDefinition,TitanOperationStatus> |
getAndAddDataTypeByUid(String uniqueId,
Map<String,DataTypeDefinition> allDataTypes)
Build Data type object from graph by unique id
|
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
getDataTypeByName(String name) |
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
getDataTypeByName(String name,
boolean inTransaction) |
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
getDataTypeByNameWithoutDerived(String name) |
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
getDataTypeByNameWithoutDerived(String name,
boolean inTransaction) |
fj.data.Either<DataTypeDefinition,TitanOperationStatus> |
getDataTypeByNameWithoutDerivedDataTypes(String name) |
fj.data.Either<DataTypeDefinition,TitanOperationStatus> |
getDataTypeByUid(String uniqueId)
Build Data type object from graph by unique id
|
fj.data.Either<DataTypeDefinition,TitanOperationStatus> |
getDataTypeByUidWithoutDerivedDataTypes(String uniqueId) |
fj.data.Either<DataTypeDefinition,TitanOperationStatus> |
getDataTypeUsingName(String name) |
fj.data.Either<PropertyDefinition,StorageOperationStatus> |
getPropertyOfResource(String propertyName,
String resourceId)
get property belongs to resource
|
TitanGenericDao |
getTitanGenericDao() |
boolean |
isPropertyDefaultValueValid(IComplexDefaultValue propertyDefinition,
Map<String,DataTypeDefinition> dataTypes) |
boolean |
isPropertyExist(List<PropertyDefinition> properties,
String resourceUid,
String propertyName) |
org.apache.commons.lang3.tuple.ImmutablePair<String,Boolean> |
isPropertyInnerTypeValid(IComplexDefaultValue property,
Map<String,DataTypeDefinition> dataTypes) |
boolean |
isPropertyTypeValid(IComplexDefaultValue property) |
boolean |
isValueToscaFunction(String type,
String value)
Future - unfinished
|
static void |
main(String[] args) |
fj.data.Either<PropertyValueData,TitanOperationStatus> |
removePropertyOfResourceInstance(String propertyValueUid,
String resourceInstanceId) |
fj.data.Either<ComponentInstanceProperty,StorageOperationStatus> |
removePropertyValueFromResourceInstance(String propertyValueUid,
String resourceInstanceId,
boolean inTransaction) |
void |
setTitanGenericDao(TitanGenericDao titanGenericDao)
FOR TEST ONLY
|
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
updateDataType(DataTypeDefinition newDataTypeDefinition,
DataTypeDefinition oldDataTypeDefinition) |
fj.data.Either<DataTypeDefinition,StorageOperationStatus> |
updateDataType(DataTypeDefinition newDataTypeDefinition,
DataTypeDefinition oldDataTypeDefinition,
boolean inTransaction) |
void |
updatePropertiesByPropertyValues(Map<String,List<ComponentInstanceProperty>> resourceInstancesProperties,
Map<String,Map<String,ComponentInstanceProperty>> values) |
fj.data.Either<PropertyData,StorageOperationStatus> |
updateProperty(String propertyId,
PropertyDefinition newPropertyDefinition,
Map<String,DataTypeDefinition> dataTypes) |
void |
updatePropertyByBestMatch(String propertyUniqueId,
ComponentInstanceProperty instanceProperty,
Map<String,ComponentInstanceProperty> instanceIdToValue) |
fj.data.Either<PropertyData,TitanOperationStatus> |
updatePropertyFromGraph(String propertyId,
PropertyDefinition propertyDefinition) |
void |
updateRulesInPropertyValue(PropertyValueData propertyValueData,
ComponentInstanceProperty resourceInstanceProperty,
String resourceInstanceId)
update value of property on resource instance
|
StorageOperationStatus |
validateAndUpdateProperty(IComplexDefaultValue propertyDefinition,
Map<String,DataTypeDefinition> dataTypes) |
fj.data.Either<Object,Boolean> |
validateAndUpdatePropertyValue(String propertyType,
String value,
boolean isValidate,
String innerType,
Map<String,DataTypeDefinition> dataTypes) |
fj.data.Either<Object,Boolean> |
validateAndUpdatePropertyValue(String propertyType,
String value,
String innerType,
Map<String,DataTypeDefinition> dataTypes) |
org.apache.commons.lang3.tuple.ImmutablePair<String,Boolean> |
validateAndUpdateRules(String propertyType,
List<PropertyRule> rules,
String innerType,
Map<String,DataTypeDefinition> dataTypes,
boolean isValidate)
add property to resource instance
|