public final class PortalPropertySetter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
get(java.lang.String propertyPath)
Get a portal property via the provided path
|
static java.lang.Object |
getUnchecked(java.lang.String propertyPath)
Get a portal property via the provided path.
|
static void |
set(java.lang.String propertyPath,
java.lang.Object value)
Set the portal property identified via propertyPath to the provided value
|
static void |
setUnchecked(java.lang.String propertyPath,
java.lang.Object value)
Set the portal property identified via propertyPath to the provided
value.
|
public static java.lang.Object get(java.lang.String propertyPath) throws UnknownPropertyException
propertyPath
- path to identify the propertyUnknownPropertyException
- if the property path leads straight to
nowherepublic static java.lang.Object getUnchecked(java.lang.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(java.lang.String propertyPath, java.lang.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(java.lang.String propertyPath, java.lang.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 © 2020 Gentics Software. All Rights Reserved.