@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() |
AssetSuggCommand |
getAssetSuggestions()
Calling this method will return an
AssetSuggCommand that contains
all suggestions for all FieldSetSuggestBox es at the GWT asset ui. |
NodeDao |
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) |
void |
setNodeDao(NodeDao nodeDao) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public 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 AssetService
nodeId
- related to OnmsNode.AssetCommand
by the given nodeIdpublic AssetSuggCommand getAssetSuggestions()
AssetSuggCommand
that contains
all suggestions for all FieldSetSuggestBox
es at the GWT asset ui.getAssetSuggestions
in interface AssetService
AssetSuggCommand
public Boolean saveOrUpdateAssetByNodeId(int nodeId, AssetCommand assetCommand)
AssetCommand
. Problems will be thrown as exceptions.saveOrUpdateAssetByNodeId
in interface AssetService
nodeId
- related to OnmsNode.public AssetRecordDao getAssetRecordDao()
public void setAssetRecordDao(AssetRecordDao assetRecordDao)
public NodeDao getNodeDao()
public void setNodeDao(NodeDao nodeDao)
Copyright © 2017. All rights reserved.