Package com.emc.documentum.rest.model
Class Entitlement
java.lang.Object
com.emc.documentum.rest.model.AbstractLinkable
com.emc.documentum.rest.model.Entitlement
- All Implemented Interfaces:
Linkable
Model representing entitlement status for a product code.
-
Field Summary
Fields inherited from class com.emc.documentum.rest.model.AbstractLinkable
links -
Constructor Summary
ConstructorsConstructorDescriptionEntitlement(String productCode, boolean isEntitled) Creates an entitlement result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the evaluated product code.booleanIndicates whether the current user is entitled to the product code.voidsetEntitled(boolean entitled) Sets entitlement status.voidsetProductCode(String productCode) Sets the product code.Methods inherited from class com.emc.documentum.rest.model.AbstractLinkable
getLinks, setLinks
-
Constructor Details
-
Entitlement
Creates an entitlement result.- Parameters:
productCode- product code that was evaluatedisEntitled- entitlement result for the product code
-
-
Method Details
-
getProductCode
Returns the evaluated product code.- Returns:
- product code value
-
setProductCode
Sets the product code.- Parameters:
productCode- product code value
-
isEntitled
public boolean isEntitled()Indicates whether the current user is entitled to the product code.- Returns:
trueif entitled; otherwisefalse
-
setEntitled
public void setEntitled(boolean entitled) Sets entitlement status.- Parameters:
entitled- entitlement status to store
-