Class CPSNamespace
java.lang.Object
dev.galasa.framework.api.common.resources.CPSNamespace
-
Constructor Summary
ModifierConstructorDescriptionprotected
CPSNamespace
(@NotNull String name, @NotNull Visibility visibility, @NotNull IFramework framework) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getProperty
(String propertyName) A method to create a CPSProperty object only if the property already exists in the store If the property does not exist in the store a null object will be returnedgetPropertyFromStore
(String propertyName) A method to create a CPSProperty within the namespace If the namesapce is hidden, a null property is returned otherwise a property is created.boolean
isHidden()
boolean
isSecure()
-
Constructor Details
-
CPSNamespace
protected CPSNamespace(@NotNull @NotNull String name, @NotNull @NotNull Visibility visibility, @NotNull @NotNull IFramework framework) throws ConfigurationPropertyStoreException
-
-
Method Details
-
getName
-
getPropertiesUrl
-
getVisibility
-
isSecure
public boolean isSecure() -
isHidden
public boolean isHidden() -
getProperties
public Map<GalasaPropertyName,CPSProperty> getProperties() throws ConfigurationPropertyStoreException -
getProperty
A method to create a CPSProperty object only if the property already exists in the store If the property does not exist in the store a null object will be returned- Parameters:
propertyName
-- Returns:
- CPSProperty
- Throws:
ConfigurationPropertyStoreException
-
getPropertyFromStore
public CPSProperty getPropertyFromStore(String propertyName) throws ConfigurationPropertyStoreException A method to create a CPSProperty within the namespace If the namesapce is hidden, a null property is returned otherwise a property is created. If the property already exists in the store, the property's value from the store will be loaded into the property as well If the property does not exist in the store, the property's value will be null- Parameters:
propertyName
-- Returns:
- CPSProperty
- Throws:
ConfigurationPropertyStoreException
-