Package i5.las2peer.persistency
Class EnvelopeArtifact
java.lang.Object
rice.p2p.past.ContentHashPastContent
i5.las2peer.persistency.AbstractArtifact
i5.las2peer.persistency.NetworkArtifact
i5.las2peer.persistency.EnvelopeArtifact
- All Implemented Interfaces:
Serializable
,rice.p2p.past.PastContent
- See Also:
-
Field Summary
Fields inherited from class i5.las2peer.persistency.AbstractArtifact
content, MAX_SIZE
Fields inherited from class rice.p2p.past.ContentHashPastContent
myId
-
Constructor Summary
ConstructorDescriptionEnvelopeArtifact
(rice.pastry.commonapi.PastryIdFactory idFactory, String identifier, int partIndex, byte[] rawPart, AgentImpl author) -
Method Summary
Modifier and TypeMethodDescriptionstatic rice.p2p.commonapi.Id
rice.p2p.past.PastContent
checkInsert
(rice.p2p.commonapi.Id id, rice.p2p.past.PastContent existingContent) boolean
Methods inherited from class i5.las2peer.persistency.NetworkArtifact
getAuthorPublicKey, getPartIndex, hasSameAuthor, verify
Methods inherited from class i5.las2peer.persistency.AbstractArtifact
getContent, toString
Methods inherited from class rice.p2p.past.ContentHashPastContent
getHandle, getId
-
Constructor Details
-
EnvelopeArtifact
public EnvelopeArtifact(rice.pastry.commonapi.PastryIdFactory idFactory, String identifier, int partIndex, byte[] rawPart, AgentImpl author) throws CryptoException, VerificationFailedException, AgentLockedException
-
-
Method Details
-
checkInsert
public rice.p2p.past.PastContent checkInsert(rice.p2p.commonapi.Id id, rice.p2p.past.PastContent existingContent) throws rice.p2p.past.PastException - Specified by:
checkInsert
in interfacerice.p2p.past.PastContent
- Overrides:
checkInsert
in classAbstractArtifact
- Throws:
rice.p2p.past.PastException
-
isMutable
public boolean isMutable()- Specified by:
isMutable
in interfacerice.p2p.past.PastContent
- Overrides:
isMutable
in classrice.p2p.past.ContentHashPastContent
-
buildId
public static rice.p2p.commonapi.Id buildId(rice.pastry.commonapi.PastryIdFactory idFactory, String identifier, int partIndex)
-