class LicenseRightsData

The rights related information of the publishing license.

Summary

Members Descriptions
public LicenseRightsData(const ProtectionType type, const std::vector<DirectoryObjectRights>& directoryObjectsRights, const std::chrono::time_point<std::chrono::system_clock>& contentValidUntil) LicenseRightsData constructor.
public const ProtectionType GetProtectionType() const Gets type of protection, whether it originated from protection SDK template or not.
public const std::vector<DirectoryObjectRights>& GetDirectoryObjectsRights() const Gets the set of directory objects and the rights associated with them.
public bool DoesContentExpire() Checks if content has an expiration time or not.
public const std::chrono::time_point<std::chrono::system_clock> GetContentValidUntil() const Gets protection expiration time.

Members

LicenseRightsData function

LicenseRightsData constructor.

Parameters:

  • type: The type of protection, whether it originated from protection SDK template or not

  • directoryObjectsRights: The set of directory objects and the rights associated with them

  • contentValidUtil: Protection expiration time

GetProtectionType function

Gets type of protection, whether it originated from protection SDK template or not.

Returns: Type of protection

GetDirectoryObjectsRights function

Gets the set of directory objects and the rights associated with them.

Returns: The set of directory objects and the rights associated with them

DoesContentExpire function

Checks if content has an expiration time or not.

Returns: True if content can expire, else false

GetContentValidUntil function

Gets protection expiration time.

Returns: Protection expiration time