| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 | [[java-rest-high-start-basic]]=== Start Basic License[[java-rest-high-start-basic-execution]]==== ExecutionThis API creates and enables a basic license using the `startBasic()` method.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests}/LicensingDocumentationIT.java[start-basic-execute]--------------------------------------------------[[java-rest-high-start-basic-response]]==== ResponseThe returned `StartBasicResponse` returns a field indicating whether thebasic was started. If it was started, the response returns a the type oflicense started. If it was not started, it returns an error message describingwhy.Acknowledgement messages may also be returned if this API was called withoutthe `acknowledge` flag set to `true`.  In this case you need to display themessages to the end user and if they agree, resubmit the request with the`acknowledge` flag set to `true`. Please note that the response will stillreturn a 200 return code even if it requires an acknowledgement. So, it isnecessary to check the `acknowledged` flag.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests}/LicensingDocumentationIT.java[start-basic-response]--------------------------------------------------<1> Whether or not the request had the `acknowledge` flag set<2> Whether or not this request caused a basic to start<3> If this request did not cause a basic to start, a message explaining why<4> If the user's request did not have the `acknowledge` flag set, a summaryof the user's acknowledgement required for this API<5> If the user's request did not have the `acknowledge` flag set, containskeys of commercial features and values of messages describing how they willbe affected by licensing changes as the result of starting a basic[[java-rest-high-start-basic-async]]==== Asynchronous ExecutionThis request can be executed asynchronously:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests}/LicensingDocumentationIT.java[start-basic-execute-async]--------------------------------------------------<1> The `StartBasicResponse` to execute and the `ActionListener` to use whenthe execution completesThe asynchronous method does not block and returns immediately. Once it iscompleted the `ActionListener` is called back using the `onResponse` methodif the execution successfully completed or using the `onFailure` method ifit failed.A typical listener for `StartBasicResponse` looks like:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests}/LicensingDocumentationIT.java[start-basic-listener]--------------------------------------------------<1> Called when the execution is successfully completed. The response isprovided as an argument<2> Called in case of failure. The raised exception is provided as an argument
 |