public final class PortalPropertySetter extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
get(String propertyPath)
Get a portal property via the provided path
|
static Object |
getUnchecked(String propertyPath)
Get a portal property via the provided path.
|
static void |
set(String propertyPath,
Object value)
Set the portal property identified via propertyPath to the provided value
|
static void |
setUnchecked(String propertyPath,
Object value)
Set the portal property identified via propertyPath to the provided
value.
|
public static Object get(String propertyPath) throws UnknownPropertyException
propertyPath
- path to identify the propertyUnknownPropertyException
- if the property path leads straight to
nowherepublic static Object getUnchecked(String propertyPath)
get(String)
,
this method will not throw an exception, when the given path does not
lead to a known property, but simply returns null in such cases.propertyPath
- path to identify the propertypublic static void set(String propertyPath, Object value) throws InsufficientPrivilegesException, UnknownPropertyException
propertyPath
- to identify the portal propertyvalue
- to be setInsufficientPrivilegesException
- if property may not be set due to
privilege restrictionsUnknownPropertyException
- if the property is not knownpublic static void setUnchecked(String propertyPath, Object value)
set(String, Object)
, this method will not throw
an exception when the property is not known or the user may not modify
the properties value.propertyPath
- to identify the portal propertyvalue
- to be setCopyright © 2017 Gentics Software. All Rights Reserved.