/*
 * Copyright (C) 2017 Black Duck Software Inc.
 * http://www.blackducksoftware.com/
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Black Duck Software ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Black Duck Software.
 */
package com.blackducksoftware.integration.hub.dataservice.versionbomcomponent.model;

import java.util.Set;

import com.blackducksoftware.integration.hub.model.enumeration.MatchedFileUsageEnum;
import com.blackducksoftware.integration.hub.model.view.MatchedFilesView;
import com.blackducksoftware.integration.hub.model.view.components.FilePathView;

public class MatchedFilesModel {
    private final String path;
    private final String archiveContext;
    private final String fileName;
    private final String compositePathContext;
    private final Set<MatchedFileUsageEnum> usages;

    public MatchedFilesModel(final MatchedFilesView matchedFile) {
        final FilePathView pathView = matchedFile.filePath;
        this.path = pathView.path;
        this.archiveContext = pathView.archiveContext;
        this.fileName = pathView.fileName;
        this.compositePathContext = pathView.compositePathContext;
        this.usages = matchedFile.usages;
    }

    public String getPath() {
        return path;
    }

    public String getArchiveContext() {
        return archiveContext;
    }

    public String getFileName() {
        return fileName;
    }

    public String getCompositePathContext() {
        return compositePathContext;
    }

    public Set<MatchedFileUsageEnum> getUsages() {
        return usages;
    }
}

@@ -1,10 +1,28 @@
 /*
+*%0A * Hub Common%0A *
 %0A * Copy
@@ -55,16 +55,17 @@
 Software
+,
  Inc.%0A *
@@ -105,85 +105,178 @@
 /%0A *
- All rights reserved.%0A *%0A * This software is the confidential and proprietary
+%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements. See the NOTICE file%0A * distributed with this work for additional
  inf
@@ -287,243 +287,619 @@
 tion
- of
 %0A * 
-Black Duck Software (%22Confidential Information%22). You shall not%0A * disclose such Confidential Information and shall use it only in%0A * accordance with the terms of
+regarding copyright ownership. The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License. You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied. See
  the 
-l
+L
 icense 
-agreement you entered into%0A * with Black Duck Softwar
+for the%0A * specific language governing permissions and limitations%0A * under the Licens
 e.%0A 

Update licenses.