2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.openecomp.sdc.be.info;
22 import org.openecomp.sdc.be.resources.data.ESArtifactData;
24 public class ArtifactAccessInfo {
26 public ArtifactAccessInfo() {
29 public ArtifactAccessInfo(ESArtifactData artifactData) {
30 this.id = artifactData.getId();
33 public ArtifactAccessInfo(String servletContext) {
34 StringBuilder urlBuilder = new StringBuilder();
35 urlBuilder = urlBuilder.append(servletContext).append("/");
36 urlBuilder.append("resources/")
37 // .append(artifactData.getResourceId()).append("/")
38 .append("artifacts/");
39 this.url = urlBuilder.toString();
46 private String description;
47 private String creator;
48 private String creationTime;
49 private String lastUpdater;
50 private String lastUpdateTime;
51 private String checksum;
53 public String getName() {
57 public void setName(String name) {
61 public String getUrl() {
65 public void setUrl(String url) {
69 public String getId() {
73 public void setId(String id) {
77 public String getType() {
81 public void setType(String type) {
85 public String getDescription() {
89 public void setDescription(String description) {
90 this.description = description;
93 public String getCreator() {
97 public void setCreator(String creator) {
98 this.creator = creator;
101 public String getCreationTime() {
105 public void setCreationTime(String creationTime) {
106 this.creationTime = creationTime;
109 public String getLastUpdater() {
113 public void setLastUpdater(String lastUpdater) {
114 this.lastUpdater = lastUpdater;
117 public String getLastUpdateTime() {
118 return lastUpdateTime;
121 public void setLastUpdateTime(String lastUpdateTime) {
122 this.lastUpdateTime = lastUpdateTime;
125 public String getChecksum() {
129 public void setChecksum(String checksum) {
130 this.checksum = checksum;