public class Feature extends DomainObject implements Authorizable, Displayable
FeatureForOrganization
,
Serialized FormConstructor and Description |
---|
Feature() |
Feature(Feature feature) |
Feature(String json) |
Feature(String authorizableId,
String displayName) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizableId()
Every
Authorizable entity should specify its key/id so that the Calling API knows which Set of Authorization s to match with |
Boolean |
getAuthorizableIdAssignable()
Is the
Authorizable.getAuthorizableId() of this instance to be considered in the global list of Authorizations.If true, it will appear in the List of Authorizations that can be assigned to users. |
Collection<Authorization> |
getAuthorizations()
Deprecated.
|
Cycle |
getCycle()
What is the billing
Cycle for the Feature |
String |
getDisplayName() |
Number |
getPricePerUnit() |
String |
getUnit()
If not null and price is not null then it means price/unit
|
void |
setAuthorizableId(String authorizableId) |
void |
setAuthorizations(Collection<Authorization> authorizations)
Deprecated.
|
void |
setCycle(Cycle cycle)
What is the billing
Cycle for the Feature |
void |
setDisplayName(String displayName) |
void |
setPricePerUnit(Number pricePerUnit) |
void |
setUnit(String unit)
If not null and price is not null then it means price/unit
|
public Feature()
public Feature(String json)
public Feature(Feature feature)
public String getAuthorizableId()
Authorizable
Authorizable
entity should specify its key/id so that the Calling API knows which Set
of Authorization
s to match withgetAuthorizableId
in interface Authorizable
public void setAuthorizableId(String authorizableId)
setAuthorizableId
in interface Authorizable
authorizableId
- the authorizableId to set@Deprecated public Collection<Authorization> getAuthorizations()
FeatureForOrganization
Authorization
or Restriction
typegetAuthorizations
in interface Authorizable
@Deprecated public void setAuthorizations(Collection<Authorization> authorizations)
FeatureForOrganization
Authorization
or Restriction
typesetAuthorizations
in interface Authorizable
public String getUnit()
pricePerUnit
public void setUnit(String unit)
pricePerUnit
public Boolean getAuthorizableIdAssignable()
Authorizable
Authorizable.getAuthorizableId()
of this instance to be considered in the global list of Authorizations.getAuthorizableIdAssignable
in interface Authorizable
Boolean
@Nullablepublic String getDisplayName()
getDisplayName
in interface Displayable
public void setDisplayName(String displayName)
displayName
- the displayName to setCopyright © 2018. All rights reserved.