Package nl.tailormap.viewer.config.app
Class ConfiguredComponent
- java.lang.Object
-
- nl.tailormap.viewer.config.app.ConfiguredComponent
-
- All Implemented Interfaces:
Comparable<ConfiguredComponent>
@Entity public class ConfiguredComponent extends Object implements Comparable<ConfiguredComponent>
- Author:
- Matthijs Laan
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMIN_ONLY"adminOnly" magic prefix for "admin only" config attributes.static List<String>classesExcludedFromPushing
-
Constructor Summary
Constructors Constructor Description ConfiguredComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(ConfiguredComponent rhs)ConfiguredComponentdeepCopy(Application app)ApplicationgetApplication()StringgetClassName()StringgetConfig()Map<String,String>getDetails()LonggetId()List<ConfiguredComponent>getLinkedComponents()ConfiguredComponentgetMotherComponent()StringgetName()Set<String>getReaders()voidsetApplication(Application application)voidsetClassName(String className)voidsetConfig(String config)voidsetDetails(Map<String,String> details)voidsetId(Long id)voidsetLinkedComponents(List<ConfiguredComponent> linkedComponents)voidsetMotherComponent(ConfiguredComponent motherComponent)voidsetName(String name)voidsetReaders(Set<String> readers)org.json.JSONObjecttoJSON()Deprecated.usetoJSON(boolean)org.json.JSONObjecttoJSON(boolean hideAdminOnly)render a JSON representation of this component.
-
-
-
Field Detail
-
ADMIN_ONLY
public static final String ADMIN_ONLY
"adminOnly" magic prefix for "admin only" config attributes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getConfig
public String getConfig()
-
setConfig
public void setConfig(String config)
-
getApplication
public Application getApplication()
-
setApplication
public void setApplication(Application application)
-
getMotherComponent
public ConfiguredComponent getMotherComponent()
-
setMotherComponent
public void setMotherComponent(ConfiguredComponent motherComponent)
-
getLinkedComponents
public List<ConfiguredComponent> getLinkedComponents()
-
setLinkedComponents
public void setLinkedComponents(List<ConfiguredComponent> linkedComponents)
-
toJSON
@Deprecated public org.json.JSONObject toJSON() throws org.json.JSONException
Deprecated.usetoJSON(boolean)- Returns:
- a JSON representation of this component
- Throws:
org.json.JSONException- if any
-
toJSON
public org.json.JSONObject toJSON(boolean hideAdminOnly) throws org.json.JSONExceptionrender a JSON representation of this component.- Parameters:
hideAdminOnly- set totrueto obtain this component JSON representation without any "admin-only" attributes.- Returns:
- a JSON representation of this component
- Throws:
org.json.JSONException- if ant
-
compareTo
public int compareTo(ConfiguredComponent rhs)
- Specified by:
compareToin interfaceComparable<ConfiguredComponent>
-
deepCopy
public ConfiguredComponent deepCopy(Application app) throws Exception
- Throws:
Exception
-
-