code
stringlengths
73
34.1k
label
stringclasses
1 value
static TemplateAliases createTemplateAliases(SoyFileNode fileNode) { Map<String, String> aliasMap = new HashMap<>(); Set<String> localTemplates = new HashSet<>(); int counter = 0; ImmutableList.Builder<TemplateNode> templates = ImmutableList.builder(); templates .addAll(SoyTreeUtils.getAllN...
java
void generateTableEntries(CodeBuilder ga) { for (Variable var : allVariables) { try { var.local.tableEntry(ga); } catch (Throwable t) { throw new RuntimeException("unable to write table entry for: " + var.local, t); } } }
java
void defineFields(ClassVisitor writer) { for (Variable var : allVariables) { var.maybeDefineField(writer); } if (currentCalleeField != null) { currentCalleeField.defineField(writer); } if (currentRendereeField != null) { currentRendereeField.defineField(writer); } if (curre...
java
FieldRef getCurrentCalleeField() { FieldRef local = currentCalleeField; if (local == null) { local = currentCalleeField = FieldRef.createField(owner, CURRENT_CALLEE_FIELD, CompiledTemplate.class); } return local; }
java
FieldRef getCurrentRenderee() { FieldRef local = currentRendereeField; if (local == null) { local = currentRendereeField = FieldRef.createField(owner, CURRENT_RENDEREE_FIELD, SoyValueProvider.class); } return local; }
java
FieldRef getCurrentAppendable() { FieldRef local = currentAppendable; if (local == null) { local = currentAppendable = FieldRef.createField( owner, CURRENT_APPENDABLE_FIELD, LoggingAdvisingAppendable.class); } return local; }
java
Variable getVariable(String name) { VarKey varKey = VarKey.create(Kind.USER_DEFINED, name); return getVariable(varKey); }
java
Variable getVariable(SyntheticVarName name) { VarKey varKey = VarKey.create(Kind.SYNTHETIC, name.name()); return getVariable(varKey); }
java
public SanitizedContent knownDirAttrSanitized(Dir dir) { Preconditions.checkNotNull(dir); if (dir != contextDir) { switch (dir) { case LTR: return LTR_DIR; case RTL: return RTL_DIR; case NEUTRAL: // fall out. } } return NEUTRAL_DIR; }
java
@VisibleForTesting static Dir estimateDirection(String str, boolean isHtml) { return BidiUtils.estimateDirection(str, isHtml); }
java
public static ValidatedConformanceConfig create(ConformanceConfig config) { ImmutableList.Builder<RuleWithWhitelists> rulesBuilder = new ImmutableList.Builder<>(); for (Requirement requirement : config.getRequirementList()) { Preconditions.checkArgument( !requirement.getErrorMessage().isEmpty(),...
java
private static Rule<?> createCustomRule(String javaClass, SoyErrorKind error) { Class<? extends Rule<?>> customRuleClass; try { @SuppressWarnings("unchecked") Class<? extends Rule<?>> asSubclass = (Class<? extends Rule<?>>) Class.forName(javaClass).asSubclass(Rule.class); customRuleC...
java
public void setUseGoogIsRtlForBidiGlobalDir(boolean useGoogIsRtlForBidiGlobalDir) { Preconditions.checkState( !useGoogIsRtlForBidiGlobalDir || shouldGenerateGoogMsgDefs, "Do not specify useGoogIsRtlForBidiGlobalDir without shouldGenerateGoogMsgDefs."); Preconditions.checkState( !useGoogI...
java
@Override protected PyExpr visitPrimitiveNode(PrimitiveNode node) { // Note: ExprNode.toSourceString() technically returns a Soy expression. In the case of // primitives, the result is usually also the correct Python expression. return new PyExpr(node.toSourceString(), Integer.MAX_VALUE); }
java
private PyExpr genPyExprUsingSoySyntax(OperatorNode opNode) { List<PyExpr> operandPyExprs = visitChildren(opNode); String newExpr = PyExprUtils.genExprWithNewToken(opNode.getOperator(), operandPyExprs, null); return new PyExpr(newExpr, PyExprUtils.pyPrecedenceForOperator(opNode.getOperator())); }
java
public static void ensureDirsExistInPath(String path) { if (path == null || path.length() == 0) { throw new AssertionError("ensureDirsExistInPath called with null or empty path."); } String dirPath = (path.charAt(path.length() - 1) == File.separatorChar) ? path.substring(0, path....
java
public static String extractPartAfterLastDot(String dottedIdent) { int lastDotIndex = dottedIdent.lastIndexOf('.'); return (lastDotIndex == -1) ? dottedIdent : dottedIdent.substring(lastDotIndex + 1); }
java
public final SoyTypeP toProto() { SoyTypeP local = protoDual; if (local == null) { SoyTypeP.Builder builder = SoyTypeP.newBuilder(); doToProto(builder); local = builder.build(); protoDual = local; } return local; }
java
public SourceLocation substringLocation(int start, int end) { checkElementIndex(start, rawText.length(), "start"); checkArgument(start < end); checkArgument(end <= rawText.length()); if (offsets == null) { return getSourceLocation(); } return new SourceLocation( getSourceLocation()...
java
public void rewrite( ImmutableList<SoyFileNode> sourceFiles, IdGenerator idGenerator, TemplateRegistry registry) { // Inferences collects all the typing decisions we make and escaping modes we choose. Inferences inferences = new Inferences(registry); // TODO(lukes): having a separation of inference ...
java
private void reportError(ErrorReporter errorReporter, SoyAutoescapeException e) { // First, get to the root cause of the exception, and assemble an error message indicating // the full call stack that led to the failure. String message = "- " + e.getOriginalMessage(); while (e.getCause() instanceof SoyA...
java
public void accumulateActiveEdges(ImmutableList<ActiveEdge> activeEdges) { for (ActiveEdge accEdge : activeEdges) { accEdge.getGraphNode().linkEdgeToNode(accEdge.getActiveEdge(), this); } }
java
static SourceLocation createSrcLoc(String filePath, Token first, Token... rest) { int beginLine = first.beginLine; int beginColumn = first.beginColumn; int endLine = first.endLine; int endColumn = first.endColumn; for (Token next : rest) { checkArgument(startsLaterThan(next, beginLine, beginC...
java
public ImmutableList<TemplateMetadata> getTemplates(CallNode node) { if (node instanceof CallBasicNode) { String calleeName = ((CallBasicNode) node).getCalleeName(); TemplateMetadata template = basicTemplatesOrElementsMap.get(calleeName); return template == null ? ImmutableList.of() : ImmutableLis...
java
public Optional<SanitizedContentKind> getCallContentKind(CallNode node) { ImmutableList<TemplateMetadata> templateNodes = getTemplates(node); // For per-file compilation, we may not have any of the delegate templates in the compilation // unit. if (!templateNodes.isEmpty()) { return Optional.fromN...
java
public static TemplateMetadata fromTemplate(TemplateNode template) { TemplateMetadata.Builder builder = builder() .setTemplateName(template.getTemplateName()) .setSourceLocation(template.getSourceLocation()) .setSoyFileKind(SoyFileKind.SRC) .setContentKind(tem...
java
@Override protected Expression maybeWrapContent( CodeChunk.Generator generator, CallParamContentNode node, Expression content) { SanitizedContentKind kind = node.getContentKind(); if (kind == SanitizedContentKind.HTML || kind == SanitizedContentKind.ATTRIBUTES) { return content; } return super...
java
public CompiledTemplate.Factory getTemplateFactory(String name) { CompiledTemplate.Factory factory = getTemplateData(name).factory; if (factory == null) { throw new IllegalArgumentException("cannot get a factory for the private template: " + name); } return factory; }
java
public ImmutableSortedSet<String> getTransitiveIjParamsForTemplate(String templateName) { TemplateData templateData = getTemplateData(templateName); ImmutableSortedSet<String> transitiveIjParams = templateData.transitiveIjParams; // racy-lazy init pattern. We may calculate this more than once, but that is ...
java
private String generateOptionalSafeTagsArg(List<? extends TargetExpr> args) { String optionalSafeTagsArg = ""; if (!args.isEmpty()) { // TODO(msamuel): Instead of parsing generated JS, we should have a CheckArgumentsPass that // allows directives and functions to examine their input expressions prio...
java
private Optional<Expression> asRawTextOnly(String name, RenderUnitNode renderUnit) { StringBuilder builder = null; List<SoyNode> children = new ArrayList<>(renderUnit.getChildren()); for (int i = 0; i < children.size(); i++) { SoyNode child = children.get(i); if (child instanceof MsgHtmlTagNode)...
java
public final void gen(CodeBuilder adapter) { boolean shouldClearIsGeneratingBit = false; if (Flags.DEBUG && !isGenerating.get()) { isGenerating.set(true); shouldClearIsGeneratingBit = true; } try { if (location.isKnown()) { // These add entries to the line number tables that ar...
java
private void setCompileTimeGlobalsInternal( ImmutableMap<String, PrimitiveData> compileTimeGlobalsMap) { Preconditions.checkState(compileTimeGlobals == null, "Compile-time globals already set."); compileTimeGlobals = compileTimeGlobalsMap; }
java
public SoyGeneralOptions setCompileTimeGlobals(File compileTimeGlobalsFile) throws IOException { setCompileTimeGlobalsInternal( SoyUtils.parseCompileTimeGlobals(Files.asCharSource(compileTimeGlobalsFile, UTF_8))); return this; }
java
public SoyGeneralOptions setCompileTimeGlobals(URL compileTimeGlobalsResource) throws IOException { setCompileTimeGlobalsInternal( SoyUtils.parseCompileTimeGlobals( Resources.asCharSource(compileTimeGlobalsResource, UTF_8))); return this; }
java
@Nullable public String getStaticContent() { if (!hasValue()) { return null; } HtmlAttributeValueNode attrValue = (HtmlAttributeValueNode) getChild(1); if (attrValue.numChildren() == 0) { return ""; } if (attrValue.numChildren() > 1) { return null; } StandaloneNode at...
java
public static BidiGlobalDir decodeBidiGlobalDirFromJsOptions( int bidiGlobalDir, boolean useGoogIsRtlForBidiGlobalDir) { if (bidiGlobalDir == 0) { if (!useGoogIsRtlForBidiGlobalDir) { return null; } return BidiGlobalDir.forIsRtlCodeSnippet( GOOG_IS_RTL_CODE_SNIPPET, GOOG_IS...
java
public static BidiGlobalDir decodeBidiGlobalDirFromPyOptions(String bidiIsRtlFn) { if (bidiIsRtlFn == null || bidiIsRtlFn.isEmpty()) { return null; } int dotIndex = bidiIsRtlFn.lastIndexOf('.'); Preconditions.checkArgument( dotIndex > 0 && dotIndex < bidiIsRtlFn.length() - 1, "If s...
java
@Override public void beforeBlock() { if (count > 0) { try { flush(); } catch (IOException e) { logger.log(Level.SEVERE, "Flush from soy failed", e); } } }
java
public void updateNames( List<String> escapeMapNames, List<String> matcherNames, List<String> filterNames) { // Store the names for this directive for use in building the helper function. escapesName = escapeMapVar >= 0 ? escapeMapNames.get(escapeMapVar) : null; matcherName = matcherVar >= 0 ? matcher...
java
public static SanitizedContent emptyString(ContentKind kind) { if (kind == ContentKind.TEXT) { return UnsanitizedString.create(""); } return SanitizedContent.create("", kind, Dir.NEUTRAL); // Empty string is neutral. }
java
public static SanitizedContent fromResource( Class<?> contextClass, String resourceName, Charset charset, ContentKind kind) throws IOException { pretendValidateResource(resourceName, kind); return SanitizedContent.create( Resources.toString(Resources.getResource(contextClass, resourceName), ...
java
public static SanitizedContent constantUri(@CompileTimeConstant final String constant) { return fromConstant(constant, ContentKind.URI, Dir.LTR); }
java
public static SanitizedContent constantHtml(@CompileTimeConstant final String constant) { return fromConstant(constant, ContentKind.HTML, null); }
java
public static SanitizedContent constantAttributes(@CompileTimeConstant final String constant) { return fromConstant(constant, ContentKind.ATTRIBUTES, Dir.LTR); }
java
public static SanitizedContent constantCss(@CompileTimeConstant final String constant) { return fromConstant(constant, ContentKind.CSS, Dir.LTR); }
java
public static SanitizedContent constantJs(@CompileTimeConstant final String constant) { return fromConstant(constant, ContentKind.JS, Dir.LTR); }
java
public static SanitizedContent constantTrustedResourceUri( @CompileTimeConstant final String constant) { return fromConstant(constant, ContentKind.TRUSTED_RESOURCE_URI, Dir.LTR); }
java
public static SanitizedContent numberJs(final long number) { return SanitizedContent.create(String.valueOf(number), ContentKind.JS); }
java
@VisibleForTesting static void pretendValidateResource(String resourceName, ContentKind kind) { int index = resourceName.lastIndexOf('.'); Preconditions.checkArgument( index >= 0, "Currently, we only validate resources with explicit extensions."); String fileExtension = resourceName.substring(inde...
java
void doResolveOnto(Appendable appendable) throws IOException { doRender(appendable); content = appendable.toString(); if (kind == null) { resolved = StringData.forValue(content); } else { resolved = UnsafeSanitizedContentOrdainer.ordainAsSafe(content, kind); } }
java
@Override public final AbstractLoggingAdvisingAppendable appendLoggingFunctionInvocation( LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException { if (!isLogOnly()) { doAppendLoggingFunctionInvocation(funCall, escapers); } return this; }
java
public Expression generateMsgGroupVariable(MsgFallbackGroupNode node) { String tmpVarName = translationContext.nameGenerator().generateName("msg_s"); Expression msg; if (node.numChildren() == 1) { translationContext .soyToJsVariableMappings() .setIsPrimaryMsgInUse(node, Expression....
java
private String buildGoogMsgVarNameHelper(MsgNode msgNode) { // NOTE: MSG_UNNAMED/MSG_EXTERNAL are a special tokens recognized by the jscompiler. MSG_UNNAMED // disables the default logic that requires all messages to be uniquely named. // and MSG_EXTERNAL causes the jscompiler to not extract these messages....
java
protected Expression genGoogMsgPlaceholder(MsgPlaceholderNode msgPhNode) { List<Expression> contentChunks = new ArrayList<>(); for (StandaloneNode contentNode : msgPhNode.getChildren()) { if (contentNode instanceof MsgHtmlTagNode && !isComputableAsJsExprsVisitor.exec(contentNode)) { /...
java
public void run(HtmlMatcherGraph htmlMatcherGraph) { if (!htmlMatcherGraph.getRootNode().isPresent()) { // Empty graph. return; } visit(htmlMatcherGraph.getRootNode().get()); for (HtmlTagNode tag : annotationMap.keySet()) { if (tag instanceof HtmlOpenTagNode) { HtmlOpenTagNode ...
java
private void injectCloseTag( HtmlOpenTagNode optionalOpenTag, HtmlTagNode destinationTag, IdGenerator idGenerator) { StandaloneNode openTagCopy = optionalOpenTag.getTagName().getNode().copy(new CopyState()); HtmlCloseTagNode syntheticClose = new HtmlCloseTagNode( idGenerator.genId(), ...
java
private void visit( HtmlMatcherBlockNode blockNode, Map<Equivalence.Wrapper<ExprNode>, Boolean> exprValueMap, HtmlStack stack) { if (blockNode.getGraph().getRootNode().isPresent()) { new HtmlTagMatchingPass( errorReporter, idGenerator, false, ...
java
private void visit( HtmlMatcherAccumulatorNode accNode, Map<Equivalence.Wrapper<ExprNode>, Boolean> exprValueMap, HtmlStack stack) { Optional<HtmlMatcherGraphNode> nextNode = accNode.getNodeForEdgeKind(EdgeKind.TRUE_EDGE); if (nextNode.isPresent()) { visit(nextNode.get(), exprValueMap, s...
java
public static Expression asBoxedList(List<SoyExpression> items) { List<Expression> childExprs = new ArrayList<>(items.size()); for (SoyExpression child : items) { childExprs.add(child.box()); } return BytecodeUtils.asList(childExprs); }
java
private static void doBox(CodeBuilder adapter, SoyRuntimeType type) { if (type.isKnownSanitizedContent()) { FieldRef.enumReference( ContentKind.valueOf(((SanitizedType) type.soyType()).getContentKind().name())) .accessStaticUnchecked(adapter); MethodRef.ORDAIN_AS_SAFE.invokeUnche...
java
public SoyExpression coerceToBoolean() { // First deal with primitives which don't have to care about null. if (BytecodeUtils.isPrimitive(resultType())) { return coercePrimitiveToBoolean(); } if (soyType().equals(NullType.getInstance())) { return FALSE; } if (delegate.isNonNullable()...
java
public SoyExpression coerceToString() { if (soyRuntimeType.isKnownString() && !isBoxed()) { return this; } if (BytecodeUtils.isPrimitive(resultType())) { if (resultType().equals(Type.BOOLEAN_TYPE)) { return forString(MethodRef.BOOLEAN_TO_STRING.invoke(delegate)); } else if (resultT...
java
public SoyExpression coerceToDouble() { if (!isBoxed()) { if (soyRuntimeType.isKnownFloat()) { return this; } if (soyRuntimeType.isKnownInt()) { return forFloat(BytecodeUtils.numericConversion(delegate, Type.DOUBLE_TYPE)); } throw new UnsupportedOperationException("Can'...
java
public static com.liferay.commerce.price.list.model.CommercePriceListAccountRel getCommercePriceListAccountRel( long commercePriceListAccountRelId) throws com.liferay.portal.kernel.exception.PortalException { return getService() .getCommercePriceListAccountRel(commercePriceListAccountRelId); }
java
@Indexable(type = IndexableType.DELETE) @Override public CommerceNotificationTemplateUserSegmentRel deleteCommerceNotificationTemplateUserSegmentRel( long commerceNotificationTemplateUserSegmentRelId) throws PortalException { return commerceNotificationTemplateUserSegmentRelPersistence.remove(commerceNotificati...
java
@Indexable(type = IndexableType.DELETE) @Override public CommerceNotificationTemplateUserSegmentRel deleteCommerceNotificationTemplateUserSegmentRel( CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel) { return commerceNotificationTemplateUserSegmentRelPersistence.remove(commerc...
java
public void setCommerceNotificationAttachmentLocalService( com.liferay.commerce.notification.service.CommerceNotificationAttachmentLocalService commerceNotificationAttachmentLocalService) { this.commerceNotificationAttachmentLocalService = commerceNotificationAttachmentLocalService; }
java
public void setCommerceNotificationQueueEntryLocalService( com.liferay.commerce.notification.service.CommerceNotificationQueueEntryLocalService commerceNotificationQueueEntryLocalService) { this.commerceNotificationQueueEntryLocalService = commerceNotificationQueueEntryLocalService; }
java
public void setCommerceNotificationTemplateLocalService( com.liferay.commerce.notification.service.CommerceNotificationTemplateLocalService commerceNotificationTemplateLocalService) { this.commerceNotificationTemplateLocalService = commerceNotificationTemplateLocalService; }
java
public void setCounterLocalService( com.liferay.counter.kernel.service.CounterLocalService counterLocalService) { this.counterLocalService = counterLocalService; }
java
public void setClassNameLocalService( com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService) { this.classNameLocalService = classNameLocalService; }
java
public void setResourceLocalService( com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) { this.resourceLocalService = resourceLocalService; }
java
public void setUserLocalService( com.liferay.portal.kernel.service.UserLocalService userLocalService) { this.userLocalService = userLocalService; }
java
public void setCPAttachmentFileEntryLocalService( com.liferay.commerce.product.service.CPAttachmentFileEntryLocalService cpAttachmentFileEntryLocalService) { this.cpAttachmentFileEntryLocalService = cpAttachmentFileEntryLocalService; }
java
public void setCPAttachmentFileEntryService( com.liferay.commerce.product.service.CPAttachmentFileEntryService cpAttachmentFileEntryService) { this.cpAttachmentFileEntryService = cpAttachmentFileEntryService; }
java
public void setCPDefinitionLocalService( com.liferay.commerce.product.service.CPDefinitionLocalService cpDefinitionLocalService) { this.cpDefinitionLocalService = cpDefinitionLocalService; }
java
public void setCPDefinitionService( com.liferay.commerce.product.service.CPDefinitionService cpDefinitionService) { this.cpDefinitionService = cpDefinitionService; }
java
public void setCPDefinitionLinkLocalService( com.liferay.commerce.product.service.CPDefinitionLinkLocalService cpDefinitionLinkLocalService) { this.cpDefinitionLinkLocalService = cpDefinitionLinkLocalService; }
java
public void setCPDefinitionLinkService( com.liferay.commerce.product.service.CPDefinitionLinkService cpDefinitionLinkService) { this.cpDefinitionLinkService = cpDefinitionLinkService; }
java
public void setCPDefinitionOptionRelLocalService( com.liferay.commerce.product.service.CPDefinitionOptionRelLocalService cpDefinitionOptionRelLocalService) { this.cpDefinitionOptionRelLocalService = cpDefinitionOptionRelLocalService; }
java
public void setCPDefinitionOptionRelService( com.liferay.commerce.product.service.CPDefinitionOptionRelService cpDefinitionOptionRelService) { this.cpDefinitionOptionRelService = cpDefinitionOptionRelService; }
java
public void setCPDefinitionOptionValueRelLocalService( com.liferay.commerce.product.service.CPDefinitionOptionValueRelLocalService cpDefinitionOptionValueRelLocalService) { this.cpDefinitionOptionValueRelLocalService = cpDefinitionOptionValueRelLocalService; }
java
public void setCPDefinitionOptionValueRelService( com.liferay.commerce.product.service.CPDefinitionOptionValueRelService cpDefinitionOptionValueRelService) { this.cpDefinitionOptionValueRelService = cpDefinitionOptionValueRelService; }
java
public void setCPDefinitionSpecificationOptionValueLocalService( com.liferay.commerce.product.service.CPDefinitionSpecificationOptionValueLocalService cpDefinitionSpecificationOptionValueLocalService) { this.cpDefinitionSpecificationOptionValueLocalService = cpDefinitionSpecificationOptionValueLocalService; }
java
public void setCPDefinitionSpecificationOptionValueService( com.liferay.commerce.product.service.CPDefinitionSpecificationOptionValueService cpDefinitionSpecificationOptionValueService) { this.cpDefinitionSpecificationOptionValueService = cpDefinitionSpecificationOptionValueService; }
java
public void setCPDisplayLayoutLocalService( com.liferay.commerce.product.service.CPDisplayLayoutLocalService cpDisplayLayoutLocalService) { this.cpDisplayLayoutLocalService = cpDisplayLayoutLocalService; }
java
public void setCPFriendlyURLEntryLocalService( com.liferay.commerce.product.service.CPFriendlyURLEntryLocalService cpFriendlyURLEntryLocalService) { this.cpFriendlyURLEntryLocalService = cpFriendlyURLEntryLocalService; }
java
public void setCPInstanceLocalService( com.liferay.commerce.product.service.CPInstanceLocalService cpInstanceLocalService) { this.cpInstanceLocalService = cpInstanceLocalService; }
java
public void setCPInstanceService( com.liferay.commerce.product.service.CPInstanceService cpInstanceService) { this.cpInstanceService = cpInstanceService; }
java
public void setCPMeasurementUnitLocalService( com.liferay.commerce.product.service.CPMeasurementUnitLocalService cpMeasurementUnitLocalService) { this.cpMeasurementUnitLocalService = cpMeasurementUnitLocalService; }
java
public void setCPMeasurementUnitService( com.liferay.commerce.product.service.CPMeasurementUnitService cpMeasurementUnitService) { this.cpMeasurementUnitService = cpMeasurementUnitService; }
java
public void setCPOptionLocalService( com.liferay.commerce.product.service.CPOptionLocalService cpOptionLocalService) { this.cpOptionLocalService = cpOptionLocalService; }
java
public void setCPOptionService( com.liferay.commerce.product.service.CPOptionService cpOptionService) { this.cpOptionService = cpOptionService; }
java
public void setCPOptionCategoryLocalService( com.liferay.commerce.product.service.CPOptionCategoryLocalService cpOptionCategoryLocalService) { this.cpOptionCategoryLocalService = cpOptionCategoryLocalService; }
java
public void setCPOptionCategoryService( com.liferay.commerce.product.service.CPOptionCategoryService cpOptionCategoryService) { this.cpOptionCategoryService = cpOptionCategoryService; }
java
public void setCPOptionValueLocalService( com.liferay.commerce.product.service.CPOptionValueLocalService cpOptionValueLocalService) { this.cpOptionValueLocalService = cpOptionValueLocalService; }
java
public void setCPOptionValueService( com.liferay.commerce.product.service.CPOptionValueService cpOptionValueService) { this.cpOptionValueService = cpOptionValueService; }
java
public void setCProductLocalService( com.liferay.commerce.product.service.CProductLocalService cProductLocalService) { this.cProductLocalService = cProductLocalService; }
java
public void setCPRuleLocalService( com.liferay.commerce.product.service.CPRuleLocalService cpRuleLocalService) { this.cpRuleLocalService = cpRuleLocalService; }
java