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("/")
39 .append("/artifacts/");
40 this.url = urlBuilder.toString();
48 private String description;
49 private String creator;
50 private String creationTime;
51 private String lastUpdater;
52 private String lastUpdateTime;
53 private String checksum;
55 public String getName() {
59 public void setName(String name) {
63 public String getUrl() {
67 public void setUrl(String url) {
71 public String getId() {
75 public void setId(String id) {
79 public String getType() {
83 public void setType(String type) {
87 public String getDescription() {
91 public void setDescription(String description) {
92 this.description = description;
95 public String getCreator() {
99 public void setCreator(String creator) {
100 this.creator = creator;
103 public String getCreationTime() {
107 public void setCreationTime(String creationTime) {
108 this.creationTime = creationTime;
111 public String getLastUpdater() {
115 public void setLastUpdater(String lastUpdater) {
116 this.lastUpdater = lastUpdater;
119 public String getLastUpdateTime() {
120 return lastUpdateTime;
123 public void setLastUpdateTime(String lastUpdateTime) {
124 this.lastUpdateTime = lastUpdateTime;
127 public String getChecksum() {
131 public void setChecksum(String checksum) {
132 this.checksum = checksum;