• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CodedAttribute类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.kuali.rice.kim.api.identity.CodedAttribute的典型用法代码示例。如果您正苦于以下问题:Java CodedAttribute类的具体用法?Java CodedAttribute怎么用?Java CodedAttribute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

CodedAttribute类属于org.kuali.rice.kim.api.identity包,在下文中一共展示了CodedAttribute类的37个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: create

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public static Builder create(EntityEmailContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create();
    builder.setId(contract.getId());
    builder.setEntityId(contract.getEntityId());
    builder.setEntityTypeCode(contract.getEntityTypeCode());
    builder.setSuppressEmail(contract.isSuppressEmail());
    if (contract.getEmailType() != null) {
        builder.setEmailType(CodedAttribute.Builder.create(contract.getEmailType()));
    }
    builder.setEmailAddress(contract.getEmailAddressUnmasked());
    builder.setDefaultValue(contract.isDefaultValue());
    builder.setVersionNumber(contract.getVersionNumber());
    builder.setObjectId(contract.getObjectId());
    builder.setActive(contract.isActive());
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:20,
代码来源:EntityEmail.java

示例2: create

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public static Builder create(EntityNameContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create();
    builder.setNameSuffix(contract.getNameSuffix());
    builder.setEntityId(contract.getEntityId());
    if (contract.getNameType() != null) {
        builder.setNameType(CodedAttribute.Builder.create(contract.getNameType()));
    }
    builder.setFirstName(contract.getFirstName());
    builder.setMiddleName(contract.getMiddleName());
    builder.setLastName(contract.getLastName());
    builder.setNamePrefix(contract.getNamePrefix());
    builder.setNameTitle(contract.getNameTitle());
    builder.setNoteMessage(contract.getNoteMessage());
    builder.setNameChangedDate(contract.getNameChangedDate());
    builder.setSuppressName(contract.isSuppressName());
    builder.setVersionNumber(contract.getVersionNumber());
    builder.setObjectId(contract.getObjectId());
    builder.setDefaultValue(contract.isDefaultValue());
    builder.setActive(contract.isActive());
    builder.setId(contract.getId());
    builder.setCompositeName(contract.getCompositeName());
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:27,
代码来源:EntityName.java

示例3: create

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public static Builder create(EntityEmploymentContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create();
    builder.setEntityId(contract.getEntityId());
    if (contract.getEntityAffiliation() != null) {
        builder.setEntityAffiliation(EntityAffiliation.Builder.create(contract.getEntityAffiliation()));
    }
    if (contract.getEmployeeStatus() != null) {
        builder.setEmployeeStatus(CodedAttribute.Builder.create(contract.getEmployeeStatus()));
    }
    if (contract.getEmployeeType() != null) {
        builder.setEmployeeType(CodedAttribute.Builder.create(contract.getEmployeeType()));
    }
    builder.setPrimaryDepartmentCode(contract.getPrimaryDepartmentCode());
    builder.setEmployeeId(contract.getEmployeeId());
    builder.setEmploymentRecordId(contract.getEmploymentRecordId());
    builder.setBaseSalaryAmount(contract.getBaseSalaryAmount());
    builder.setPrimary(contract.isPrimary());
    builder.setVersionNumber(contract.getVersionNumber());
    builder.setObjectId(contract.getObjectId());
    builder.setActive(contract.isActive());
    builder.setId(contract.getId());
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:27,
代码来源:EntityEmployment.java

示例4: create

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public static Builder create(EntityPhoneContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create();
    builder.setId(contract.getId());
    builder.setEntityId(contract.getEntityId());
    builder.setEntityTypeCode(contract.getEntityTypeCode());
    builder.setSuppressPhone(contract.isSuppressPhone());
    if (contract.getPhoneType() != null) {
        builder.setPhoneType(CodedAttribute.Builder.create(contract.getPhoneType()));
    }
    builder.setPhoneNumber(contract.getPhoneNumberUnmasked());
    builder.setExtensionNumber(contract.getExtensionNumberUnmasked());
    builder.setCountryCode(contract.getCountryCodeUnmasked());
    builder.setDefaultValue(contract.isDefaultValue());
    builder.setVersionNumber(contract.getVersionNumber());
    builder.setObjectId(contract.getObjectId());
    builder.setActive(contract.isActive());
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:22,
代码来源:EntityPhone.java

示例5: mapBuilderFromContext

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
EntityAddress.Builder mapBuilderFromContext(DirContextOperations context, boolean isdefault) {        
    final EntityAddress.Builder builder = EntityAddress.Builder.create();
    final String line1              = context.getStringAttribute("employeePrimaryDeptName");
    final String line2              = context.getStringAttribute("employeePoBox");
    final String city               = context.getStringAttribute("employeeCity");
    final String stateProvinceCode  = context.getStringAttribute("employeeState");
    final String postalCode         = context.getStringAttribute("employeeZip");
    
    builder.setAddressType(CodedAttribute.Builder.create("WORK"));
    builder.setLine1(line1);
    builder.setLine2(line2);
    builder.setCity(city);
    builder.setStateProvinceCode(stateProvinceCode);
    builder.setPostalCode(postalCode);
    builder.setDefaultValue(isdefault);
    builder.setActive(true);
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:19,
代码来源:EntityAddressMapper.java

示例6: mapBuilderFromContext

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
EntityEmployment.Builder mapBuilderFromContext(DirContextOperations context) {
    final String departmentCode = context.getStringAttribute(getConstants().getDepartmentLdapProperty());
    
    if (departmentCode == null) {
        return null;
    }

    final EntityEmployment.Builder employee = EntityEmployment.Builder.create();
    employee.setId(context.getStringAttribute(getConstants().getEmployeeIdProperty()));
    employee.setEmployeeStatus(
            CodedAttribute.Builder.create(context.getStringAttribute(getConstants().getEmployeeStatusProperty())));
    //employee.setEmployeeTypeCode(context.getStringAttribute(getConstants().getEmployeeTypeProperty()));
    employee.setEmployeeType(CodedAttribute.Builder.create("P"));
    employee.setBaseSalaryAmount(KualiDecimal.ZERO);
    
    employee.setActive(true);
    return employee;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:19,
代码来源:EntityEmploymentMapper.java

示例7: mapBuilderFromContext

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
EntityName.Builder mapBuilderFromContext(DirContextOperations context, boolean isdefault) {        
    final EntityName.Builder person = EntityName.Builder.create();
    person.setEntityId(context.getStringAttribute(getConstants().getKimLdapIdProperty()));
    person.setId(context.getStringAttribute(getConstants().getKimLdapIdProperty()));
    
    final String fullName = (String) context.getStringAttribute(getConstants().getGivenNameLdapProperty());
    
    if (fullName != null) {
        final String[] name = fullName.split(" ");
        person.setFirstName(name[0]);
        if (name.length > 1) {
            person.setMiddleName(name[1]);
        }
    }
    else {
        person.setFirstName(fullName);
    }
    
    person.setLastName(context.getStringAttribute(getConstants().getSnLdapProperty()));
    person.setDefaultValue(isdefault);
    person.setActive(true);
    person.setNameType(CodedAttribute.Builder.create("PRI"));
    
    return person;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:26,
代码来源:EntityNameMapper.java

示例8: mapBuilderFromContext

点赞 3

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
EntityPhone.Builder mapBuilderFromContext(DirContextOperations context, boolean isdefault) {        
    final EntityPhone.Builder builder = EntityPhone.Builder.create();
    debug("Looking up attribute from context ", getConstants().getEmployeePhoneLdapProperty());
    final String pn = context.getStringAttribute(getConstants().getEmployeePhoneLdapProperty());
    
    if (isBlank(pn) || equalsIgnoreCase("NA", pn)) {
        debug("Got nothing. Giving nothing back.");
        return null;
    }
    
    String phoneNumber = pn;
    if (pn.length() >= 10) {
        phoneNumber = pn.substring(0, 3) + "-" + pn.substring(3, 6) + "-" + pn.substring(6);
    } else if (pn.length() >= 6) {
                phoneNumber = pn.substring(0, 3) + "-" + pn.substring(3);
    }
    final String countryCode = getConstants().getDefaultCountryCode();
    
    builder.setCountryCode(countryCode);
    builder.setPhoneNumber(phoneNumber);
    builder.setPhoneType(CodedAttribute.Builder.create("WORK"));
    builder.setActive(true);
    builder.setDefaultValue(isdefault);

    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:27,
代码来源:EntityPhoneMapper.java

示例9: create

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public static Builder create(EntityAddressContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create();
    builder.setEntityId(contract.getEntityId());
    builder.setSuppressAddress(contract.isSuppressAddress());
    builder.setEntityTypeCode(contract.getEntityTypeCode());
    if (contract.getAddressType() != null) {
        builder.setAddressType(CodedAttribute.Builder.create(contract.getAddressType()));
    }
    builder.setAttentionLine(contract.getAttentionLineUnmasked());
    builder.setLine1(contract.getLine1Unmasked());
    builder.setLine2(contract.getLine2Unmasked());
    builder.setLine3(contract.getLine3Unmasked());
    builder.setCity(contract.getCityUnmasked());
    builder.setStateProvinceCode(contract.getStateProvinceCodeUnmasked());
    builder.setPostalCode(contract.getPostalCodeUnmasked());
    builder.setCountryCode(contract.getCountryCodeUnmasked());
    builder.setAddressFormat(contract.getAddressFormat());
    builder.setModifiedDate(contract.getModifiedDate());
    builder.setValidatedDate(contract.getValidatedDate());
    builder.setValidated(contract.isValidated());
    builder.setNoteMessage(contract.getNoteMessage());
    builder.setDefaultValue(contract.isDefaultValue());
    builder.setVersionNumber(contract.getVersionNumber());
    builder.setObjectId(contract.getObjectId());
    builder.setActive(contract.isActive());
    builder.setId(contract.getId());
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:32,
代码来源:EntityAddress.java

示例10: create

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public static Builder create(EntityTypeContactInfoContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create(contract.getEntityId(), contract.getEntityTypeCode());
    if (contract.getEntityType() != null) {
        builder.setEntityType(CodedAttribute.Builder.create(contract.getEntityType()));
    }
    builder.addresses = new ArrayList<EntityAddress.Builder>();
    if (!CollectionUtils.isEmpty(contract.getAddresses())) {
        for (EntityAddressContract addressContract : contract.getAddresses()) {
            builder.addresses.add(EntityAddress.Builder.create(addressContract));
        }
    }
    builder.emailAddresses = new ArrayList<EntityEmail.Builder>();
    if (!CollectionUtils.isEmpty(contract.getEmailAddresses())) {
        for (EntityEmailContract emailContract : contract.getEmailAddresses()) {
            builder.emailAddresses.add(EntityEmail.Builder.create(emailContract));
        }
    }
    builder.phoneNumbers = new ArrayList<EntityPhone.Builder>();
    if (!CollectionUtils.isEmpty(contract.getPhoneNumbers())) {
        for (EntityPhoneContract phoneContract : contract.getPhoneNumbers()) {
            builder.phoneNumbers.add(EntityPhone.Builder.create(phoneContract));
        }
    }
    builder.setVersionNumber(contract.getVersionNumber());
    builder.setObjectId(contract.getObjectId());
    builder.setActive(contract.isActive());
    return builder;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:32,
代码来源:EntityTypeContactInfo.java

示例11: mapBuilderFromContext

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
EntityEmail.Builder mapBuilderFromContext(DirContextOperations context, boolean isdefault) {        
    final EntityEmail.Builder retval = EntityEmail.Builder.create();
    final String emailAddress = context.getStringAttribute(getConstants().getEmployeeMailLdapProperty());
    retval.setEmailAddress(emailAddress);
    retval.setEmailType(CodedAttribute.Builder.create("WORK"));
    retval.setDefaultValue(isdefault);
    retval.setActive(true);
    return retval;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:10,
代码来源:EntityEmailMapper.java

示例12: getAddressType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getAddressType(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");

    EntityAddressTypeBo impl = dataObjectService.find(EntityAddressTypeBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityAddressTypeBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:12,
代码来源:IdentityServiceImpl.java

示例13: findAllAddressTypes

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllAddressTypes() {
    List<EntityAddressTypeBo> bos = dataObjectService.findMatching(EntityAddressTypeBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();
    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityAddressTypeBo bo : bos) {
        codedAttributes.add(EntityAddressTypeBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:13,
代码来源:IdentityServiceImpl.java

示例14: getCitizenshipStatus

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getCitizenshipStatus(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");

    EntityCitizenshipStatusBo impl = dataObjectService.find(EntityCitizenshipStatusBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityCitizenshipStatusBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:12,
代码来源:IdentityServiceImpl.java

示例15: findAllCitizenshipStatuses

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllCitizenshipStatuses() {
    List<EntityCitizenshipStatusBo> bos = dataObjectService.findMatching(EntityCitizenshipStatusBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityCitizenshipStatusBo bo : bos) {
        codedAttributes.add(EntityCitizenshipStatusBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例16: getEmailType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getEmailType(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");

    EntityEmailTypeBo impl = dataObjectService.find(EntityEmailTypeBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityEmailTypeBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:12,
代码来源:IdentityServiceImpl.java

示例17: findAllEmailTypes

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllEmailTypes() {
    List<EntityEmailTypeBo> bos = dataObjectService.findMatching(EntityEmailTypeBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityEmailTypeBo bo : bos) {
        codedAttributes.add(EntityEmailTypeBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例18: getEmploymentStatus

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getEmploymentStatus(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");
    EntityEmploymentStatusBo impl = dataObjectService.find(EntityEmploymentStatusBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityEmploymentStatusBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:11,
代码来源:IdentityServiceImpl.java

示例19: findAllEmploymentStatuses

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllEmploymentStatuses() {
    List<EntityEmploymentStatusBo> bos = dataObjectService.findMatching(EntityEmploymentStatusBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityEmploymentStatusBo bo : bos) {
        codedAttributes.add(EntityEmploymentStatusBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例20: getEmploymentType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getEmploymentType(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");
    EntityEmploymentTypeBo impl = dataObjectService.find(EntityEmploymentTypeBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityEmploymentTypeBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:11,
代码来源:IdentityServiceImpl.java

示例21: findAllEmploymentTypes

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllEmploymentTypes() {
    List<EntityEmploymentTypeBo> bos = dataObjectService.findMatching(EntityEmploymentTypeBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityEmploymentTypeBo bo : bos) {
        codedAttributes.add(EntityEmploymentTypeBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例22: getNameType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getNameType(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");

    EntityNameTypeBo impl = dataObjectService.find(EntityNameTypeBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityNameTypeBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:12,
代码来源:IdentityServiceImpl.java

示例23: findAllNameTypes

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllNameTypes() {
    List<EntityNameTypeBo> bos = dataObjectService.findMatching(EntityNameTypeBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityNameTypeBo bo : bos) {
        codedAttributes.add(EntityNameTypeBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例24: getEntityType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getEntityType(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");

    EntityTypeBo impl = dataObjectService.find(EntityTypeBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityTypeBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:12,
代码来源:IdentityServiceImpl.java

示例25: findAllEntityTypes

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllEntityTypes() {
    List<EntityTypeBo> bos = dataObjectService.findMatching(EntityTypeBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityTypeBo bo : bos) {
        codedAttributes.add(EntityTypeBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例26: getPhoneType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getPhoneType(String code) throws RiceIllegalArgumentException {
    incomingParamCheck(code, "code");

    EntityPhoneTypeBo impl = dataObjectService.find(EntityPhoneTypeBo.class, code);
    if (impl == null) {
        return null;
    }

    return EntityPhoneTypeBo.to(impl);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:12,
代码来源:IdentityServiceImpl.java

示例27: findAllPhoneTypes

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public List<CodedAttribute> findAllPhoneTypes() {
    List<EntityPhoneTypeBo> bos = dataObjectService.findMatching(EntityPhoneTypeBo.class,
            QueryByCriteria.Builder.forAttribute(KIMPropertyConstants.Entity.ACTIVE, Boolean.TRUE).build())
            .getResults();

    List<CodedAttribute> codedAttributes = new ArrayList<CodedAttribute>();
    for (EntityPhoneTypeBo bo : bos) {
        codedAttributes.add(EntityPhoneTypeBo.to(bo));
    }

    return Collections.unmodifiableList(codedAttributes);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:IdentityServiceImpl.java

示例28: to

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
/**
 * Converts a mutable AddressTypeBo to an immutable AddressType representation.
 *
 * @param bo
 * @return an immutable AddressType
 */
public static CodedAttribute to(EntityTypeBo bo) {
    if (bo == null) {
        return null;
    }
    return CodedAttribute.Builder.create(bo).build();
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:13,
代码来源:EntityTypeBo.java

示例29: from

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
/**
 * Creates a AddressType business object from an immutable representation of a AddressType.
 *
 * @param an immutable AddressType
 * @return a AddressTypeBo
 */
public static EntityTypeBo from(CodedAttribute immutable) {
    if (immutable == null) {
        return null;
    }
    EntityTypeBo bo = new EntityTypeBo();
    bo.code = immutable.getCode();
    bo.name = immutable.getName();
    bo.sortCode = immutable.getSortCode();
    bo.active = immutable.isActive();
    bo.setVersionNumber(immutable.getVersionNumber());
    bo.setObjectId(immutable.getObjectId());
    return bo;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:20,
代码来源:EntityTypeBo.java

示例30: to

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
/**
 * Converts a mutable extension CodedAttributeBo to an immutable CodedAttribute representation.
 *
 * @param bo
 * @return an immutable EntityCitizenshipChangeType
 */
public static <T extends CodedAttributeBo>CodedAttribute to(T bo) {
    if (bo == null) {
        return null;
    }

    return CodedAttribute.Builder.create(bo).build();
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:14,
代码来源:CodedAttributeBo.java

示例31: getNewEntityName

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
private EntityName.Builder getNewEntityName(String entityId) {

        EntityName.Builder builder = EntityName.Builder.create();
        builder.setActive(true);
        builder.setDefaultValue(false);
        builder.setEntityId(entityId);
        builder.setFirstName("Bob");
        builder.setLastName("Bobbers");
        builder.setNamePrefix("Mr");

        CodedAttribute.Builder nameType = CodedAttribute.Builder.create(identityService.getNameType(
                KimConstants.NameTypes.PRIMARY));
        builder.setNameType(nameType);
        return builder;
    }
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:16,
代码来源:IdentityServiceImplTest.java

示例32: getEmailType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getEmailType() {
    return this.emailType;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:5,
代码来源:EntityEmail.java

示例33: setEmailType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public void setEmailType(CodedAttribute.Builder emailType) {
    this.emailType = emailType;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:4,
代码来源:EntityEmail.java

示例34: getStatus

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getStatus() {
    return this.status;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:5,
代码来源:EntityCitizenship.java

示例35: getEntityType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getEntityType( String code ) {
	return getIdentityService().getEntityType(code);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:5,
代码来源:IdentityManagementServiceImpl.java

示例36: setStatus

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
public void setStatus(CodedAttribute.Builder status) {
    this.status = status;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:4,
代码来源:EntityCitizenship.java

示例37: getNameType

点赞 2

import org.kuali.rice.kim.api.identity.CodedAttribute; //导入依赖的package包/类
@Override
public CodedAttribute getNameType() {
    return this.nameType;
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:5,
代码来源:EntityName.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)