本文整理汇总了Java中org.easyrec.model.core.transfer.IAConstraintVO.getTenant方法的典型用法代码示例。如果您正苦于以下问题:Java IAConstraintVO.getTenant方法的具体用法?Java IAConstraintVO.getTenant怎么用?Java IAConstraintVO.getTenant使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.easyrec.model.core.transfer.IAConstraintVO
的用法示例。
在下文中一共展示了IAConstraintVO.getTenant方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertIAConstraintVO
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, String> convertIAConstraintVO(Integer tenantId,
IAConstraintVO<Integer, Integer> constraint) {
if (constraint == null) {
return null;
}
return new IAConstraintVO<>(
constraint.getNumberOfResults(), viewTypeDAO.getTypeById(tenantId, constraint.getViewType()),
sourceTypeDAO.getTypeById(tenantId, constraint.getSourceType()), constraint.getSourceInfo(),
constraint.getTenant(), constraint.isActive(), constraint.getSortAsc());
}
示例2: convertTypedIAConstraintVO
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, Integer> convertTypedIAConstraintVO(Integer tenantId,
IAConstraintVO<Integer, String> typedConstraint) {
if (typedConstraint == null) {
return null;
}
return new IAConstraintVO<>(
typedConstraint.getNumberOfResults(), viewTypeDAO.getIdOfType(tenantId, typedConstraint.getViewType()),
sourceTypeDAO.getIdOfType(tenantId, typedConstraint.getSourceType()), typedConstraint.getSourceInfo(),
typedConstraint.getTenant(), typedConstraint.isActive(), typedConstraint.getSortAsc());
}
示例3: getItemAssocs
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<ItemAssocVO<Integer, String>> getItemAssocs(
ItemVO<Integer, String> itemFrom, String assocType, ItemVO<Integer, String> itemTo,
IAConstraintVO<Integer, String> constraints) {
Integer tenantId = constraints.getTenant();
if (tenantId == null) {
throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
}
return typeMappingService.convertListOfItemAssocVOs(tenantId, itemAssocDAO
.getItemAssocs(typeMappingService.convertTypedItemVO(tenantId, itemFrom),
typeMappingService.getIdOfAssocType(tenantId, assocType),
typeMappingService.convertTypedItemVO(tenantId, itemTo),
typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
示例4: getItemAssocsQBE
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<ItemAssocVO<Integer, String>> getItemAssocsQBE(
ItemVO<Integer, String> itemFrom, String assocType, ItemVO<Integer, String> itemTo,
IAConstraintVO<Integer, String> constraints) {
Integer tenantId = constraints.getTenant();
if (tenantId == null) {
throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
}
return typeMappingService.convertListOfItemAssocVOs(tenantId, itemAssocDAO
.getItemAssocsQBE(typeMappingService.convertTypedItemVO(tenantId, itemFrom),
typeMappingService.getIdOfAssocType(tenantId, assocType),
typeMappingService.convertTypedItemVO(tenantId, itemTo),
typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
示例5: getItemsFrom
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<AssociatedItemVO<Integer, String>> getItemsFrom(String itemFromType, String assocType,
ItemVO<Integer, String> itemTo,
IAConstraintVO<Integer, String> constraints) {
Integer tenantId = constraints.getTenant();
if (tenantId == null) {
throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
}
return typeMappingService.convertListOfAssociatedItemVOs(tenantId, itemAssocDAO
.getItemsFrom(typeMappingService.getIdOfItemType(tenantId, itemFromType),
typeMappingService.getIdOfAssocType(tenantId, assocType),
typeMappingService.convertTypedItemVO(tenantId, itemTo),
typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
示例6: getItemsTo
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public List<AssociatedItemVO<Integer, String>> getItemsTo(
ItemVO<Integer, String> itemFrom, String assocType, String itemToType,
IAConstraintVO<Integer, String> constraints) {
Integer tenantId = constraints.getTenant();
if (tenantId == null) {
throw new IllegalArgumentException("tenant not specified, can not retrieve type mapping without tenant");
}
return typeMappingService.convertListOfAssociatedItemVOs(tenantId, itemAssocDAO
.getItemsTo(typeMappingService.convertTypedItemVO(tenantId, itemFrom),
typeMappingService.getIdOfAssocType(tenantId, assocType),
typeMappingService.getIdOfItemType(tenantId, itemToType),
typeMappingService.convertTypedIAConstraintVO(tenantId, constraints)));
}
示例7: convertIAConstraintVO
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, String> convertIAConstraintVO(Integer tenantId,
IAConstraintVO<Integer, Integer> constraint) {
if (constraint == null) {
return null;
}
return new IAConstraintVO<Integer, String>(
constraint.getNumberOfResults(), viewTypeDAO.getTypeById(tenantId, constraint.getViewType()),
sourceTypeDAO.getTypeById(tenantId, constraint.getSourceType()), constraint.getSourceInfo(),
constraint.getTenant(), constraint.isActive(), constraint.getSortAsc());
}
示例8: convertTypedIAConstraintVO
import org.easyrec.model.core.transfer.IAConstraintVO; //导入方法依赖的package包/类
@Override
public IAConstraintVO<Integer, Integer> convertTypedIAConstraintVO(Integer tenantId,
IAConstraintVO<Integer, String> typedConstraint) {
if (typedConstraint == null) {
return null;
}
return new IAConstraintVO<Integer, Integer>(
typedConstraint.getNumberOfResults(), viewTypeDAO.getIdOfType(tenantId, typedConstraint.getViewType()),
sourceTypeDAO.getIdOfType(tenantId, typedConstraint.getSourceType()), typedConstraint.getSourceInfo(),
typedConstraint.getTenant(), typedConstraint.isActive(), typedConstraint.getSortAsc());
}