Package com.authlete.common.dto
Class ServiceCreatableResponse
- java.lang.Object
-
- com.authlete.common.dto.ServiceCreatableResponse
-
- All Implemented Interfaces:
Serializable
public class ServiceCreatableResponse extends Object implements Serializable
Response from Authlete's/api/service/creatableAPI.- Author:
- Takahiko Kawasaki
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceCreatableResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()Get the current number of services that the service owner has.intgetLimit()Get the maximum number of services that can be created in the plan.PlangetPlan()Get the plan of the service owner.booleanisCreatable()Check whether the service owner can create a new service.voidsetCount(int count)Set the current number of services that the service owner has.voidsetCreatable(boolean creatable)Set the flag to indicate whether the service owner can create a new service.voidsetLimit(int limit)Set the maximum number of services that can be created in the plan.voidsetPlan(Plan plan)Set the plan of the service owner.
-
-
-
Method Detail
-
isCreatable
public boolean isCreatable()
Check whether the service owner can create a new service.- Returns:
trueif the service owner can create a new service.falseif the current number of services that the service owner has reached or exceeded the maximum number of services allowed in the plan.
-
setCreatable
public void setCreatable(boolean creatable)
Set the flag to indicate whether the service owner can create a new service.- Parameters:
creatable-trueif the service owner can create a new service. Otherwise,false.
-
getCount
public int getCount()
Get the current number of services that the service owner has.- Returns:
- The number of services.
-
setCount
public void setCount(int count)
Set the current number of services that the service owner has.- Parameters:
count- The number of services.
-
getLimit
public int getLimit()
Get the maximum number of services that can be created in the plan.- Returns:
- The maximum number of services that can be created.
-
setLimit
public void setLimit(int limit)
Set the maximum number of services that can be created in the plan.- Parameters:
limit- The maximum number of services that can be created.
-
getPlan
public Plan getPlan()
Get the plan of the service owner.- Returns:
- The plan.
-
setPlan
public void setPlan(Plan plan)
Set the plan of the service owner.- Parameters:
plan- The plan.
-
-