@Transactional(readOnly=false) public class AssetServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements AssetService
| Constructor and Description |
|---|
AssetServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
AssetCommand |
getAssetByNodeId(int nodeId)
Calling this method will return a
AssetCommand with contains all
asset data and additional data for GWT asset ui. |
AssetRecordDao |
getAssetRecordDao()
getAssetRecordDao
|
AssetSuggCommand |
getAssetSuggestions()
Calling this method will return an
AssetSuggCommand that contains
all suggestions for all FieldSetSuggestBoxes at the GWT asset ui. |
NodeDao |
getNodeDao()
getNodeDao
|
static <T> T |
sanitizeBeanStringProperties(T bean,
Set<String> allowHtmlFields)
sanitizeBeanStringProperties
|
Boolean |
saveOrUpdateAssetByNodeId(int nodeId,
AssetCommand assetCommand)
Calling this method will save or update a OnmsAsset by the given
AssetCommand. |
void |
setAssetRecordDao(AssetRecordDao assetRecordDao)
setAssetRecordDao
|
void |
setNodeDao(NodeDao nodeDao)
setNodeDao
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static <T> T sanitizeBeanStringProperties(T bean,
Set<String> allowHtmlFields)
sanitizeBeanStringProperties
This is a simple method is used to sanitize all bean string properties.public AssetCommand getAssetByNodeId(int nodeId)
AssetCommand with contains all
asset data and additional data for GWT asset ui. If no OnmsNode is found
by given nodeId a exception will occur.getAssetByNodeId in interface AssetServicenodeId - related to OnmsNode.AssetCommand by the given nodeIdpublic AssetSuggCommand getAssetSuggestions()
AssetSuggCommand that contains
all suggestions for all FieldSetSuggestBoxes at the GWT asset ui.getAssetSuggestions in interface AssetServiceAssetSuggCommandpublic Boolean saveOrUpdateAssetByNodeId(int nodeId, AssetCommand assetCommand)
AssetCommand. Problems will be thrown as exceptions.saveOrUpdateAssetByNodeId in interface AssetServicenodeId - related to OnmsNode.public AssetRecordDao getAssetRecordDao()
getAssetRecordDao
OnmsAssetRecordpublic void setAssetRecordDao(AssetRecordDao assetRecordDao)
setAssetRecordDao
m_assetRecordDao - a OnmsAssetRecordCopyright © 2015. All rights reserved.