Class Archive
- java.lang.Object
-
- no.digipost.api.client.representations.Representation
-
- no.digipost.api.client.representations.archive.Archive
-
public class Archive extends Representation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Archive.ArchiveBuilder
-
Field Summary
Fields Modifier and Type Field Description protected List<ArchiveDocument>
documents
protected String
name
protected Long
senderId
protected SenderOrganization
senderOrganization
-
Fields inherited from class no.digipost.api.client.representations.Representation
links
-
-
Constructor Summary
Constructors Constructor Description Archive()
Archive(SenderOrganization senderOrganization, Long senderId, String name, List<Link> links, List<ArchiveDocument> documents)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Archive.ArchiveBuilder
defaultArchive()
List<ArchiveDocument>
getDocuments()
List<Link>
getLinks()
String
getName()
Optional<URI>
getNextDocuments()
Optional<URI>
getNextDocumentsWithAttributes(Map<String,String> attributes)
Long
getSenderId()
SenderOrganization
getSenderOrganization()
static Archive.ArchiveBuilder
namedArchive(String archiveName)
protected void
setLink(List<Link> links)
void
setSenderOrganization(SenderOrganization value)
-
Methods inherited from class no.digipost.api.client.representations.Representation
addLink, getLinkByRelationName
-
-
-
-
Field Detail
-
senderOrganization
protected SenderOrganization senderOrganization
-
senderId
protected Long senderId
-
name
protected String name
-
documents
protected List<ArchiveDocument> documents
-
-
Constructor Detail
-
Archive
public Archive()
-
Archive
public Archive(SenderOrganization senderOrganization, Long senderId, String name, List<Link> links, List<ArchiveDocument> documents)
-
-
Method Detail
-
defaultArchive
public static Archive.ArchiveBuilder defaultArchive()
-
namedArchive
public static Archive.ArchiveBuilder namedArchive(String archiveName)
-
getSenderOrganization
public SenderOrganization getSenderOrganization()
-
setSenderOrganization
public void setSenderOrganization(SenderOrganization value)
-
getSenderId
public Long getSenderId()
-
getName
public String getName()
-
getDocuments
public List<ArchiveDocument> getDocuments()
-
-