public abstract class SharedPropertiesManager
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SharedPropertiesManager() |
Modifier and Type | Method and Description |
---|---|
static SharedPropertiesManager |
get()
Gets the SharedPropertiesManager.
|
abstract PropertyStorage |
getPropertyStorage(Project project,
java.lang.String propertyDataKey)
Returns a PropertyStorage object that wraps either the workspace
shared properties or the project properties, depending on where
the properties identified by
propertyDataKey are stored. |
abstract PropertyStorage |
getPropertyStorage(Project project,
Workspace parentWorkspace,
java.lang.String propertyDataKey)
Returns a PropertyStorage object that wraps either the workspace
shared properties or the project properties, depending on where
the properties identified by
propertyDataKey are stored. |
abstract boolean |
isUsingSharedProperties(Project project,
java.lang.String propertyDataKey)
Indicates whether the supplied project is getting the properties
identified by
propertyDataKey from the Workspace or from
the Project. |
abstract boolean |
propertiesAreShareable(java.lang.String propertyDataKey)
Indicates whether the properties identified by
propertyDataKey
have been registered to be shared at the Workspace level. |
abstract void |
setUsesSharedProperties(Project project,
java.lang.String propertyDataKey,
boolean usesShared)
Controls whether or not the supplied project gets the properties
identified by
propertyDataKey from the Workspace or from
the Project. |
public static SharedPropertiesManager get()
public abstract PropertyStorage getPropertyStorage(Project project, java.lang.String propertyDataKey)
propertyDataKey
are stored.
Note: This method will throw an IllegalStateException
if Project.getWorkspace()
returns null, which happens if
the supplied project is a copy of the original project.
In that case use getPropertyStorage(Project, Workspace, String)
instead.
project
- the Project whose properties are being retrievedpropertyDataKey
- the key to the root HashStructure
for your properties datajava.lang.IllegalStateException
- if Project.getWorkspace()
returns nullgetPropertyStorage(Project, Workspace, String)
public abstract PropertyStorage getPropertyStorage(Project project, Workspace parentWorkspace, java.lang.String propertyDataKey)
propertyDataKey
are stored.project
- the Project whose properties are being retrievedparentWorkspace
- the Project's owning WorkspacepropertyDataKey
- the key to the root HashStructure
for your properties datagetPropertyStorage(Project, String)
public abstract boolean propertiesAreShareable(java.lang.String propertyDataKey)
propertyDataKey
have been registered to be shared at the Workspace level.propertyDataKey
- the key to the root HashStructure
for your properties datatrue
if the properties are registered as shareable,
false
otherwisepublic abstract boolean isUsingSharedProperties(Project project, java.lang.String propertyDataKey)
propertyDataKey
from the Workspace or from
the Project.project
- the Project whose properties are being retrievedpropertyDataKey
- the key to the root HashStructure
for your properties datatrue
if the properties in use are those stored
in the workspace, false
otherwisepublic abstract void setUsesSharedProperties(Project project, java.lang.String propertyDataKey, boolean usesShared)
propertyDataKey
from the Workspace or from
the Project.project
- the Project whose properties are being retrievedpropertyDataKey
- the key to the root HashStructure
for your properties datausesShared
- if true,
if the properties are inherited
from the workspace; otherwise the properpties are not inherited