本文整理了Java中org.mule.api.annotations.param.Optional
类的一些代码示例,展示了Optional
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Optional
类的具体详情如下:
包路径:org.mule.api.annotations.param.Optional
类名称:Optional
暂无
代码示例来源:origin: mulesoft/magento-connector
/**
* Removes a coupon code from a shopping cart (quote).
* {@sample.xml ../../../doc/magento-connector.xml.sample magento:removeShoppingCartCoupon}
*
* @param quoteId Shopping Cart ID (quote ID)
* @param storeId Store view ID or code
* @return True if the coupon code is removed
*/
@Processor
public boolean removeShoppingCartCoupon(int quoteId, @Optional String storeId) {
return shoppingCartClient.removeShoppingCartCoupon(quoteId, storeId);
}
代码示例来源:origin: org.mule.modules/mule-module-twilio
/**
* Returns a representation of an account.
* <p/>
* {@sample.xml ../../../doc/twilio-connector.xml.sample twilio:getAccountDetails}
*
* @param accountSid the account sid for which to get the details, leave empty to use to use {@link TwilioConnector#accountSid}
* @return a representation of the account
*/
@Processor
public String getAccountDetails(@Optional String accountSid) {
return twilioClient.getAccountDetails(accountSid);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Adds a talent assessment for a worker.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:assess-talent}
* @param talent Request element for Assess Talent.
* @return Responds with the Event ID for the Talent Assessment business process.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public AssessTalentResponseType assessTalent(@Optional @Default("#[payload]") @RefOnly AssessTalentRequestType talent) throws WorkdayException {
return client.assessTalent(talent);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* This operation retrieves the certification issuers that are currently defined.
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-certification-issuers}
* @param getCertificationIssuersRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Get Certification Issuers")
public GetCertificationIssuersResponseType getCertificationIssuersTalent(
@Optional @Default("#[payload]") @RefOnly GetCertificationIssuersRequestType getCertificationIssuersRequest)throws WorkdayException {
return client.getCertificationIssuers(getCertificationIssuersRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* This operation adds or updates a Skill Item Category.
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:put-skill-item-category}
* @param putSkillItemCategoryRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public PutSkillItemCategoryResponseType putSkillItemCategory(
@Optional @Default("#[payload]") @RefOnly PutSkillItemCategoryRequestType putSkillItemCategoryRequest)throws WorkdayException {
return client.putSkillItemCategory(putSkillItemCategoryRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* This web service allows retrieval of Talent Pools and memberships information.
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-talent-pools}
* @param getTalentPoolsRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public GetTalentPoolsResponseType getTalentPools(
@Optional @Default("#[payload]") @RefOnly GetTalentPoolsRequestType getTalentPoolsRequest)throws WorkdayException {
return client.getTalentPools(getTalentPoolsRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Web service for Managing a Succession Plan for a job profile.
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:manage-succession-pool}
* @param manageSuccessionPoolRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public ManageSuccessionPoolResponseType manageSuccessionPool(
@Optional @Default("#[payload]") @RefOnly ManageSuccessionPoolRequestType manageSuccessionPoolRequest)throws WorkdayException {
return client.manageSuccessionPool(manageSuccessionPoolRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* This web service allows add and update to Talent Pools and memberships information
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:put-talent-pool}
* @param putTalentPoolRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public PutTalentPoolResponseType putTalentPool(
@Optional @Default("#[payload]") @RefOnly PutTalentPoolRequestType putTalentPoolRequest)throws WorkdayException {
return client.putTalentPool(putTalentPoolRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Enable Succession Pool and its membership retrieval via SOAP Web Service request.
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-succession-pools}
* @param getSuccessionPoolsRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public GetSuccessionPoolsResponseType getSuccessionPools(
@Optional @Default("#[payload]") @RefOnly GetSuccessionPoolsRequestType getSuccessionPoolsRequest)throws WorkdayException {
return client.getSuccessionPools(getSuccessionPoolsRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* This operation allows for adding and updating certification issuers.
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:put-certification-issuer}
* @param putCertificationIssuerRequest The request object for the operation
* @return The response from the operation
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Put Certification Issuer")
public PutCertificationIssuerResponseType putCertificationIssuerTalent(
@Optional @Default("#[payload]") @RefOnly PutCertificationIssuerRequestType putCertificationIssuerRequest)throws WorkdayException {
return client.putCertificationIssuer(putCertificationIssuerRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Allows for the updating of career interest information (career preference) for an employee.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:edit-career-interests}
* @param careerInterests Request element for updating the employee's career preferences.
* @return Contains the employee career interest event that was created from the Update request.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public ManageCareerInterestResponseType editCareerInterests(
@Optional @Default("#[payload]") @RefOnly EditCareerInterestsRequestType careerInterests) throws WorkdayException {
return client.editCareerInterests(careerInterests);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Retrieves the educational degrees that are currently defined.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-degrees}
* @param degreesRequest This element contains optional reference and filter criteria for the request.
* @return Response element for Get Degrees.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Get Degrees")
public GetDegreesResponseType getDegreesTalent(
@Optional @Default("#[payload]") @RefOnly GetDegreesRequestType degreesRequest) throws WorkdayException {
return client.getDegrees(degreesRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Retrieves the Field of Studies currently defined.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-fields-of-study}
* @param fieldsOfStudyRequest Request element for the Get Fields Of Study operation
* @return Response element for the Get Fields Of Study operation.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Get Fields Of Study")
public GetFieldsOfStudyResponseType getFieldsOfStudyTalent(
@Optional @Default("#[payload]") @RefOnly GetFieldsOfStudyRequestType fieldsOfStudyRequest) throws WorkdayException {
return client.getFieldsOfStudy(fieldsOfStudyRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Retrieves school information.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-schools}
* @param schoolsRequest request element
* @return response element
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public GetSchoolsResponseType getSchools(
@Optional @Default("#[payload]") @RefOnly GetSchoolsRequestType schoolsRequest) throws WorkdayException {
return client.getSchools(schoolsRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Allows adding new certifications and editing existing certifications for a worker.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:manage-certifications}
* @param certifications Request element for Manage Worker Certification.
* @return Response element for Manage Worker Certification.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public ManageCertificationsResponseType manageCertifications(
@Optional @Default("#[payload]") @RefOnly ManageCertificationsRequestType certifications) throws WorkdayException {
return client.manageCertifications(certifications);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Allows adding new internal projects and editing existing internal projects for a worker.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:manage-internal-projects}
* @param internalProjects Request element for Manage Internal Projects
* @return Response element for Manage Internal Projects
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public ManageInternalProjectsResponseType manageInternalProjects(
@Optional @Default("#[payload]") @RefOnly ManageInternalProjectsRequestType internalProjects) throws WorkdayException {
return client.manageInternalProjects(internalProjects);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Adds or updates a Competency.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:put-competency}
* @param competency Contains data for adding or updating a Competency
* @return Response element for Put Competency.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Put Competency")
public PutCompetencyResponseType putCompetencyTalent(
@Optional @Default("#[payload]") @RefOnly PutCompetencyRequestType competency) throws WorkdayException {
return client.putCompetency(competency);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Retrieves the certifications that are currently defined.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-certifications}
* @param certificationsRequest request element
* @return response element
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Get Certifications")
public GetCertificationsResponseType getCertificationsTalent(
@Optional @Default("#[payload]") @RefOnly GetCertificationsRequestType certificationsRequest) throws WorkdayException {
return client.getCertifications(certificationsRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Retrieves the Competencies currently defined.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:get-competencies}
* @param competenciesRequest This element contains optional reference and filter criteria for the request.
* @return Response element for Get Competencies
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor(friendlyName = "Get Competencies")
public GetCompetenciesResponseType getCompetenciesTalent(
@Optional @Default("#[payload]") @RefOnly GetCompetenciesRequestType competenciesRequest) throws WorkdayException {
return client.getCompetencies(competenciesRequest);
}
代码示例来源:origin: org.mule.modules/mule-module-workday
/**
* Allows adding new anytime feedback for a worker.
*
* {@sample.xml ../../../doc/talent.xml.sample wd-talent:give-feedback}
* @param feedback Operation allowing the addition of anytime feedback
* @return Responds with the Event ID for the Give Feedback Anytime Event.
* @throws WorkdayException If an error during the operation occurs this exception is thrown
*/
@Processor
public GiveFeedbackResponseType giveFeedback(
@Optional @Default("#[payload]") @RefOnly GiveFeedbackRequestType feedback) throws WorkdayException {
return client.giveFeedback(feedback);
}
内容来源于网络,如有侵权,请联系作者删除!