Package nl.tailormap.viewer.config.app
Class Application
- java.lang.Object
-
- nl.tailormap.viewer.config.app.Application
-
- All Implemented Interfaces:
Comparable<Application>
@Entity public class Application extends Object implements Comparable<Application>
- Author:
- Matthijs Laan, mprins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplication.TreeCache
-
Field Summary
Fields Modifier and Type Field Description static Set<String>adminOnlyDetailsstatic StringDETAIL_GLOBAL_LAYOUTstatic StringDETAIL_IS_MASHUPstatic StringDETAIL_LAST_SPINUP_TIMEMap<String,Long>idMapBooleanisMashup_cachedkeep a cached copy of our mashup status.MaporiginalToCopyMap (populated in deepCopy()) of the original persistant object from the copy source Application to the new object in this copy used for updating the references in component JSON config using id's in postPersist().static Set<String>preventClearDetails
-
Constructor Summary
Constructors Constructor Description Application()
-
Method Summary
-
-
-
Field Detail
-
DETAIL_IS_MASHUP
public static final String DETAIL_IS_MASHUP
- See Also:
- Constant Field Values
-
DETAIL_GLOBAL_LAYOUT
public static final String DETAIL_GLOBAL_LAYOUT
- See Also:
- Constant Field Values
-
DETAIL_LAST_SPINUP_TIME
public static final String DETAIL_LAST_SPINUP_TIME
- See Also:
- Constant Field Values
-
originalToCopy
public Map originalToCopy
Map (populated in deepCopy()) of the original persistant object from the copy source Application to the new object in this copy used for updating the references in component JSON config using id's in postPersist().
-
isMashup_cached
public Boolean isMashup_cached
keep a cached copy of our mashup status.
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getTitle
public String getTitle()
-
setLang
public void setLang(String lang)
-
getLang
public String getLang()
-
setTitle
public void setTitle(String title)
-
getLayout
public String getLayout()
-
setLayout
public void setLayout(String layout)
-
getDetails
public Map<String,ClobElement> getDetails()
-
setDetails
public void setDetails(Map<String,ClobElement> details)
-
isAuthenticatedRequired
public boolean isAuthenticatedRequired()
-
setAuthenticatedRequired
public void setAuthenticatedRequired(boolean authenticatedRequired)
-
getComponents
public Set<ConfiguredComponent> getComponents()
-
setComponents
public void setComponents(Set<ConfiguredComponent> components)
-
getMaxExtent
public BoundingBox getMaxExtent()
-
setMaxExtent
public void setMaxExtent(BoundingBox maxExtent)
-
getOwner
public User getOwner()
-
setOwner
public void setOwner(User owner)
-
getRoot
public Level getRoot()
-
setRoot
public void setRoot(Level root)
-
getStartExtent
public BoundingBox getStartExtent()
-
setStartExtent
public void setStartExtent(BoundingBox startExtent)
-
getAuthorizationsModified
public Date getAuthorizationsModified()
-
setAuthorizationsModified
public void setAuthorizationsModified(Date authorizationsModified)
-
getStartLayers
public List<StartLayer> getStartLayers()
-
setStartLayers
public void setStartLayers(List<StartLayer> startLayers)
-
getStartLevels
public List<StartLevel> getStartLevels()
-
setStartLevels
public void setStartLevels(List<StartLevel> startLevels)
-
getProjectionCode
public String getProjectionCode()
-
setProjectionCode
public void setProjectionCode(String projectionCode)
-
getNameWithVersion
public String getNameWithVersion()
-
getTreeCache
public Application.TreeCache getTreeCache()
-
compareTo
public int compareTo(Application o)
- Specified by:
compareToin interfaceComparable<Application>
-
setTreeCache
public void setTreeCache(Application.TreeCache treeCache)
-
loadTreeCache
public Application.TreeCache loadTreeCache(javax.persistence.EntityManager em)
-
authorizationsModified
public void authorizationsModified()
-
isMashup
public Boolean isMashup()
slow method -especially on Oracle- because it will need all keys and Oracle lazy loading sucks so clob's get pulled in as well.- Returns:
trueif we are a mashup- See Also:
isMashup(org.hibernate.Session)
-
isMashup
public Boolean isMashup(org.hibernate.Session sess)
fast access to determine if we are mashup.- Parameters:
sess- the hibernate session- Returns:
trueif we are a mashup, this may be a cached value- See Also:
isMashup()
-
findLayer
public ApplicationLayer findLayer(ApplicationLayer oldLayer)
-
postPersist
public void postPersist()
-
processCopyMap
public void processCopyMap()
-
removeOldProperties
public void removeOldProperties()
-
setGlobalLayout
public void setGlobalLayout(String globalLayout)
-
getGlobalLayout
public org.json.JSONObject getGlobalLayout() throws org.json.JSONException- Throws:
org.json.JSONException
-
-