public void setQnameFilters(String filters) { ParameterCheck.mandatoryString("filters", filters); this.filters = filters; }
public void setQnameFilters(String filters) { ParameterCheck.mandatoryString("filters", filters); this.filters = filters; }
/** * Allow derived implementations to set the Content URL. This allows for implementations * where the URL is not known when the accessor is first constructed. * * @param contentUrl the new content URL */ protected void setContentUrl(String contentUrl) { ParameterCheck.mandatoryString("contentUrl", contentUrl); this.contentUrl = contentUrl; }
/** * Allow derived implementations to set the Content URL. This allows for implementations * where the URL is not known when the accessor is first constructed. * * @param contentUrl the new content URL */ protected void setContentUrl(String contentUrl) { ParameterCheck.mandatoryString("contentUrl", contentUrl); this.contentUrl = contentUrl; }
@Override public boolean validates(String fieldName) { ParameterCheck.mandatoryString("fieldName", fieldName); return (fieldName.equals("name")); }
@Override public boolean validates(String fieldName) { ParameterCheck.mandatoryString("fieldName", fieldName); return (fieldName.equals("columnNames")); } }
@Override public boolean validates(String fieldName) { ParameterCheck.mandatoryString("fieldName", fieldName); return (fieldName.equals("columnNames")); } }
@Override public boolean validates(String fieldName) { ParameterCheck.mandatoryString("fieldName", fieldName); return (fieldName.equals("name")); }
public void validate() { ParameterCheck.mandatoryCollection("toEmails", toEmails); ParameterCheck.mandatoryString("sharedId", sharedId); ParameterCheck.mandatoryString("sharedNodeName", sharedNodeName); }
/** * Gets the value of a named version property. * * @param name the name of the property * @return the value of the property */ public Serializable getVersionProperty(String name) { ParameterCheck.mandatoryString("name", name); return version.getVersionProperty(name); } }
/** * Gets the value of a named version property. * * @param name the name of the property * @return the value of the property */ public Serializable getVersionProperty(String name) { ParameterCheck.mandatoryString("name", name); return version.getVersionProperty(name); } }
public Reference newReference(Encoding encoding, Resource templateResource, String templatePath, Resource actualNodeResource, List<Parameter> extraParameters) { ParameterCheck.mandatoryString("templatePath", templatePath); ArrayList<Parameter> parameters = new ArrayList<Parameter>(3); parameters.add(new StringParameter(templatePath)); parameters.add(new ResourceParameter(actualNodeResource)); parameters.addAll(extraParameters); return new Reference(encoding, this, templateResource, parameters); }
public Reference newReference(Encoding encoding, Resource templateResource, String templatePath, Resource actualNodeResource, List<Parameter> extraParameters) { ParameterCheck.mandatoryString("templatePath", templatePath); ArrayList<Parameter> parameters = new ArrayList<Parameter>(3); parameters.add(new StringParameter(templatePath)); parameters.add(new ResourceParameter(actualNodeResource)); parameters.addAll(extraParameters); return new Reference(encoding, this, templateResource, parameters); }
@Override public ModelDefinition getCustomModelByUri(String namespaceUri) { ParameterCheck.mandatoryString("namespaceUri", namespaceUri); CompiledModel compiledModel = getModelByUri(namespaceUri); if (compiledModel != null) { return compiledModel.getModelDefinition(); } return null; }
private void validateEvent(OnContentUpdatePolicyEvent event) { ParameterCheck.mandatory("event", event); ParameterCheck.mandatoryString("nodeRef", event.getNodeRef()); }
@Override public ClientApp getClientAppConfig(String clientName) { ParameterCheck.mandatoryString("clientName", clientName); ClientApp clientApp = clientAppConfig.getClient(clientName); if (clientApp == null) { throw new ClientAppNotFoundException("Client was not found [" + clientName + "]"); } return clientApp; }
private void validateEvent(OnContentUpdatePolicyEvent event) { ParameterCheck.mandatory("event", event); ParameterCheck.mandatoryString("nodeRef", event.getNodeRef()); }
@Override public ClientApp getClientAppConfig(String clientName) { ParameterCheck.mandatoryString("clientName", clientName); ClientApp clientApp = clientAppConfig.getClient(clientName); if (clientApp == null) { throw new ClientAppNotFoundException("Client was not found [" + clientName + "]"); } return clientApp; }
@Override public CustomModelDefinition getCustomModel(String modelName) { ParameterCheck.mandatoryString("modelName", modelName); Pair<CompiledModel, Boolean> compiledModelPair = getCustomCompiledModel(modelName); CustomModelDefinition result = (compiledModelPair == null) ? null : new CustomModelDefinitionImpl( compiledModelPair.getFirst(), compiledModelPair.getSecond(), dictionaryService); return result; }
@Override public CustomModelDefinition getCustomModel(String modelName) { ParameterCheck.mandatoryString("modelName", modelName); Pair<CompiledModel, Boolean> compiledModelPair = getCustomCompiledModel(modelName); CustomModelDefinition result = (compiledModelPair == null) ? null : new CustomModelDefinitionImpl( compiledModelPair.getFirst(), compiledModelPair.getSecond(), dictionaryService); return result; }