From b369369c2cdf6d79b528b5511f3e1562c5e0bc34 Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Tue, 31 May 2016 08:52:09 +0200 Subject: [PATCH] add javadoc Signed-off-by: Michael Hirsch --- .../repository/model/SoftwareModule.java | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/hawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/SoftwareModule.java b/hawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/SoftwareModule.java index 67e1027a1..cb01219f4 100644 --- a/hawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/SoftwareModule.java +++ b/hawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/model/SoftwareModule.java @@ -49,8 +49,17 @@ public interface SoftwareModule extends NamedVersionedEntity { */ List getLocalArtifacts(); + /** + * @return the vendor of this software module + */ String getVendor(); + /** + * @param vendor + * the vendor of this software module to set + */ + void setVendor(String vendor); + /** * @param artifact * is removed from the assigned {@link LocalArtifact}s. @@ -63,14 +72,30 @@ public interface SoftwareModule extends NamedVersionedEntity { */ void removeArtifact(ExternalArtifact artifact); - void setVendor(String vendor); - + /** + * @return the type of the software module + */ SoftwareModuleType getType(); + /** + * @return {@code true} if this software module is marked as deleted + * otherwise {@code false} + */ boolean isDeleted(); + /** + * Marks or un-marks this software module as deleted. + * + * @param deleted + * {@code true} if the software module should be marked as + * deleted otherwise {@code false} + */ void setDeleted(boolean deleted); + /** + * @param type + * the module type for this software module + */ void setType(SoftwareModuleType type); /**