@Entity public class GenericArtifact extends Persistable implements Serializable
id| Constructor and Description |
|---|
GenericArtifact()
Constructor.
|
GenericArtifact(String name,
String description,
byte[] content)
Constructs a new artifact
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent() |
int |
getContentLength() |
String |
getDescription() |
byte[] |
getLegacyContent() |
Date |
getModifiedAt() |
String |
getModifiedBy() |
String |
getName() |
void |
setContent(byte[] content) |
void |
setDescription(String description) |
void |
setModifiedAt(Date modifiedAt)
The setter stores a new copy of the param.
|
void |
setModifiedBy(String modifiedBy) |
void |
setName(String name) |
String |
toString() |
getIdpublic String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public Date getModifiedAt()
public void setModifiedAt(Date modifiedAt)
modifiedAt - The timestamp of the last modification of this database entitypublic String getModifiedBy()
public void setModifiedBy(String modifiedBy)
modifiedBy - The user performing the last modification of the database entitypublic byte[] getContent()
public void setContent(byte[] content)
public int getContentLength()
public byte[] getLegacyContent()
Copyright © 2025 European Spallation Source. All rights reserved.