Package com.denimgroup.threadfix.data.entities

Examples of com.denimgroup.threadfix.data.entities.ChannelType


      return;
    }
   
    log.info("Deleting scan with ID " + scan.getId());
   
    ChannelType type = scan.getApplicationChannel().getChannelType();
   
    if (scan.getApplication().getRemoteProviderApplications() != null) {
      for (RemoteProviderApplication app : scan.getApplication().getRemoteProviderApplications()) {
        if (app != null && app.getRemoteProviderType() != null &&
            app.getRemoteProviderType().getChannelType() != null &&
            app.getRemoteProviderType().getChannelType().getId() != null &&
            app.getRemoteProviderType().getChannelType().getId().equals(type.getId()) &&
            app.getLastImportTime() != null && scan.getImportTime() != null &&
            app.getLastImportTime().equals(scan.getImportTime()) &&
            app.getApplicationChannel() != null && app.getApplicationChannel().getScanList() != null){
          // This means that we are deleting the last scan for the importer and that we need to update the
          // last import time so that we can import more scans.
View Full Code Here


            throw new IllegalArgumentException("Invalid Generic Vulnerability ID: " + genericVulnerabilityId);
        }

        final MappingCreateResult result;

        ChannelType channelType = channelTypeDao.retrieveByName(channelName);

        if (channelType == null) {
            LOG.warn("Invalid ChannelType (" + channelName + ") submitted.");
            result = MappingCreateResult.BAD_CHANNEL_TYPE;
        } else {
View Full Code Here

        int updatedNo = 0, addedNewNo = 0;
        String updatedList = "", addedNewList = "";

        State state = State.NONE;

        ChannelType manualChannel = channelTypeDao.retrieveByName("Manual");

        String line;
        while ((line = bufferedReader.readLine()) != null) {
            if (line.startsWith("type.info")) {
                state = State.TYPE;
View Full Code Here

    protected GenericVulnerabilityDao genericVulnerabilityDao;

    public ChannelImporter getImporter(ScannerType type) {

        ApplicationChannel channel = new ApplicationChannel();
        channel.setChannelType(new ChannelType());
        channel.getChannelType().setName(type.getDbName());

        ChannelImporter importer = factory.getChannelImporter(channel);

        if (importer == null) {
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.data.entities.ChannelType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.