Class AssetSuggestionsRestService

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Component("assetSuggestionsRestService")
    @Path("assets")
    public class AssetSuggestionsRestService
    extends OnmsRestService
    implements org.springframework.beans.factory.InitializingBean
    The Class AssetSuggestionsRestService.
    Author:
    Alejandro Galue
    • Field Detail

      • m_assetDao

        @Autowired
        protected AssetRecordDao m_assetDao
        The Asset DAO.
    • Constructor Detail

      • AssetSuggestionsRestService

        public AssetSuggestionsRestService()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getAssetSuggestions

        @GET
        @Path("suggestions")
        @Produces({"application/xml","application/json","application/atom+xml"})
        public AssetSuggestionsRestService.Suggestions getAssetSuggestions()
        Gets the asset suggestions.
        Returns:
        the asset suggestions