Class Device<D extends Device<D,T>,T extends DeviceType>
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
ru.bitel.oss.kernel.entity.common.bean.Entity
ru.bitel.oss.systems.inventory.resource.common.bean.Device<D,T>
- All Implemented Interfaces:
Transferable
,Serializable
,GuiTitlable
,Idable
,ListItem
,TreeNode<D>
- Direct Known Subclasses:
InetDevice
,InvDevice
,TvDevice
,VoiceDevice
public abstract class Device<D extends Device<D,T>,T extends DeviceType>
extends Entity
implements TreeNode<D>, Transferable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected Date
protected Date
protected T
protected int
protected String
protected String
protected boolean
protected int
protected String
protected String
protected Date
Fields inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
entitySpecId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionD[]
findCodePath
(int pid) static String
generateTitle
(String identifier, String host, String type) static String
generateTitle
(Device<?, ?> device, DeviceType type) int
getHost()
getHosts()
int
int
getSort()
getTransferData
(DataFlavor flavor) boolean
isDataFlavorSupported
(DataFlavor flavor) boolean
static void
void
setChildren
(List<D> children) void
setComment
(String comment) void
void
setDateFrom
(Date dateFrom) void
void
setDeviceGroupIds
(Set<Integer> deviceGroupIds) void
setDeviceType
(T deviceType) void
setDeviceTypeId
(int deviceTypeId) void
void
setIdentifier
(String identifier) void
setOrderManagerDisabled
(boolean orderManagerDisabled) void
setParentId
(int parentId) void
setPassword
(String password) void
void
setSort
(int sort) void
void
setUptimeTime
(Date uptimeCheckTime) void
setUsername
(String user) Methods inherited from class ru.bitel.oss.kernel.entity.common.bean.Entity
getEntityId, setEntityId
Methods inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
getEntityAttributes, getEntitySpecId, setEntityAttributes, setEntitySpecId
Methods inherited from class ru.bitel.common.model.IdTitle
getGuiTitle, getTitle, setTitle, toIdTitle, toString
Methods inherited from class ru.bitel.common.model.Id
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
-
Field Details
-
deviceTypeId
protected int deviceTypeId -
deviceType
-
identifier
-
host
-
deviceGroupIds
-
secret
-
config
-
comment
-
parentId
protected int parentId -
children
-
uptime
-
uptimeTime
-
dateFrom
-
dateTo
-
orderManagerDisabled
protected boolean orderManagerDisabled
-
-
Constructor Details
-
Device
public Device()
-
-
Method Details
-
getSort
public int getSort() -
setSort
public void setSort(int sort) -
getDeviceTypeId
public int getDeviceTypeId() -
setDeviceTypeId
public void setDeviceTypeId(int deviceTypeId) -
getParentId
public int getParentId() -
setParentId
public void setParentId(int parentId) -
getDeviceType
-
setDeviceType
-
getIdentifier
-
setIdentifier
-
getDeviceGroupIds
-
setDeviceGroupIds
-
getHost
-
getHosts
-
main
-
getHostsAsString
-
setHost
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getSecret
-
setSecret
-
getConfig
-
setConfig
-
getChildren
-
setChildren
-
getComment
-
setComment
-
getUptime
-
setUptime
-
getUptimeTime
-
setUptimeTime
-
generateTitle
-
generateTitle
-
findCodePath
-
getDateFrom
-
setDateFrom
-
getDateTo
-
setDateTo
-
isOrderManagerDisabled
public boolean isOrderManagerDisabled() -
setOrderManagerDisabled
public void setOrderManagerDisabled(boolean orderManagerDisabled) -
getTransferDataFlavors
- Specified by:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
-