Class ProductMetadata
- java.lang.Object
-
- com.trustedchoice.askkodiak.v2.model.product.ProductMetadata
-
public class ProductMetadata extends java.lang.Object
Metadata about a product including information like when it was first created, last updated, or last indexed for search.
-
-
Constructor Summary
Constructors Constructor Description ProductMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.Optional<ProductCompleteness>
getCompleteness()
An object containing data about the level of completeness of this product.java.util.Optional<java.lang.String>
getCopiedFrom()
If this product was originally created as a duplicate of another product, this field will contain the id of that source product.java.util.Optional<TimestampUidPair>
getCreated()
An object containing data about the creation of this product.java.util.Optional<java.util.Map<java.lang.String,java.lang.Boolean>>
getEligibility()
A map describing NAICS hashes eligible for this product.java.util.Optional<java.sql.Timestamp>
getLastIndexed()
A timestamp representing the time this product was last indexed by the Ask Kodiak search engine.java.util.Optional<TimestampUidPair>
getLastUpdated()
An object containing data about the last update of this product.java.util.Optional<java.util.Map<java.lang.String,java.lang.Boolean>>
getPermissions()
A map containing information about who it is shared with.java.util.Optional<ProductRuleStats>
getRuleStats()
Conditional rule statistics for the product.java.util.Optional<java.lang.Boolean>
getStaff()
Is this product shared with staff of it's owner group?java.util.Optional<java.lang.Boolean>
getTrusted()
Is this product shared with companies trusted by it's owner group?java.util.Optional<java.lang.Boolean>
getUntrusted()
Is this product shared with companies not trusted by it's owner group?int
hashCode()
void
setCompleteness(ProductCompleteness completeness)
An object containing data about the level of completeness of this product.void
setCopiedFrom(java.lang.String copiedFrom)
If this product was originally created as a duplicate of another product, this field will contain the id of that source product.void
setCreated(TimestampUidPair created)
An object containing data about the creation of this product.void
setEligibility(java.util.Map<java.lang.String,java.lang.Boolean> eligibility)
A map describing NAICS hashes eligible for this product.void
setLastIndexed(java.sql.Timestamp lastIndexed)
A timestamp representing the time this product was last indexed by the Ask Kodiak search engine.void
setLastUpdated(TimestampUidPair lastUpdated)
An object containing data about the last update of this product.void
setPermissions(java.util.Map<java.lang.String,java.lang.Boolean> permissions)
A map containing information about who it is shared with.void
setRuleStats(ProductRuleStats ruleStats)
Conditional rule statistics for the product.void
setStaff(java.lang.Boolean staff)
Is this product shared with staff of it's owner group?void
setTrusted(java.lang.Boolean trusted)
Is this product shared with companies trusted by it's owner group?void
setUntrusted(java.lang.Boolean untrusted)
Is this product shared with companies not trusted by it's owner group?java.lang.String
toString()
-
-
-
Method Detail
-
getCompleteness
public java.util.Optional<ProductCompleteness> getCompleteness()
An object containing data about the level of completeness of this product.
-
getCopiedFrom
public java.util.Optional<java.lang.String> getCopiedFrom()
If this product was originally created as a duplicate of another product, this field will contain the id of that source product.
-
getCreated
public java.util.Optional<TimestampUidPair> getCreated()
An object containing data about the creation of this product.
-
getLastIndexed
public java.util.Optional<java.sql.Timestamp> getLastIndexed()
A timestamp representing the time this product was last indexed by the Ask Kodiak search engine.
-
getLastUpdated
public java.util.Optional<TimestampUidPair> getLastUpdated()
An object containing data about the last update of this product.
-
getPermissions
public java.util.Optional<java.util.Map<java.lang.String,java.lang.Boolean>> getPermissions()
A map containing information about who it is shared with.
-
getStaff
public java.util.Optional<java.lang.Boolean> getStaff()
Is this product shared with staff of it's owner group?
-
getTrusted
public java.util.Optional<java.lang.Boolean> getTrusted()
Is this product shared with companies trusted by it's owner group?
-
getUntrusted
public java.util.Optional<java.lang.Boolean> getUntrusted()
Is this product shared with companies not trusted by it's owner group?
-
getRuleStats
public java.util.Optional<ProductRuleStats> getRuleStats()
Conditional rule statistics for the product.
-
getEligibility
public java.util.Optional<java.util.Map<java.lang.String,java.lang.Boolean>> getEligibility()
A map describing NAICS hashes eligible for this product. For a complete list of hashes or to disambiguate an individual hash, see the NAICS interfaces.
-
setCompleteness
public void setCompleteness(ProductCompleteness completeness)
An object containing data about the level of completeness of this product.
-
setCopiedFrom
public void setCopiedFrom(java.lang.String copiedFrom)
If this product was originally created as a duplicate of another product, this field will contain the id of that source product.
-
setCreated
public void setCreated(TimestampUidPair created)
An object containing data about the creation of this product.
-
setLastIndexed
public void setLastIndexed(java.sql.Timestamp lastIndexed)
A timestamp representing the time this product was last indexed by the Ask Kodiak search engine.
-
setLastUpdated
public void setLastUpdated(TimestampUidPair lastUpdated)
An object containing data about the last update of this product.
-
setPermissions
public void setPermissions(java.util.Map<java.lang.String,java.lang.Boolean> permissions)
A map containing information about who it is shared with.
-
setStaff
public void setStaff(java.lang.Boolean staff)
Is this product shared with staff of it's owner group?
-
setTrusted
public void setTrusted(java.lang.Boolean trusted)
Is this product shared with companies trusted by it's owner group?
-
setUntrusted
public void setUntrusted(java.lang.Boolean untrusted)
Is this product shared with companies not trusted by it's owner group?
-
setRuleStats
public void setRuleStats(ProductRuleStats ruleStats)
Conditional rule statistics for the product.
-
setEligibility
public void setEligibility(java.util.Map<java.lang.String,java.lang.Boolean> eligibility)
A map describing NAICS hashes eligible for this product. For a complete list of hashes or to disambiguate an individual hash, see the NAICS interfaces.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-