org.overlord.sramp.ui.shared.beans
Class ArtifactSummary

java.lang.Object
  extended by org.overlord.sramp.ui.shared.beans.ArtifactSummary
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArtifactDetails

public class ArtifactSummary
extends Object
implements Serializable

A simple data bean for returning summary information for an artifact.

Author:
eric.wittmann@redhat.com
See Also:
Serialized Form

Constructor Summary
ArtifactSummary()
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getCreatedBy()
           
 Date getCreatedOn()
           
 String getDescription()
           
 String getModel()
           
 String getName()
           
 String getProperty(String propName)
          Gets a property by name.
 Set<String> getPropertyNames()
           
 String getType()
           
 Date getUpdatedOn()
           
 String getUuid()
           
 int hashCode()
           
 void setCreatedBy(String createdBy)
           
 void setCreatedOn(Date createdOn)
           
 void setDescription(String description)
           
 void setModel(String model)
           
 void setName(String name)
           
 void setProperty(String propName, String propVal)
          Sets a property.
 void setType(String type)
           
 void setUpdatedOn(Date updatedOn)
           
 void setUuid(String uuid)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactSummary

public ArtifactSummary()
Constructor.

Method Detail

getUuid

public String getUuid()
Returns:
the uuid

setUuid

public void setUuid(String uuid)
Parameters:
uuid - the uuid to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

getCreatedBy

public String getCreatedBy()
Returns:
the createdBy

setCreatedBy

public void setCreatedBy(String createdBy)
Parameters:
createdBy - the createdBy to set

getCreatedOn

public Date getCreatedOn()
Returns:
the createdOn

setCreatedOn

public void setCreatedOn(Date createdOn)
Parameters:
createdOn - the createdOn to set

getUpdatedOn

public Date getUpdatedOn()
Returns:
the updatedOn

setUpdatedOn

public void setUpdatedOn(Date updatedOn)
Parameters:
updatedOn - the updatedOn to set

getProperty

public String getProperty(String propName)
Gets a property by name.

Parameters:
propName -

setProperty

public void setProperty(String propName,
                        String propVal)
Sets a property.

Parameters:
propName -
propVal -

getPropertyNames

public Set<String> getPropertyNames()
Returns:
the names of all the custom properties

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getType

public String getType()
Returns:
the type

setType

public void setType(String type)
Parameters:
type - the type to set

getModel

public String getModel()
Returns:
the model

setModel

public void setModel(String model)
Parameters:
model - the model to set


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.