@Entity public class OnmsMap extends Object implements Serializable
OnmsMap class.
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_MODE_ADMIN
Constant
ACCESS_MODE_ADMIN="RW" |
static String |
ACCESS_MODE_GROUP
Constant
ACCESS_MODE_GROUP="RWRO" |
static String |
ACCESS_MODE_USER
Constant
ACCESS_MODE_USER="RO" |
static String |
AUTOMATIC_SAVED_MAP
Constant
AUTOMATIC_SAVED_MAP="S" |
static String |
AUTOMATICALLY_GENERATED_MAP
Constant
AUTOMATICALLY_GENERATED_MAP="A" |
static String |
DELETED_MAP
Constant
DELETED_MAP="D" |
static String |
USER_GENERATED_MAP
Constant
USER_GENERATED_MAP="U" |
Constructor and Description |
---|
OnmsMap()
Constructor for OnmsMap.
|
OnmsMap(String name,
String owner)
Constructor for OnmsMap.
|
OnmsMap(String name,
String owner,
int width,
int height)
Constructor for OnmsMap.
|
OnmsMap(String name,
String owner,
String accessMode,
int width,
int height)
Constructor for OnmsMap.
|
OnmsMap(String name,
String mapGroup,
String background,
String owner,
String accessMode,
String type,
int width,
int height)
Constructor for OnmsMap.
|
Modifier and Type | Method and Description |
---|---|
void |
addMapElement(OnmsMapElement element)
addMapElement
|
String |
getAccessMode()
Getter for the field
accessMode . |
String |
getBackground()
Getter for the field
background . |
Date |
getCreateTime()
Getter for the field
createTime . |
int |
getHeight()
Getter for the field
height . |
int |
getId()
Getter for the field
id . |
Date |
getLastModifiedTime()
Getter for the field
lastModifiedTime . |
Set<OnmsMapElement> |
getMapElements()
Getter for the field
mapElements . |
String |
getMapGroup()
Getter for the field
mapGroup . |
String |
getMapId()
getMapId
|
String |
getName()
Getter for the field
name . |
int |
getOffsetX()
Getter for the field
offsetX . |
int |
getOffsetY()
Getter for the field
offsetY . |
String |
getOwner()
Getter for the field
owner . |
float |
getScale()
Getter for the field
scale . |
String |
getType()
Getter for the field
type . |
String |
getUserLastModifies()
Getter for the field
userLastModifies . |
int |
getWidth()
Getter for the field
width . |
void |
setAccessMode(String accessMode)
Setter for the field
accessMode . |
void |
setBackground(String background)
Setter for the field
background . |
void |
setCreateTime(Date createTime)
Setter for the field
createTime . |
void |
setHeight(int height)
Setter for the field
height . |
void |
setId(int id)
Setter for the field
id . |
void |
setLastModifiedTime(Date lastModifiedTime)
Setter for the field
lastModifiedTime . |
void |
setMapElements(Set<OnmsMapElement> mapElements)
Setter for the field
mapElements . |
void |
setMapGroup(String mapGroup)
Setter for the field
mapGroup . |
void |
setName(String name)
Setter for the field
name . |
void |
setOffsetX(int offsetX)
Setter for the field
offsetX . |
void |
setOffsetY(int offsetY)
Setter for the field
offsetY . |
void |
setOwner(String owner)
Setter for the field
owner . |
void |
setScale(float scale)
Setter for the field
scale . |
void |
setType(String type)
Setter for the field
type . |
void |
setUserLastModifies(String userLastModifies)
Setter for the field
userLastModifies . |
void |
setWidth(int width)
Setter for the field
width . |
public static final String USER_GENERATED_MAP
USER_GENERATED_MAP="U"
public static final String AUTOMATICALLY_GENERATED_MAP
AUTOMATICALLY_GENERATED_MAP="A"
public static final String AUTOMATIC_SAVED_MAP
AUTOMATIC_SAVED_MAP="S"
public static final String DELETED_MAP
DELETED_MAP="D"
public static final String ACCESS_MODE_ADMIN
ACCESS_MODE_ADMIN="RW"
public static final String ACCESS_MODE_USER
ACCESS_MODE_USER="RO"
public static final String ACCESS_MODE_GROUP
ACCESS_MODE_GROUP="RWRO"
public OnmsMap()
Constructor for OnmsMap.
public OnmsMap(String name, String owner, String accessMode, int width, int height)
Constructor for OnmsMap.
public int getId()
Getter for the field id
.
public void setId(int id)
Setter for the field id
.
id
- a int.public void setName(String name)
Setter for the field name
.
name
- a String
object.public void setMapGroup(String mapGroup)
Setter for the field mapGroup
.
mapGroup
- a String
object.public String getBackground()
Getter for the field background
.
String
object.public void setBackground(String background)
Setter for the field background
.
background
- a String
object.public void setOwner(String owner)
Setter for the field owner
.
owner
- a String
object.public String getAccessMode()
Getter for the field accessMode
.
String
object.public void setAccessMode(String accessMode)
Setter for the field accessMode
.
accessMode
- a String
object.public String getUserLastModifies()
Getter for the field userLastModifies
.
String
object.public void setUserLastModifies(String userLastModifies)
Setter for the field userLastModifies
.
userLastModifies
- a String
object.public void setCreateTime(Date createTime)
Setter for the field createTime
.
createTime
- a Date
object.public Date getLastModifiedTime()
Getter for the field lastModifiedTime
.
Date
object.public void setLastModifiedTime(Date lastModifiedTime)
Setter for the field lastModifiedTime
.
lastModifiedTime
- a Date
object.public float getScale()
Getter for the field scale
.
public void setScale(float scale)
Setter for the field scale
.
scale
- a float.public int getOffsetX()
Getter for the field offsetX
.
public void setOffsetX(int offsetX)
Setter for the field offsetX
.
offsetX
- a int.public int getOffsetY()
Getter for the field offsetY
.
public void setOffsetY(int offsetY)
Setter for the field offsetY
.
offsetY
- a int.public void setType(String type)
Setter for the field type
.
type
- a String
object.public int getWidth()
Getter for the field width
.
public void setWidth(int width)
Setter for the field width
.
width
- a int.public int getHeight()
Getter for the field height
.
public void setHeight(int height)
Setter for the field height
.
height
- a int.public Set<OnmsMapElement> getMapElements()
Getter for the field mapElements
.
Set
object.public void setMapElements(Set<OnmsMapElement> mapElements)
Setter for the field mapElements
.
mapElements
- a Set
object.public void addMapElement(OnmsMapElement element)
addMapElement
element
- a OnmsMapElement
object.Copyright © 2015. All rights reserved.