public interface DictionaryService
Modifier and Type | Method and Description |
---|---|
java.io.File |
exportDictionary()
Exports all data in the dictionary service to an XML file
by calling a pojoToXml marshalling method.
|
OCAspectDefinition |
getAspect(java.lang.String aspectName)
Gets an
OCAspectDefinition by OC name. |
java.util.Map<java.lang.String,OCAspectDefinition> |
getAspectDefinitions()
Gets a map keyed by aspect name
|
java.util.Map<OCPropertyDefinition,OCAspectDefinition> |
getAspectDefinitionsByPropertyDefinition()
Gets a Map of OCProperty definitions and the OCAspectDefinitions
This maps a property to the aspect it comes from
|
java.util.Set<java.lang.String> |
getAspects()
Gets a list of Aspect Names
|
OCPropertyDefinition |
getPropertyDefinition(java.lang.String propertyName)
Gets an
OCPropertyDefinition by OC name. |
OCPropertyDefinition |
getPropertyDefinitionByRepoName(java.lang.String propertyName)
Gets an
OCPropertyDefinition by repo name. |
OCTypeDefinition |
getType(java.lang.String typeName)
Gets an
OCTypeDefinition by OC name. |
OCTypeDefinition |
getTypeByRepoName(java.lang.String repoType)
Gets an
OCTypeDefinition by repo name. |
java.util.Map<java.lang.String,OCTypeDefinition> |
getTypeDefinitions()
Gets a map keyed by ocType name
|
java.util.Set<java.lang.String> |
getTypes()
Gets a list of OC Type Names
|
java.lang.String |
updateDictionary()
Refreshes the Dictionary.
|
java.lang.String |
updateJsonDictionary(java.lang.String ticket,
javax.servlet.http.HttpServletRequest request)
Updates the dictionary json.
|
java.util.Set<java.lang.String> getTypes()
Set
of OC Type Namesjava.util.Map<OCPropertyDefinition,OCAspectDefinition> getAspectDefinitionsByPropertyDefinition()
java.util.Map<java.lang.String,OCTypeDefinition> getTypeDefinitions()
Map
keyed by ocType Name.OCTypeDefinition getType(java.lang.String typeName)
OCTypeDefinition
by OC name.
If the OC name isn't in the dictionary this method returns null.typeName
- OCTypeDefinition
. if the OC name isn't in the dictionary, returns null.OCTypeDefinition getTypeByRepoName(java.lang.String repoType)
OCTypeDefinition
by repo name.
If the repo name isn't in the dictionary this method returns null.repoType
- OCTypeDefinition
. if the repo name isn't in the dictionary, returns null.java.util.Set<java.lang.String> getAspects()
Set
of Aspect Namesjava.util.Map<java.lang.String,OCAspectDefinition> getAspectDefinitions()
Map
keyed by aspect Name.OCAspectDefinition getAspect(java.lang.String aspectName)
OCAspectDefinition
by OC name.
If the OC name isn't in the dictionary this method returns null.aspectName
- OCAspectDefinition
. if the OC name isn't in the dictionary, returns null.java.lang.String updateDictionary()
java.lang.String updateJsonDictionary(java.lang.String ticket, javax.servlet.http.HttpServletRequest request)
ticket
- request
- OCPropertyDefinition getPropertyDefinition(java.lang.String propertyName)
OCPropertyDefinition
by OC name.
If the OC name isn't in the dictionary this method returns null.propertyName
- OCPropertyDefinition
. if the OC name isn't in the dictionary, returns null.OCPropertyDefinition getPropertyDefinitionByRepoName(java.lang.String propertyName)
OCPropertyDefinition
by repo name.
If the repo name isn't in the dictionary this method returns null.propertyName
- OCPropertyDefinition
. if the repo name isn't in the dictionary, returns null.java.io.File exportDictionary()