Package de.terrestris.shoguncore.model
Class Application
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.Application
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class Application extends PersistentObject
This class represents a (GIS-)application, which can be opened in a browser. It mainly provides the initial configuration of the map.- Author:
- Nils Bühner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Application()Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pwApplication(java.lang.String name, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.BooleangetActive()org.joda.time.ReadableDateTimegetCreated()Overwrite this getter to set theJsonIgnorevalue to false for this subclass.java.lang.StringgetDescription()java.util.LocalegetLanguage()org.joda.time.ReadableDateTimegetModified()Overwrite this getter to set theJsonIgnorevalue to false for this subclass.java.lang.StringgetName()java.lang.BooleangetOpen()java.util.List<Plugin>getPlugins()java.lang.StringgetUrl()CompositeModulegetViewport()inthashCode()voidsetActive(java.lang.Boolean active)voidsetDescription(java.lang.String description)voidsetLanguage(java.util.Locale language)voidsetName(java.lang.String name)voidsetOpen(java.lang.Boolean open)voidsetPlugins(java.util.List<Plugin> plugins)voidsetUrl(java.lang.String url)voidsetViewport(CompositeModule viewport)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getGroupPermissions, getId, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Method Detail
-
getCreated
public org.joda.time.ReadableDateTime getCreated()
Overwrite this getter to set theJsonIgnorevalue to false for this subclass.- Overrides:
getCreatedin classPersistentObject- Returns:
- The date of the creation of the entity.
-
getModified
public org.joda.time.ReadableDateTime getModified()
Overwrite this getter to set theJsonIgnorevalue to false for this subclass.- Overrides:
getModifiedin classPersistentObject- Returns:
- The date of the last modification of the entity.
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getLanguage
public java.util.Locale getLanguage()
-
setLanguage
public void setLanguage(java.util.Locale language)
-
getOpen
public java.lang.Boolean getOpen()
-
setOpen
public void setOpen(java.lang.Boolean open)
-
getActive
public java.lang.Boolean getActive()
-
setActive
public void setActive(java.lang.Boolean active)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
getViewport
public CompositeModule getViewport()
- Returns:
- the viewport
-
setViewport
public void setViewport(CompositeModule viewport)
- Parameters:
viewport- the viewport to set
-
getPlugins
public java.util.List<Plugin> getPlugins()
- Returns:
- the plugins
-
setPlugins
public void setPlugins(java.util.List<Plugin> plugins)
- Parameters:
plugins- the plugins to set
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPersistentObject- See Also:
According to http://stackoverflow.com/q/27581 it is recommended to use only getter-methods when using ORM like Hibernate
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classPersistentObject- See Also:
According to http://stackoverflow.com/q/27581 it is recommended to use only getter-methods when using ORM like Hibernate
-
-