org.mule.api.annotations.param.Optional.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(12.7k)|赞(0)|评价(0)|浏览(87)

本文整理了Java中org.mule.api.annotations.param.Optional.<init>()方法的一些代码示例,展示了Optional.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Optional.<init>()方法的具体详情如下:
包路径:org.mule.api.annotations.param.Optional
类名称:Optional
方法名:<init>

Optional.<init>介绍

暂无

代码示例

代码示例来源: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

/**
 * Edits an existing position restriction. Uses the Edit Position Restrictions business process. 
 * {@sample.xml ../../../doc/recruiting.xml.sample wd-recruiting:edit-position-restrictions}
 * @param editPositionRestrictionsRequest 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
@InvalidateConnectionOn(exception = WorkdayCredentialsException.class)
public EditPositonRestrictionResponseType editPositionRestrictions(
    @Optional @Default("#[payload]") @RefOnly EditPositionRestrictionsRequestType editPositionRestrictionsRequest) throws WorkdayException {
  return client.editPositionRestrictions(editPositionRestrictionsRequest);
}

代码示例来源:origin: org.mule.modules/mule-module-workday

/**
 * This operation adds or updates an Educational Institution Type. 
 * {@sample.xml ../../../doc/performance.xml.sample wd-performance:put-educational-institution-type}
 * @param putEducationalInstitutionTypeRequest 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
@InvalidateConnectionOn(exception = WorkdayCredentialsException.class)
public PutEducationalInstitutionTypeResponseType putEducationalInstitutionType(
    @Optional @Default("#[payload]") @RefOnly PutEducationalInstitutionTypeRequestType putEducationalInstitutionTypeRequest) throws WorkdayException {
  return client.putEducationalInstitutionType(putEducationalInstitutionTypeRequest);
}

代码示例来源:origin: org.mule.modules/mule-module-workday

/**
 * This operation retrieves the Competencies currently defined.
 * {@sample.xml ../../../doc/performance.xml.sample wd-performance:get-competencies}
 * @param getCompetenciesRequest 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
@InvalidateConnectionOn(exception = WorkdayCredentialsException.class)
public GetCompetenciesResponseType getCompetencies(
    @Optional @Default("#[payload]") @RefOnly GetCompetenciesRequestType getCompetenciesRequest) throws WorkdayException {
  return client.getCompetencies(getCompetenciesRequest);
}

相关文章

微信公众号

最新文章

更多

Optional类方法