public void setName(String name) { data.set(Properties.NAME.getKey(), name); } public String getName() {
public void setType(String type) { data.set(Properties.TYPE.getKey(), type); } public String getType() {
public void setCluSets(Data value) { data.set(Properties.CLUSETS.getKey(), value); } public Data getCluSets() {
public void setReusable(Boolean reusable) { Boolean newValue = reusable; if (reusable == null) { newValue = new Boolean(false); } data.set(Properties.REUSABLE.getKey(), newValue); } public Boolean getReusable() {
public void setReferenceable(Boolean referenceable) { Boolean newValue = referenceable; if (referenceable == null) { newValue = new Boolean(false); } data.set(Properties.REFERENCEABLE.getKey(), newValue); } public Boolean getReferenceable() {
public static void setDataField(PropertyEnum property, Data data, Data value) { data.set(property.getKey(), value); }
public static void addCredentialProgramDataToVariation(Data variationData, DataModel model) { Data credentialProgram = new Data(); // this should mimic the formats in VariationInformationEditConfiguration::createReadOnlySection credentialProgram.set(ProgramConstants.INSTITUTION, model.<Data>get(ProgramConstants.CREDENTIAL_PROGRAM + "/" + ProgramConstants.INSTITUTION)); credentialProgram.set(ProgramConstants.PROGRAM_LEVEL, model.<String>get(ProgramConstants.CREDENTIAL_PROGRAM + "/" + ProgramConstants.PROGRAM_LEVEL)); credentialProgram.set(ProgramConstants.RUNTIME_DATA, model.<Data>get(ProgramConstants.CREDENTIAL_PROGRAM + "/" + ProgramConstants.RUNTIME_DATA)); variationData.set(ProgramConstants.CREDENTIAL_PROGRAM, credentialProgram); }
public void setUpdated (Boolean value) { data.set (Properties.UPDATED.getKey (), value); }
public void setVersions (Data value) { data.set (Properties.VERSIONS.getKey (), value); }
public void setCreateId (String value) { data.set (Properties.CREATE_ID.getKey (), value); }
public void setUpdateTime (Date value) { data.set (Properties.UPDATE_TIME.getKey (), value); }
public void setOrganization(String value) { data.set(Properties.ORGANIZATION.getKey(), value); } public String getOrganization() {
public void setEffectiveDate(Date value) { data.set(Properties.EFFECTIVE_DATE.getKey(), value); } public Date getEffectiveDate() {
public void setState(String state) { data.set(Properties.STATE.getKey(), state); } public String getState() {
public void setCluRangeParams(Data value) { data.set(Properties.CLU_SET_RANGE.getKey(), value); } public CluSetRangeHelper getCluRangeParams() {
public static void setVersions(Data data, Data versions) { if (data != null) { // TODO need a "standard properties" enum for values that could be present on any object? Data runtime = data.get("_runtimeData"); if (runtime == null) { runtime = new Data(); data.set("_runtimeData", runtime); } runtime.set(RuntimeDataHelper.Properties.VERSIONS.getKey(), versions); } }
@Override public void onEvent(SpecializationCreatedEvent event) { programModel.getRoot().set(ProgramConstants.ID, event.getSpecializationId()); showWarnings(); } });
public void set(final QueryPath path, final Value value) { definition.ensurePath(root, path, value instanceof DataValue); if (path.size() > 1) { final QueryPath q = path.subPath(0, path.size() - 1); final Data d = root.query(q); d.set(path.get(path.size() - 1), value); } else { root.set(path.get(0), value); } }