diff options
author | Brett Porter <brett@apache.org> | 2009-11-26 02:24:35 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-11-26 02:24:35 +0000 |
commit | 3529172859a08c24e40216ab05992d3b43320efc (patch) | |
tree | 70eeac97ced5504f868e65fe148b02003db9dd87 /archiva-modules/metadata/metadata-model/src | |
parent | 9062810001dc4a4f2a20bf59e576c33d20043563 (diff) | |
download | archiva-3529172859a08c24e40216ab05992d3b43320efc.tar.gz archiva-3529172859a08c24e40216ab05992d3b43320efc.zip |
[MRM-1282] support storing facet content in the file metadata repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@884372 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-model/src')
2 files changed, 29 insertions, 2 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java new file mode 100644 index 000000000..80ac09c51 --- /dev/null +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MetadataFacetFactory.java @@ -0,0 +1,25 @@ +package org.apache.archiva.metadata.model; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +public interface MetadataFacetFactory +{ + ProjectVersionFacet createProjectVersionFacet(); +} diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java index a0ac18736..6d2647829 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionFacet.java @@ -1,7 +1,5 @@ package org.apache.archiva.metadata.model; -import java.util.Map; - /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -21,9 +19,13 @@ import java.util.Map; * under the License. */ +import java.util.Map; + public interface ProjectVersionFacet { String getFacetId(); Map<String, String> toProperties(); + + void fromProperties( Map<String, String> properties ); } |