|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.projectdarkstar.tools.dtc.data.AbstractDTO
com.projectdarkstar.tools.dtc.data.PkgLibraryDTO
public class PkgLibraryDTO
Represents a binary package library which is required for either
a ClientAppDTO, ServerAppDTO, or SystemProbeDTO to
execute.
| Constructor Summary | |
|---|---|
PkgLibraryDTO(Long id,
Long versionNumber,
String name,
byte[] file)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
byte[] |
getFile()
Returns the contents of the actual package library file as an array of bytes. |
Long |
getId()
Returns the id of the entity in persistent storage |
String |
getName()
|
List<PkgLibraryTagDTO> |
getTags()
Returns a list of PkgLibraryTagDTO objects that are used
to categorize libraries into groups. |
Long |
getVersionNumber()
Returns the version number in the data store that this entity represents. |
int |
hashCode()
|
protected void |
setFile(byte[] file)
|
void |
setId(Long id)
|
protected void |
setName(String name)
|
protected void |
setTags(List<PkgLibraryTagDTO> tags)
|
void |
updateFile(byte[] file)
|
void |
updateName(String name)
|
void |
updateTags(List<PkgLibraryTagDTO> tags)
|
void |
validate()
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object. |
| Methods inherited from class com.projectdarkstar.tools.dtc.data.AbstractDTO |
|---|
checkBlank, checkNull, getFullyPopulated, getUpdatedAttributes, updateAttribute, valueToValidate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PkgLibraryDTO(Long id,
Long versionNumber,
String name,
byte[] file)
| Method Detail |
|---|
public Long getId()
getId in class AbstractDTOpublic void setId(Long id)
public Long getVersionNumber()
public String getName()
protected void setName(String name)
public void updateName(String name)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic byte[] getFile()
protected void setFile(byte[] file)
public void updateFile(byte[] file)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<PkgLibraryTagDTO> getTags()
PkgLibraryTagDTO objects that are used
to categorize libraries into groups.
protected void setTags(List<PkgLibraryTagDTO> tags)
public void updateTags(List<PkgLibraryTagDTO> tags)
throws DTCInvalidDataException
DTCInvalidDataException
public void validate()
throws DTCInvalidDataException
AbstractDTO
validate in class AbstractDTODTCInvalidDataExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||