/** * * @param sourceJavaServiceName optional (= can be null), in case the source module only * exports one service of the needed type. */ public JavaServiceInjectDefinition(String sourceModuleId, String sourceJavaServiceName) { ArgumentValidator.notNull(sourceModuleId, "sourceModuleId"); this.sourceModuleId = sourceModuleId; this.sourceJavaServiceName = sourceJavaServiceName; }
public JavaServiceInjectByNameDefinition(String dependencyName, String sourceModuleId, String sourceJavaServiceName) { super(sourceModuleId, sourceJavaServiceName); ArgumentValidator.notNull(dependencyName, "dependencyName"); this.dependencyName = dependencyName; }
public FieldTypeEntryImpl(SchemaId fieldTypeId, boolean mandatory) { ArgumentValidator.notNull(fieldTypeId, "fieldTypeId"); this.fieldTypeId = fieldTypeId; this.mandatory = mandatory; }
public JavaServiceInjectByServiceDefinition(String serviceType, String sourceModuleId, String sourceJavaServiceName) { super(sourceModuleId, sourceJavaServiceName); ArgumentValidator.notNull(serviceType, "serviceType"); this.serviceType = serviceType; }
DerefMapVariantPropertiesPattern(Map<String, String> pattern) { ArgumentValidator.notNull(pattern, "pattern"); this.pattern = pattern; }
public DependencyEntry(AbsoluteRecordId dependency, Set<String> moreDimensionedVariants) { ArgumentValidator.notNull(dependency, "dependency"); ArgumentValidator.notNull(moreDimensionedVariants, "moreDimensionedVariants"); this.dependency = dependency; this.moreDimensionedVariants = Collections.unmodifiableSet(moreDimensionedVariants); }
@Override public void addSupertype(SchemaId recordTypeId, Long recordTypeVersion) { ArgumentValidator.notNull(recordTypeId, "recordTypeId"); supertypes.put(recordTypeId, recordTypeVersion); }
public ListValueType(TypeManager typeManager, String typeParams) throws RepositoryException, InterruptedException { ArgumentValidator.notNull(typeParams, "typeParams"); this.fullName = NAME+"<"+typeParams+">"; this.valueType = typeManager.getValueType(typeParams); }
@Override public RecordBuilder field(QName name, Object value) { ArgumentValidator.notNull(name, "name"); record.setField(name, value); return this; }
@Override public RecordId newRecordId(RecordId masterRecordId, Map<String, String> variantProperties) { ArgumentValidator.notNull(masterRecordId, "masterRecordId"); ArgumentValidator.notNull(variantProperties, "variantProperties"); if (!masterRecordId.isMaster()) { throw new IllegalArgumentException("Specified masterRecordId is a variant record ID."); } if (variantProperties.isEmpty()) { return masterRecordId; } checkReservedCharacters(variantProperties); return new VariantRecordId(masterRecordId, variantProperties, this); }
public LinkBuilder remove(String propName) { ArgumentValidator.notNull(propName, "propName"); initVarProps(); variantProps.put(propName, new PropertyValue(PropertyMode.REMOVE, null)); return this; }
private Set<SchemaId> findSubTypes(SchemaId recordTypeId, boolean recursive) throws InterruptedException, RepositoryException { ArgumentValidator.notNull(recordTypeId, "recordTypeId"); // This is to validate the requested ID exists getRecordTypeById(recordTypeId, null); Set<SchemaId> result = new HashSet<SchemaId>(); collectSubTypes(recordTypeId, result, recursive); return result; }
@Override public RecordId newRecordId(String userProvidedId) { ArgumentValidator.notNull(userProvidedId, "userProvidedId"); checkIdString(userProvidedId, "record id"); return new UserRecordId(userProvidedId, this); }
/** * Removes an entry from the index. The contents of the supplied * entry and the identifier should exactly match those supplied * when creating the index entry. */ public void removeEntry(IndexEntry entry) throws IOException { ArgumentValidator.notNull(entry, "entry"); entry.validate(); byte[] indexKey = buildRowKey(entry); Delete delete = new Delete(indexKey); htable.delete(delete); }
@Override public RecordType getRecordTypeById(SchemaId id, Long version) throws RecordTypeNotFoundException, TypeException, RepositoryException, InterruptedException { ArgumentValidator.notNull(id, "id"); RecordType recordType = getRecordTypeFromCache(id, version); if (recordType == null) { throw new RecordTypeNotFoundException(id, version); } return recordType.clone(); }
/** * Adds an entry to this index. See {@link IndexEntry} for more information. * * @param entry the values to be part of the index key, should correspond to the fields * defined in the {@link IndexDefinition} */ public void addEntry(IndexEntry entry) throws IOException { ArgumentValidator.notNull(entry, "entry"); entry.validate(); Put put = createAddEntryPut(entry); htable.put(put); }