Skip to content

Instantly share code, notes, and snippets.

@aino-prashant
Last active April 9, 2018 13:31
Show Gist options
  • Save aino-prashant/2f85518286e474a1758537e3a4e91096 to your computer and use it in GitHub Desktop.
Save aino-prashant/2f85518286e474a1758537e3a4e91096 to your computer and use it in GitHub Desktop.
GeneratedTappSlimPojomarkerImpl(new)
package com.trupublic.shared.slim.tapp;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import jsinterop.annotations.JsType;
import org.appops.altshared.shared.InstanceProvider;
import org.appops.altshared.shared.PojoMarker;
import org.appops.altshared.shared.altcore.altentity.AltEntity;
import org.appops.altshared.shared.altcore.altentity.type.AltType;
import org.appops.altshared.shared.altcore.annotations.Worker;
import org.appops.altshared.shared.jsonizer.base.AltJsonizerException;
import org.appops.altshared.shared.jsonizer.base.ClientInstanceRegistry;
import org.appops.altshared.shared.jsonizer.base.CollectionTypeKey;
import org.appops.altshared.shared.jsonizer.base.Constants;
import org.appops.altshared.shared.jsonizer.base.InstanceRegistry;
import org.appops.altshared.shared.jsonizer.base.JsonCollection;
import org.appops.altshared.shared.jsonizer.base.ManageInstanceRegistry;
import org.appops.altshared.shared.jsonizer.base.TypeKey;
import org.appops.altshared.shared.jsonizer.base.TypedAs;
import org.appops.altshared.shared.sync.IntrinsicChange;
import org.appops.altshared.shared.sync.PojoMarkerChange;
import org.appops.altshared.shared.sync.SyncChange;
import org.appops.jsonizer.client.base.DeepCopy;
import org.appops.jsonizer.client.base.ManagePojo;
import org.appops.jsonizer.client.base.ObjectPeer;
import org.appops.jsonizer.client.base.PojoMarkerImplInstantiator;
import org.appops.jsonizer.client.base.TypeInfo;
import org.appops.jsonizer.client.base.TypeKeyFactory;
import org.appops.jsonizer.client.base.Utils;
import org.appops.jsonizer.client.binding.JsonizerGinjector;
import org.appops.jsonizer.client.impls.BasePojoMarkerImpl;
import org.appops.jsonizer.client.impls.PojoMarkerImplInstantiatorRegistry;
import org.appops.sync.client.eventconfiguration.event.ApplyArrayListAddElementChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyArrayListClearChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyArrayListRemoveChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyCollectionChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyHashMapChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyHashSetChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyLinkedListAddElementChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyPojoMarkerChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyTreeMapChangeEvent;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.json.client.JSONObject;
import com.trupublic.shared.slim.tapp.TappSlim;
public class GeneratedTappSlimPojoMarkerImpl extends com.trupublic.shared.slim.tapp.TappSlim implements
org.appops.jsonizer.client.base.Jsonizer, java.io.Serializable,
org.appops.jsonizer.client.base.JsonizerTypeInfo, org.appops.jsonizer.client.base.ManagePojo,
org.appops.jsonizer.client.base.ObjectPeer, org.appops.altshared.shared.jsonizer.base.ManageInstanceRegistry,
org.appops.altshared.shared.sync.SyncInternal,
org.appops.sync.client.eventconfiguration.handlers.ApplyPojoMarkerChangeEventHandler,
org.appops.sync.client.eventconfiguration.handlers.ApplyCollectonModifiedEventHandler,
org.appops.jsonizer.client.PojoMarkerHelper, org.appops.jsonizer.client.base.DeepCopy,
org.appops.jsonizer.client.base.ManageCopy, org.appops.jsonizer.client.base.Selector,
org.appops.altshared.shared.jsonizer.base.HasReferrer {
private BasePojoMarkerImpl _impl = JsonizerGinjector.INSTANCE.getBasePojoMarkerImpl();
private String pojoMarkerKey = "com.trupublic.shared.slim.tapp.TappSlim";
private static HashMap<String, TypeKey> typeMap = new HashMap<String, TypeKey>();
private InstanceRegistry instanceRegistry = null;
private SimpleEventBus eventBus = null;
private Serializable instanceId = null;
private HashMap<String, TypeInfo> typeInfoMap = null;
private Logger logger = Logger.getLogger(this.getClass().getName());
private boolean isSynced = false;
private String guid = null;
private HashMap<Object, Object> deepCopyMap = null;
public GeneratedTappSlimPojoMarkerImpl() {
_impl.setTypeMap(typeMap);
_impl.setPojoMarkerImpl(this);
_impl.setPojomarkerKey(pojoMarkerKey);
this.setInstanceProvider();
generateTypeInfoMap();
if (this.instanceRegistry == null) {
this.instanceRegistry = GWT.create(ClientInstanceRegistry.class);
_impl.setInstanceRegistry(this.instanceRegistry, false);
}
_impl.registerTopMostObject((PojoMarker) this);
}
static {
typeMap.put("tappdescription", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("versionid", TypeKeyFactory.getTypeKey("int"));
typeMap.put("ishome", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("id", TypeKeyFactory.getTypeKey("long"));
typeMap.put("issystem", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("blobid", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("isprimary", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("tappvariablestore", new TypeKey(TypedAs.FIXED, "com.trupublic.shared.store.TappVariableStore"));
typeMap.put("name", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put(
"actionablelist",
new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>(Arrays
.asList(new TypeKey(TypedAs.VARIANT, "org.appops.altshared.shared.altcore.action.Actionable")))));
typeMap.put("homespaceid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("spaceslim", TypeKeyFactory.getTypeKey("long"));
typeMap.put(
"sceneslimlist",
new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>(Arrays
.asList(new TypeKey(TypedAs.VARIANT, "com.trupublic.shared.slim.tapp.scene.SceneBase")))));
typeMap.put("timetranslated", TypeKeyFactory.getTypeKey("long"));
typeMap.put("tappicon", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("istranslated", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("createdby", TypeKeyFactory.getTypeKey("long"));
typeMap.put(
"moduleslimlist",
new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>(Arrays
.asList(new TypeKey(TypedAs.FIXED, "com.trupublic.shared.slim.tapp.module.ModuleSlim")))));
typeMap.put("thinglist", new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>(
Arrays.asList(new TypeKey(TypedAs.FIXED, "com.trupublic.shared.slim.tapp.thing.ThingSlim")))));
typeMap.put("isgeneric", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("createdon", TypeKeyFactory.getTypeKey("java.util.Date"));
typeMap.put("modifiedby", TypeKeyFactory.getTypeKey("long"));
typeMap.put("timemodified", TypeKeyFactory.getTypeKey("long"));
typeMap.put("owner", TypeKeyFactory.getTypeKey("long"));
typeMap.put("iscommunity", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("isprivate", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("serviceid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("rolelist", new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>(
Arrays.asList(new TypeKey(TypedAs.FIXED, "com.trupublic.shared.slim.tapp.role.RoleSlim")))));
typeMap.put("tappstatus", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("modifiedon", TypeKeyFactory.getTypeKey("java.util.Date"));
typeMap.put("familyid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("spaceslimid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("tappbanner", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("isaddon", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("iskernel", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put(
"exposedthingslist",
new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>(Arrays
.asList(new TypeKey(TypedAs.FIXED, "com.trupublic.shared.slim.tapp.thing.ThingSlim")))));
typeMap.put("isdirty", new TypeKey(TypedAs.FIXED, "java.lang.Boolean"));
typeMap.put("spacetypeid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("translatedjsonblob", TypeKeyFactory.getTypeKey("java.lang.String"));
String pojoMarkerKey = "";
pojoMarkerKey = "com.trupublic.shared.slim.tapp.TappSlim";
PojoMarkerImplInstantiatorRegistry.get().registerInstantiator(pojoMarkerKey,
new PojoMarkerImplInstantiator<TappSlim>() {
@Override
public TappSlim createInstance() {
return GWT.create(TappSlim.class);
}
});
}
@Worker
public void setInstanceProvider() {
super.setInstanceProvider((InstanceProvider) GWT.create(InstanceProvider.class));
}
public void setAllPropertyValuesToClass() {
Object propertyValue = null;
propertyValue = _impl.getProperty("modifiedby");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setModifiedBy((long) propertyValue);
propertyValue = _impl.getProperty("spacetypeid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setSpaceTypeId((long) propertyValue);
propertyValue = _impl.getProperty("owner");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setOwner((long) propertyValue);
propertyValue = _impl.getProperty("createdby");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setCreatedBy((long) propertyValue);
propertyValue = _impl.getProperty("isaddon");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsAddOn((boolean) propertyValue);
propertyValue = _impl.getProperty("tappvariablestore");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore) propertyValue);
propertyValue = _impl.getProperty("exposedthingslist");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setExposedThingsList((java.util.ArrayList) propertyValue);
propertyValue = _impl.getProperty("tappdescription");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTappDescription((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("modifiedon");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setModifiedOn((java.util.Date) propertyValue);
propertyValue = _impl.getProperty("createdon");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setCreatedOn((java.util.Date) propertyValue);
propertyValue = _impl.getProperty("serviceid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setServiceId((long) propertyValue);
propertyValue = _impl.getProperty("blobid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setBlobId((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("rolelist");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setRoleList((java.util.ArrayList) propertyValue);
propertyValue = _impl.getProperty("moduleslimlist");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setModuleSlimList((java.util.ArrayList) propertyValue);
propertyValue = _impl.getProperty("translatedjsonblob");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTranslatedJsonBlob((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("spaceslim");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setSpaceSlim((long) propertyValue);
propertyValue = _impl.getProperty("timemodified");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTimeModified((long) propertyValue);
propertyValue = _impl.getProperty("tappstatus");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTappStatus((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("tappicon");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTappIcon((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("isdirty");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsDirty((boolean) propertyValue);
propertyValue = _impl.getProperty("homespaceid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setHomeSpaceId((long) propertyValue);
propertyValue = _impl.getProperty("actionablelist");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setActionableList((java.util.ArrayList) propertyValue);
propertyValue = _impl.getProperty("id");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setId((long) propertyValue);
propertyValue = _impl.getProperty("ishome");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsHome((boolean) propertyValue);
propertyValue = _impl.getProperty("isprimary");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsPrimary((boolean) propertyValue);
propertyValue = _impl.getProperty("timetranslated");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTimeTranslated((long) propertyValue);
propertyValue = _impl.getProperty("isprivate");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsPrivate((boolean) propertyValue);
propertyValue = _impl.getProperty("iskernel");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsKernel((boolean) propertyValue);
propertyValue = _impl.getProperty("tappbanner");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setTappBanner((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("familyid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setFamilyId((long) propertyValue);
propertyValue = _impl.getProperty("versionid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setVersionId((int) propertyValue);
propertyValue = _impl.getProperty("iscommunity");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsCommunity((boolean) propertyValue);
propertyValue = _impl.getProperty("istranslated");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsTranslated((boolean) propertyValue);
propertyValue = _impl.getProperty("isgeneric");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsGeneric((boolean) propertyValue);
propertyValue = _impl.getProperty("sceneslimlist");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setSceneSlimList((java.util.ArrayList) propertyValue);
propertyValue = _impl.getProperty("name");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setName((java.lang.String) propertyValue);
propertyValue = _impl.getProperty("spaceslimid");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setSpaceSlimId((long) propertyValue);
propertyValue = _impl.getProperty("issystem");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setIsSystem((boolean) propertyValue);
propertyValue = _impl.getProperty("thinglist");
if (propertyValue instanceof AltEntity) {
propertyValue = getEntityConverted((AltEntity) propertyValue);
}
if (propertyValue != null && propertyValue instanceof Serializable)
super.setThingList((java.util.ArrayList) propertyValue);
}
@Override
public java.lang.String getTappDescription() {
Serializable value = _impl.getProperty("tappdescription");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getTappDescription();
return (java.lang.String) result;
}
}
@Override
public int getVersionId() {
Serializable value = _impl.getProperty("versionid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (int) value;
} else {
Object result = super.getVersionId();
return (int) result;
}
}
@Override
public void setModifiedBy(long modifiedBy) {
super.setModifiedBy((long) modifiedBy);
setPropertyValue("modifiedby", modifiedBy, false);
}
@Override
public boolean getIsHome() {
Serializable value = _impl.getProperty("ishome");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsHome();
return (boolean) result;
}
}
@Override
public void setSpaceTypeId(long spaceTypeId) {
super.setSpaceTypeId((long) spaceTypeId);
setPropertyValue("spacetypeid", spaceTypeId, false);
}
@Override
public void setOwner(long owner) {
super.setOwner((long) owner);
setPropertyValue("owner", owner, false);
}
@Override
public void setCreatedBy(long createdBy) {
super.setCreatedBy((long) createdBy);
setPropertyValue("createdby", createdBy, false);
}
@Override
public void setIsAddOn(boolean isAddOn) {
super.setIsAddOn((boolean) isAddOn);
setPropertyValue("isaddon", isAddOn, false);
}
@Override
public void setTappVariableStore(com.trupublic.shared.store.TappVariableStore tappVariableStore) {
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore) tappVariableStore);
setPropertyValue("tappvariablestore", tappVariableStore, false);
}
@Override
public long getId() {
Serializable value = _impl.getProperty("id");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getId();
return (long) result;
}
}
@Override
public boolean getIsSystem() {
Serializable value = _impl.getProperty("issystem");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsSystem();
return (boolean) result;
}
}
@Override
public java.lang.String getBlobId() {
Serializable value = _impl.getProperty("blobid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getBlobId();
return (java.lang.String) result;
}
}
@Override
public boolean getIsPrimary() {
Serializable value = _impl.getProperty("isprimary");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsPrimary();
return (boolean) result;
}
}
@Override
public com.trupublic.shared.store.TappVariableStore getTappVariableStore() {
Serializable value = _impl.getProperty("tappvariablestore");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (com.trupublic.shared.store.TappVariableStore) value;
} else {
Object result = super.getTappVariableStore();
return (com.trupublic.shared.store.TappVariableStore) result;
}
}
@Override
public java.lang.String getName() {
Serializable value = _impl.getProperty("name");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getName();
return (java.lang.String) result;
}
}
@Override
public void setExposedThingsList(java.util.ArrayList exposedThingsList) {
super.setExposedThingsList((java.util.ArrayList) exposedThingsList);
setPropertyValue("exposedthingslist", exposedThingsList, false);
}
@Override
public java.util.ArrayList getActionableList() {
Serializable value = _impl.getProperty("actionablelist");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue("actionablelist", null, false);
return (java.util.ArrayList) value;
} else {
Object result = super.getActionableList();
if (result == null && value != null) {
result = value;
}
return (java.util.ArrayList) result;
}
}
@Override
public void setTappDescription(java.lang.String tappDescription) {
super.setTappDescription((java.lang.String) tappDescription);
setPropertyValue("tappdescription", tappDescription, false);
}
@Override
public void setModifiedOn(java.util.Date modifiedOn) {
super.setModifiedOn((java.util.Date) modifiedOn);
setPropertyValue("modifiedon", modifiedOn, false);
}
@Override
public void setCreatedOn(java.util.Date createdOn) {
super.setCreatedOn((java.util.Date) createdOn);
setPropertyValue("createdon", createdOn, false);
}
@Override
public void setServiceId(long serviceId) {
super.setServiceId((long) serviceId);
setPropertyValue("serviceid", serviceId, false);
}
@Override
public void setBlobId(java.lang.String blobId) {
super.setBlobId((java.lang.String) blobId);
setPropertyValue("blobid", blobId, false);
}
@Override
public void setRoleList(java.util.ArrayList roleList) {
super.setRoleList((java.util.ArrayList) roleList);
setPropertyValue("rolelist", roleList, false);
}
@Override
public void setModuleSlimList(java.util.ArrayList moduleSlimList) {
super.setModuleSlimList((java.util.ArrayList) moduleSlimList);
setPropertyValue("moduleslimlist", moduleSlimList, false);
}
@Override
public void setTranslatedJsonBlob(java.lang.String translatedJsonBlob) {
super.setTranslatedJsonBlob((java.lang.String) translatedJsonBlob);
setPropertyValue("translatedjsonblob", translatedJsonBlob, false);
}
@Override
public void setSpaceSlim(long spaceSlim) {
super.setSpaceSlim((long) spaceSlim);
setPropertyValue("spaceslim", spaceSlim, false);
}
@Override
public long getHomeSpaceId() {
Serializable value = _impl.getProperty("homespaceid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getHomeSpaceId();
return (long) result;
}
}
@Override
public void setTimeModified(long timeModified) {
super.setTimeModified((long) timeModified);
setPropertyValue("timemodified", timeModified, false);
}
@Override
public void setTappStatus(java.lang.String tappStatus) {
super.setTappStatus((java.lang.String) tappStatus);
setPropertyValue("tappstatus", tappStatus, false);
}
@Override
public void setTappIcon(java.lang.String tappIcon) {
super.setTappIcon((java.lang.String) tappIcon);
setPropertyValue("tappicon", tappIcon, false);
}
@Override
public void setIsDirty(boolean isDirty) {
super.setIsDirty((boolean) isDirty);
setPropertyValue("isdirty", isDirty, false);
}
@Override
public long getSpaceSlim() {
Serializable value = _impl.getProperty("spaceslim");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getSpaceSlim();
return (long) result;
}
}
@Override
public void setHomeSpaceId(long homeSpaceId) {
super.setHomeSpaceId((long) homeSpaceId);
setPropertyValue("homespaceid", homeSpaceId, false);
}
@Override
public void setActionableList(java.util.ArrayList actionableList) {
super.setActionableList((java.util.ArrayList) actionableList);
setPropertyValue("actionablelist", actionableList, false);
}
@Override
public void setId(long id) {
super.setId((long) id);
setPropertyValue("id", id, false);
}
@Override
public void setIsHome(boolean isHome) {
super.setIsHome((boolean) isHome);
setPropertyValue("ishome", isHome, false);
}
@Override
public java.util.ArrayList getSceneSlimList() {
Serializable value = _impl.getProperty("sceneslimlist");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue("sceneslimlist", null, false);
return (java.util.ArrayList) value;
} else {
Object result = super.getSceneSlimList();
if (result == null && value != null) {
result = value;
}
return (java.util.ArrayList) result;
}
}
@Override
public long getTimeTranslated() {
Serializable value = _impl.getProperty("timetranslated");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getTimeTranslated();
return (long) result;
}
}
@Override
public void setIsPrimary(boolean isPrimary) {
super.setIsPrimary((boolean) isPrimary);
setPropertyValue("isprimary", isPrimary, false);
}
@Override
public void setTimeTranslated(long timeTranslated) {
super.setTimeTranslated((long) timeTranslated);
setPropertyValue("timetranslated", timeTranslated, false);
}
@Override
public java.lang.String getTappIcon() {
Serializable value = _impl.getProperty("tappicon");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getTappIcon();
return (java.lang.String) result;
}
}
@Override
public boolean getIsTranslated() {
Serializable value = _impl.getProperty("istranslated");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsTranslated();
return (boolean) result;
}
}
@Override
public long getCreatedBy() {
Serializable value = _impl.getProperty("createdby");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getCreatedBy();
return (long) result;
}
}
@Override
public java.util.ArrayList getModuleSlimList() {
Serializable value = _impl.getProperty("moduleslimlist");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue("moduleslimlist", null, false);
return (java.util.ArrayList) value;
} else {
Object result = super.getModuleSlimList();
if (result == null && value != null) {
result = value;
}
return (java.util.ArrayList) result;
}
}
@Override
public java.util.ArrayList getThingList() {
Serializable value = _impl.getProperty("thinglist");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue("thinglist", null, false);
return (java.util.ArrayList) value;
} else {
Object result = super.getThingList();
if (result == null && value != null) {
result = value;
}
return (java.util.ArrayList) result;
}
}
@Override
public boolean getIsGeneric() {
Serializable value = _impl.getProperty("isgeneric");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsGeneric();
return (boolean) result;
}
}
@Override
public void setIsPrivate(boolean isPrivate) {
super.setIsPrivate((boolean) isPrivate);
setPropertyValue("isprivate", isPrivate, false);
}
@Override
public java.util.Date getCreatedOn() {
Serializable value = _impl.getProperty("createdon");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.util.Date) value;
} else {
Object result = super.getCreatedOn();
return (java.util.Date) result;
}
}
@Override
public void setIsKernel(boolean isKernel) {
super.setIsKernel((boolean) isKernel);
setPropertyValue("iskernel", isKernel, false);
}
@Override
public long getModifiedBy() {
Serializable value = _impl.getProperty("modifiedby");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getModifiedBy();
return (long) result;
}
}
@Override
public void setTappBanner(java.lang.String tappBanner) {
super.setTappBanner((java.lang.String) tappBanner);
setPropertyValue("tappbanner", tappBanner, false);
}
@Override
public void setFamilyId(long familyId) {
super.setFamilyId((long) familyId);
setPropertyValue("familyid", familyId, false);
}
@Override
public void setVersionId(int versionId) {
super.setVersionId((int) versionId);
setPropertyValue("versionid", versionId, false);
}
@Override
public long getTimeModified() {
Serializable value = _impl.getProperty("timemodified");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getTimeModified();
return (long) result;
}
}
@Override
public long getOwner() {
Serializable value = _impl.getProperty("owner");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getOwner();
return (long) result;
}
}
@Override
public boolean getIsCommunity() {
Serializable value = _impl.getProperty("iscommunity");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsCommunity();
return (boolean) result;
}
}
@Override
public void setIsCommunity(boolean isCommunity) {
super.setIsCommunity((boolean) isCommunity);
setPropertyValue("iscommunity", isCommunity, false);
}
@Override
public void setIsTranslated(boolean isTranslated) {
super.setIsTranslated((boolean) isTranslated);
setPropertyValue("istranslated", isTranslated, false);
}
@Override
public boolean getIsPrivate() {
Serializable value = _impl.getProperty("isprivate");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsPrivate();
return (boolean) result;
}
}
@Override
public long getServiceId() {
Serializable value = _impl.getProperty("serviceid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getServiceId();
return (long) result;
}
}
@Override
public void setIsGeneric(boolean isGeneric) {
super.setIsGeneric((boolean) isGeneric);
setPropertyValue("isgeneric", isGeneric, false);
}
@Override
public java.util.ArrayList getRoleList() {
Serializable value = _impl.getProperty("rolelist");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue("rolelist", null, false);
return (java.util.ArrayList) value;
} else {
Object result = super.getRoleList();
if (result == null && value != null) {
result = value;
}
return (java.util.ArrayList) result;
}
}
@Override
public java.lang.String getTappStatus() {
Serializable value = _impl.getProperty("tappstatus");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getTappStatus();
return (java.lang.String) result;
}
}
@Override
public void setSceneSlimList(java.util.ArrayList sceneSlimList) {
super.setSceneSlimList((java.util.ArrayList) sceneSlimList);
setPropertyValue("sceneslimlist", sceneSlimList, false);
}
@Override
public java.util.Date getModifiedOn() {
Serializable value = _impl.getProperty("modifiedon");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.util.Date) value;
} else {
Object result = super.getModifiedOn();
return (java.util.Date) result;
}
}
@Override
public void setName(java.lang.String name) {
super.setName((java.lang.String) name);
setPropertyValue("name", name, false);
}
@Override
public long getFamilyId() {
Serializable value = _impl.getProperty("familyid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getFamilyId();
return (long) result;
}
}
@Override
public long getSpaceSlimId() {
Serializable value = _impl.getProperty("spaceslimid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getSpaceSlimId();
return (long) result;
}
}
@Override
public java.lang.String getTappBanner() {
Serializable value = _impl.getProperty("tappbanner");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getTappBanner();
return (java.lang.String) result;
}
}
@Override
public void setSpaceSlimId(long spaceSlimId) {
super.setSpaceSlimId((long) spaceSlimId);
setPropertyValue("spaceslimid", spaceSlimId, false);
}
@Override
public boolean getIsAddOn() {
Serializable value = _impl.getProperty("isaddon");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsAddOn();
return (boolean) result;
}
}
@Override
public boolean getIsKernel() {
Serializable value = _impl.getProperty("iskernel");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (boolean) value;
} else {
Object result = super.getIsKernel();
return (boolean) result;
}
}
@Override
public java.util.ArrayList getExposedThingsList() {
Serializable value = _impl.getProperty("exposedthingslist");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue("exposedthingslist", null, false);
return (java.util.ArrayList) value;
} else {
Object result = super.getExposedThingsList();
if (result == null && value != null) {
result = value;
}
return (java.util.ArrayList) result;
}
}
@Override
public void setIsSystem(boolean isSystem) {
super.setIsSystem((boolean) isSystem);
setPropertyValue("issystem", isSystem, false);
}
@Override
public java.lang.Boolean getIsDirty() {
Serializable value = _impl.getProperty("isdirty");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.Boolean) value;
} else {
Object result = super.getIsDirty();
return (java.lang.Boolean) result;
}
}
@Override
public long getSpaceTypeId() {
Serializable value = _impl.getProperty("spacetypeid");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (long) value;
} else {
Object result = super.getSpaceTypeId();
return (long) result;
}
}
@Override
public java.lang.String getTranslatedJsonBlob() {
Serializable value = _impl.getProperty("translatedjsonblob");
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return (java.lang.String) value;
} else {
Object result = super.getTranslatedJsonBlob();
return (java.lang.String) result;
}
}
@Override
public void setThingList(java.util.ArrayList thingList) {
super.setThingList((java.util.ArrayList) thingList);
setPropertyValue("thinglist", thingList, false);
}
public String getPropertyTypeName(String propName) {
return typeMap.get(propName).getTypeName();
}
@Override
@Worker
public String toJson(Object jsValue) {
return _impl.toJson(jsValue);
}
@Override
public PojoMarker fromJson(JavaScriptObject jsValue) {
PojoMarker result = null;
result = _impl.fromJson(jsValue);
if (result != null)
return result;
return this;
}
@Override
@Worker
public HashMap<String, TypeKey> getPropertyTypeMap() {
return typeMap;
}
@Worker
public void setPropertyValue(String propName, Object value, boolean isDeepCopy) {
if (isDeepCopy) {
setPropertyValueToDeepSet(propName, value, isDeepCopy);
} else {
SyncChange change = null;
switch (propName) {
case "modifiedby":
if (value != null) {
super.setModifiedBy((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("modifiedby", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("modifiedby", (Serializable) value);
}
}
break;
case "spacetypeid":
if (value != null) {
super.setSpaceTypeId((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("spacetypeid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("spacetypeid", (Serializable) value);
}
}
break;
case "owner":
if (value != null) {
super.setOwner((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("owner", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("owner", (Serializable) value);
}
}
break;
case "createdby":
if (value != null) {
super.setCreatedBy((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("createdby", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("createdby", (Serializable) value);
}
}
break;
case "isaddon":
if (value != null) {
super.setIsAddOn((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("isaddon", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("isaddon", (Serializable) value);
}
}
break;
case "tappvariablestore":
if (value != null) {
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("tappvariablestore", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("tappvariablestore", (Serializable) value);
}
}
break;
case "exposedthingslist":
if (value != null) {
super.setExposedThingsList((java.util.ArrayList) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("exposedthingslist", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("exposedthingslist", (Serializable) value);
}
}
break;
case "tappdescription":
if (value != null) {
super.setTappDescription((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("tappdescription", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("tappdescription", (Serializable) value);
}
}
break;
case "modifiedon":
if (value != null) {
super.setModifiedOn((java.util.Date) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("modifiedon", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("modifiedon", (Serializable) value);
}
}
break;
case "createdon":
if (value != null) {
super.setCreatedOn((java.util.Date) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("createdon", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("createdon", (Serializable) value);
}
}
break;
case "serviceid":
if (value != null) {
super.setServiceId((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("serviceid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("serviceid", (Serializable) value);
}
}
break;
case "blobid":
if (value != null) {
super.setBlobId((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("blobid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("blobid", (Serializable) value);
}
}
break;
case "rolelist":
if (value != null) {
super.setRoleList((java.util.ArrayList) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("rolelist", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("rolelist", (Serializable) value);
}
}
break;
case "moduleslimlist":
if (value != null) {
super.setModuleSlimList((java.util.ArrayList) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("moduleslimlist", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("moduleslimlist", (Serializable) value);
}
}
break;
case "translatedjsonblob":
if (value != null) {
super.setTranslatedJsonBlob((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("translatedjsonblob", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("translatedjsonblob", (Serializable) value);
}
}
break;
case "spaceslim":
if (value != null) {
super.setSpaceSlim((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("spaceslim", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("spaceslim", (Serializable) value);
}
}
break;
case "timemodified":
if (value != null) {
super.setTimeModified((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("timemodified", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("timemodified", (Serializable) value);
}
}
break;
case "tappstatus":
if (value != null) {
super.setTappStatus((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("tappstatus", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("tappstatus", (Serializable) value);
}
}
break;
case "tappicon":
if (value != null) {
super.setTappIcon((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("tappicon", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("tappicon", (Serializable) value);
}
}
break;
case "isdirty":
if (value != null) {
super.setIsDirty((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("isdirty", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("isdirty", (Serializable) value);
}
}
break;
case "homespaceid":
if (value != null) {
super.setHomeSpaceId((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("homespaceid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("homespaceid", (Serializable) value);
}
}
break;
case "actionablelist":
if (value != null) {
super.setActionableList((java.util.ArrayList) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("actionablelist", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("actionablelist", (Serializable) value);
}
}
break;
case "id":
if (value != null) {
super.setId((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("id", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("id", (Serializable) value);
}
}
break;
case "ishome":
if (value != null) {
super.setIsHome((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("ishome", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("ishome", (Serializable) value);
}
}
break;
case "isprimary":
if (value != null) {
super.setIsPrimary((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("isprimary", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("isprimary", (Serializable) value);
}
}
break;
case "timetranslated":
if (value != null) {
super.setTimeTranslated((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("timetranslated", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("timetranslated", (Serializable) value);
}
}
break;
case "isprivate":
if (value != null) {
super.setIsPrivate((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("isprivate", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("isprivate", (Serializable) value);
}
}
break;
case "iskernel":
if (value != null) {
super.setIsKernel((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("iskernel", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("iskernel", (Serializable) value);
}
}
break;
case "tappbanner":
if (value != null) {
super.setTappBanner((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("tappbanner", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("tappbanner", (Serializable) value);
}
}
break;
case "familyid":
if (value != null) {
super.setFamilyId((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("familyid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("familyid", (Serializable) value);
}
}
break;
case "versionid":
if (value != null) {
super.setVersionId((int) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("versionid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("versionid", (Serializable) value);
}
}
break;
case "iscommunity":
if (value != null) {
super.setIsCommunity((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("iscommunity", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("iscommunity", (Serializable) value);
}
}
break;
case "istranslated":
if (value != null) {
super.setIsTranslated((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("istranslated", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("istranslated", (Serializable) value);
}
}
break;
case "isgeneric":
if (value != null) {
super.setIsGeneric((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("isgeneric", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("isgeneric", (Serializable) value);
}
}
break;
case "sceneslimlist":
if (value != null) {
super.setSceneSlimList((java.util.ArrayList) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("sceneslimlist", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("sceneslimlist", (Serializable) value);
}
}
break;
case "name":
if (value != null) {
super.setName((java.lang.String) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("name", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("name", (Serializable) value);
}
}
break;
case "spaceslimid":
if (value != null) {
super.setSpaceSlimId((long) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("spaceslimid", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("spaceslimid", (Serializable) value);
}
}
break;
case "issystem":
if (value != null) {
super.setIsSystem((boolean) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("issystem", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("issystem", (Serializable) value);
}
}
break;
case "thinglist":
if (value != null) {
super.setThingList((java.util.ArrayList) value);
}
if (_impl != null) {
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap("thinglist", (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty("thinglist", (Serializable) value);
}
}
break;
default:
logger.log(Level.SEVERE, "property with name " + propName + "does not exists");
break;
}
}
}
public void setPropertyValueToDeepSet(String propName, Object value, boolean isDeepCopy) {
if (getDeepCopyMap().containsKey(value) && getDeepCopyMap().get(value) != null) {
value = getDeepCopyMap().get(value);
}
switch (propName) {
case "modifiedby":
if (_impl != null) {
_impl.setProperty("modifiedby", (Serializable) value, isDeepCopy);
}
super.setModifiedBy((long) value);
break;
case "spacetypeid":
if (_impl != null) {
_impl.setProperty("spacetypeid", (Serializable) value, isDeepCopy);
}
super.setSpaceTypeId((long) value);
break;
case "owner":
if (_impl != null) {
_impl.setProperty("owner", (Serializable) value, isDeepCopy);
}
super.setOwner((long) value);
break;
case "createdby":
if (_impl != null) {
_impl.setProperty("createdby", (Serializable) value, isDeepCopy);
}
super.setCreatedBy((long) value);
break;
case "isaddon":
if (_impl != null) {
_impl.setProperty("isaddon", (Serializable) value, isDeepCopy);
}
super.setIsAddOn((boolean) value);
break;
case "tappvariablestore":
if (_impl != null) {
_impl.setProperty("tappvariablestore", (Serializable) value, isDeepCopy);
}
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore) value);
break;
case "exposedthingslist":
if (_impl != null) {
_impl.setProperty("exposedthingslist", (Serializable) value, isDeepCopy);
}
super.setExposedThingsList((java.util.ArrayList) value);
break;
case "tappdescription":
if (_impl != null) {
_impl.setProperty("tappdescription", (Serializable) value, isDeepCopy);
}
super.setTappDescription((java.lang.String) value);
break;
case "modifiedon":
if (_impl != null) {
_impl.setProperty("modifiedon", (Serializable) value, isDeepCopy);
}
super.setModifiedOn((java.util.Date) value);
break;
case "createdon":
if (_impl != null) {
_impl.setProperty("createdon", (Serializable) value, isDeepCopy);
}
super.setCreatedOn((java.util.Date) value);
break;
case "serviceid":
if (_impl != null) {
_impl.setProperty("serviceid", (Serializable) value, isDeepCopy);
}
super.setServiceId((long) value);
break;
case "blobid":
if (_impl != null) {
_impl.setProperty("blobid", (Serializable) value, isDeepCopy);
}
super.setBlobId((java.lang.String) value);
break;
case "rolelist":
if (_impl != null) {
_impl.setProperty("rolelist", (Serializable) value, isDeepCopy);
}
super.setRoleList((java.util.ArrayList) value);
break;
case "moduleslimlist":
if (_impl != null) {
_impl.setProperty("moduleslimlist", (Serializable) value, isDeepCopy);
}
super.setModuleSlimList((java.util.ArrayList) value);
break;
case "translatedjsonblob":
if (_impl != null) {
_impl.setProperty("translatedjsonblob", (Serializable) value, isDeepCopy);
}
super.setTranslatedJsonBlob((java.lang.String) value);
break;
case "spaceslim":
if (_impl != null) {
_impl.setProperty("spaceslim", (Serializable) value, isDeepCopy);
}
super.setSpaceSlim((long) value);
break;
case "timemodified":
if (_impl != null) {
_impl.setProperty("timemodified", (Serializable) value, isDeepCopy);
}
super.setTimeModified((long) value);
break;
case "tappstatus":
if (_impl != null) {
_impl.setProperty("tappstatus", (Serializable) value, isDeepCopy);
}
super.setTappStatus((java.lang.String) value);
break;
case "tappicon":
if (_impl != null) {
_impl.setProperty("tappicon", (Serializable) value, isDeepCopy);
}
super.setTappIcon((java.lang.String) value);
break;
case "isdirty":
if (_impl != null) {
_impl.setProperty("isdirty", (Serializable) value, isDeepCopy);
}
super.setIsDirty((boolean) value);
break;
case "homespaceid":
if (_impl != null) {
_impl.setProperty("homespaceid", (Serializable) value, isDeepCopy);
}
super.setHomeSpaceId((long) value);
break;
case "actionablelist":
if (_impl != null) {
_impl.setProperty("actionablelist", (Serializable) value, isDeepCopy);
}
super.setActionableList((java.util.ArrayList) value);
break;
case "id":
if (_impl != null) {
_impl.setProperty("id", (Serializable) value, isDeepCopy);
}
super.setId((long) value);
break;
case "ishome":
if (_impl != null) {
_impl.setProperty("ishome", (Serializable) value, isDeepCopy);
}
super.setIsHome((boolean) value);
break;
case "isprimary":
if (_impl != null) {
_impl.setProperty("isprimary", (Serializable) value, isDeepCopy);
}
super.setIsPrimary((boolean) value);
break;
case "timetranslated":
if (_impl != null) {
_impl.setProperty("timetranslated", (Serializable) value, isDeepCopy);
}
super.setTimeTranslated((long) value);
break;
case "isprivate":
if (_impl != null) {
_impl.setProperty("isprivate", (Serializable) value, isDeepCopy);
}
super.setIsPrivate((boolean) value);
break;
case "iskernel":
if (_impl != null) {
_impl.setProperty("iskernel", (Serializable) value, isDeepCopy);
}
super.setIsKernel((boolean) value);
break;
case "tappbanner":
if (_impl != null) {
_impl.setProperty("tappbanner", (Serializable) value, isDeepCopy);
}
super.setTappBanner((java.lang.String) value);
break;
case "familyid":
if (_impl != null) {
_impl.setProperty("familyid", (Serializable) value, isDeepCopy);
}
super.setFamilyId((long) value);
break;
case "versionid":
if (_impl != null) {
_impl.setProperty("versionid", (Serializable) value, isDeepCopy);
}
super.setVersionId((int) value);
break;
case "iscommunity":
if (_impl != null) {
_impl.setProperty("iscommunity", (Serializable) value, isDeepCopy);
}
super.setIsCommunity((boolean) value);
break;
case "istranslated":
if (_impl != null) {
_impl.setProperty("istranslated", (Serializable) value, isDeepCopy);
}
super.setIsTranslated((boolean) value);
break;
case "isgeneric":
if (_impl != null) {
_impl.setProperty("isgeneric", (Serializable) value, isDeepCopy);
}
super.setIsGeneric((boolean) value);
break;
case "sceneslimlist":
if (_impl != null) {
_impl.setProperty("sceneslimlist", (Serializable) value, isDeepCopy);
}
super.setSceneSlimList((java.util.ArrayList) value);
break;
case "name":
if (_impl != null) {
_impl.setProperty("name", (Serializable) value, isDeepCopy);
}
super.setName((java.lang.String) value);
break;
case "spaceslimid":
if (_impl != null) {
_impl.setProperty("spaceslimid", (Serializable) value, isDeepCopy);
}
super.setSpaceSlimId((long) value);
break;
case "issystem":
if (_impl != null) {
_impl.setProperty("issystem", (Serializable) value, isDeepCopy);
}
super.setIsSystem((boolean) value);
break;
case "thinglist":
if (_impl != null) {
_impl.setProperty("thinglist", (Serializable) value, isDeepCopy);
}
super.setThingList((java.util.ArrayList) value);
break;
default:
logger.log(Level.SEVERE, "property with name " + propName + "does not exists");
break;
}
}
@Override
@Worker
public Serializable getPropertyValue(String propName) {
Serializable result;
switch (propName) {
case "tappdescription":
result = (Serializable) getTappDescription();
return result;
case "versionid":
result = (Serializable) getVersionId();
return result;
case "ishome":
result = (Serializable) getIsHome();
return result;
case "id":
result = (Serializable) getId();
return result;
case "issystem":
result = (Serializable) getIsSystem();
return result;
case "blobid":
result = (Serializable) getBlobId();
return result;
case "isprimary":
result = (Serializable) getIsPrimary();
return result;
case "tappvariablestore":
result = (Serializable) getTappVariableStore();
return result;
case "name":
result = (Serializable) getName();
return result;
case "actionablelist":
result = (Serializable) getActionableList();
return result;
case "homespaceid":
result = (Serializable) getHomeSpaceId();
return result;
case "spaceslim":
result = (Serializable) getSpaceSlim();
return result;
case "sceneslimlist":
result = (Serializable) getSceneSlimList();
return result;
case "timetranslated":
result = (Serializable) getTimeTranslated();
return result;
case "tappicon":
result = (Serializable) getTappIcon();
return result;
case "istranslated":
result = (Serializable) getIsTranslated();
return result;
case "createdby":
result = (Serializable) getCreatedBy();
return result;
case "moduleslimlist":
result = (Serializable) getModuleSlimList();
return result;
case "thinglist":
result = (Serializable) getThingList();
return result;
case "isgeneric":
result = (Serializable) getIsGeneric();
return result;
case "createdon":
result = (Serializable) getCreatedOn();
return result;
case "modifiedby":
result = (Serializable) getModifiedBy();
return result;
case "timemodified":
result = (Serializable) getTimeModified();
return result;
case "owner":
result = (Serializable) getOwner();
return result;
case "iscommunity":
result = (Serializable) getIsCommunity();
return result;
case "isprivate":
result = (Serializable) getIsPrivate();
return result;
case "serviceid":
result = (Serializable) getServiceId();
return result;
case "rolelist":
result = (Serializable) getRoleList();
return result;
case "tappstatus":
result = (Serializable) getTappStatus();
return result;
case "modifiedon":
result = (Serializable) getModifiedOn();
return result;
case "familyid":
result = (Serializable) getFamilyId();
return result;
case "spaceslimid":
result = (Serializable) getSpaceSlimId();
return result;
case "tappbanner":
result = (Serializable) getTappBanner();
return result;
case "isaddon":
result = (Serializable) getIsAddOn();
return result;
case "iskernel":
result = (Serializable) getIsKernel();
return result;
case "exposedthingslist":
result = (Serializable) getExposedThingsList();
return result;
case "isdirty":
result = (Serializable) getIsDirty();
return result;
case "spacetypeid":
result = (Serializable) getSpaceTypeId();
return result;
case "translatedjsonblob":
result = (Serializable) getTranslatedJsonBlob();
return result;
default:
return null;
}
}
@Worker
public void setRegistrationKey(Serializable instanceRegistrationKey) {
_impl.setProperty(Constants.REGISTRATIONKEY, instanceRegistrationKey);
}
@Worker
public Serializable getRegistrationKey() {
return _impl.getProperty(Constants.REGISTRATIONKEY);
}
@Worker
@Override
public void setInstanceRegistry(InstanceRegistry instanceRegistry, boolean setDeep) {
this.instanceRegistry = instanceRegistry;
_impl.setInstanceRegistry(instanceRegistry, false);
if (setDeep)
_impl.updateInstanceRegistry(instanceRegistry, setDeep, (PojoMarker) this);
}
@Worker
public InstanceRegistry getInstanceRegistry() {
instanceRegistry = _impl.getInstanceRegistry();
return instanceRegistry;
}
@Worker
@Override
public void setEventBus(SimpleEventBus eventBus) {
Serializable result = null;
if (((ManagePojo) this).getEventBus() == null) {
this.eventBus = (SimpleEventBus) eventBus;
this.eventBus.addHandler(ApplyPojoMarkerChangeEvent.TYPE, this);
this.eventBus.addHandler(ApplyCollectionChangeEvent.TYPE, this);
prepareInstanceRegistry((Serializable) this);
result = _impl.getProperty("tappdescription");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTappDescription();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("versionid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getVersionId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("ishome");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsHome();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("id");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("issystem");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsSystem();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("blobid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getBlobId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("isprimary");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsPrimary();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("tappvariablestore");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTappVariableStore();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("name");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getName();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("actionablelist");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getActionableList();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(instanceRegistry.getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue("actionablelist", result, false);
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("homespaceid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getHomeSpaceId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("spaceslim");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getSpaceSlim();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("sceneslimlist");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getSceneSlimList();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(instanceRegistry.getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue("sceneslimlist", result, false);
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("timetranslated");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTimeTranslated();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("tappicon");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTappIcon();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("istranslated");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsTranslated();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("createdby");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getCreatedBy();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("moduleslimlist");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getModuleSlimList();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(instanceRegistry.getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue("moduleslimlist", result, false);
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("thinglist");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getThingList();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(instanceRegistry.getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue("thinglist", result, false);
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("isgeneric");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsGeneric();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("createdon");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getCreatedOn();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("modifiedby");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getModifiedBy();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("timemodified");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTimeModified();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("owner");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getOwner();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("iscommunity");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsCommunity();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("isprivate");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsPrivate();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("serviceid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getServiceId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("rolelist");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getRoleList();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(instanceRegistry.getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue("rolelist", result, false);
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("tappstatus");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTappStatus();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("modifiedon");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getModifiedOn();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("familyid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getFamilyId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("spaceslimid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getSpaceSlimId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("tappbanner");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTappBanner();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("isaddon");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsAddOn();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("iskernel");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsKernel();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("exposedthingslist");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getExposedThingsList();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(instanceRegistry.getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue("exposedthingslist", result, false);
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("isdirty");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getIsDirty();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("spacetypeid");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getSpaceTypeId();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
result = _impl.getProperty("translatedjsonblob");
if (Utils.isNullOrEmptyValue(result))
result = (Serializable) super.getTranslatedJsonBlob();
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
((ManagePojo) result).setEventBus(eventBus);
}
}
}
@Worker
@Override
public SimpleEventBus getEventBus() {
return eventBus;
}
@Override
@Worker
public void onApplyPojoMarkerChange(ApplyPojoMarkerChangeEvent event) {
SyncChange change = event.getEventData();
if (((ManagePojo) this).getRegistrationKey().equals(change.getParentInstanceId())) {
String propName = change.getPropertyName();
Serializable changedValue = null;
if (change instanceof IntrinsicChange) {
changedValue = ((IntrinsicChange) change).getChangeValue();
} else if (change instanceof PojoMarkerChange) {
changedValue = ((PojoMarkerChange) change).getChangeValue();
}
this.isSynced = true;
setPropertyValue(propName, changedValue, false);
}
}
@Override
@Worker
public void onApplyArrayListAddElementChange(ApplyArrayListAddElementChangeEvent event) {
_impl.onApplyArrayListAddElementChange(event);
}
@Worker
@Override
public void onApplyHashMapChnage(ApplyHashMapChangeEvent event) {
_impl.onApplyHashMapChange(event);
}
@Override
@Worker
public void onApplyTreeMapChnage(ApplyTreeMapChangeEvent event) {
_impl.onApplyTreeMapChange(event);
}
@Override
@Worker
public void onApplyHashSetChnage(ApplyHashSetChangeEvent event) {
_impl.onApplyHashSetChange(event);
}
@Override
@Worker
public void onApplyArrayListClearChange(ApplyArrayListClearChangeEvent event) {
_impl.onApplyArrayListClearChange(event);
}
@Override
@Worker
public void onApplyArrayListRemoveElementChange(ApplyArrayListRemoveChangeEvent event) {
_impl.onApplyArrayListRemoveElementChange(event);
}
@Override
@Worker
public void onApplyLinkedListAddElementChangeEvent(ApplyLinkedListAddElementChangeEvent event) {
_impl.onApplyLinkedListAddElementChangeEvent(event);
}
@Override
@Worker
public void setGuid(String guid) {
this.guid = guid;
if (_impl != null)
_impl.setProperty(Constants.GUID, (Serializable) guid);
}
@Override
@Worker
public String getGuid() {
return (String) _impl.getProperty(Constants.GUID);
}
@Worker
public SyncChange prepareAndFireEvent(String propname, Object value) {
return _impl.prepareAndFireEvent(propname, value);
}
@Worker
private void generateTypeInfoMap() {
HashMap<String, TypeInfo> propTypeInfo = new HashMap<String, TypeInfo>();
TypeInfo typeInfo = null;
typeInfo = new TypeInfo();
typeInfo.addPropertyAnnotationDetail("com.trupublic.shared.annotation.IgnoreProperty", "enabled", "false");
propTypeInfo.put("suggestiondisplay", typeInfo);
propTypeInfo.put("suggestiondisplay", typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("exposedthingaselementlist", typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("instanceprovider", typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("thingbyname", typeInfo);
typeInfo = new TypeInfo();
typeInfo.addPropertyAnnotationDetail("com.trupublic.shared.annotation.IgnoreProperty", "enabled", "false");
propTypeInfo.put("suggestionhtml", typeInfo);
propTypeInfo.put("suggestionhtml", typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("slimid", typeInfo);
setTypeInfoMap(propTypeInfo);
}
@Override
@Worker
public TypeInfo getTypeInfo(String propName) {
return typeInfoMap.get(propName);
}
@Worker
public void setTypeInfoMap(HashMap<String, TypeInfo> typeInfo) {
this.typeInfoMap = typeInfo;
}
@Worker
public void prepareInstanceRegistry(Serializable propertyValue) {
_impl.prepareInstanceRegistry(propertyValue);
}
@Override
@Worker
public PojoMarker toPojoMarker(AltEntity entity) {
HashMap<String, Serializable> propertyMap = entity.getPropertyMap();
for (String propName : propertyMap.keySet()) {
Object propValue = propertyMap.get(propName);
if (propValue instanceof AltEntity)
propValue = getEntityConverted((AltEntity) propValue);
setPropertyValue(propName, propValue, false);
}
return this;
}
public Serializable getEntityConverted(AltEntity entity) {
AltType entityType = entity.getType();
String typeName = entityType.getTypeName();
if (PojoMarkerImplInstantiatorRegistry.get().isRegistered(typeName)) {
return JsonizerGinjector.INSTANCE.getJsonizerParser().toPojoMarker(entity);
}
return null;
}
@Worker
public Serializable removeInstanceFromInstanceRegistry(Serializable value) {
try {
if (value instanceof ManagePojo) {
if (getInstanceRegistry() != null) {
Serializable regKey = ((ManagePojo) value).getRegistrationKey();
if (getInstanceRegistry().isInstanceKeyRegistered(regKey, null)) {
value = (Serializable) getInstanceRegistry().getRegisteredInstance(regKey);
getInstanceRegistry().removeInstanceFromRegistry(regKey);
return value;
}
}
}
} catch (Exception e) {
throw new AltJsonizerException(getClass().getCanonicalName() + ":: rempveInstanceFromRegistry() :: " + e);
}
return value;
}
@Worker
@Override
public Object createDeepCopy() {
Object object = deepCopy();
setDeepCopyMap(null);
return object;
}
@Worker
@Override
public Object deepCopy() {
try {
PojoMarker pojomarker = null;
if (deepCopyMap == null) {
deepCopyMap = new HashMap<Object, Object>();
setDeepCopyMap(deepCopyMap);
}
ManagePojo object = null;
object = _impl.deepCopy();
return object;
} catch (Exception e) {
throw new AltJsonizerException(getClass().getCanonicalName() + " :: createDeepCopy() :: " + e);
}
}
@Worker
public PojoMarker createNewInstance() {
PojoMarker pojomarker = GWT.create(TappSlim.class);
getDeepCopyMap().put(this, pojomarker);
((DeepCopy) pojomarker).setDeepCopyMap(getDeepCopyMap());
return pojomarker;
}
@Worker
@Override
public JSONObject getPeer() {
if (_impl instanceof org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl)
return ((org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl) _impl).getJsonObject();
return null;
}
@Worker
@Override
public void setPeer(JSONObject jsonObject) {
if (_impl instanceof org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl)
((org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl) _impl).setJsonObject(jsonObject, true);
}
@Override
public HashMap<Object, Object> getDeepCopyMap() {
return deepCopyMap;
}
@Override
public void setDeepCopyMap(HashMap<Object, Object> deepCopyMap) {
this.deepCopyMap = deepCopyMap;
}
@Override
public void addReferrer(Object ref) {
_impl.addReferrer(ref);
}
@Override
public void removeAllReferences() {
_impl.removeAllReferences();
}
@Override
public String getSelectorId() {
return _impl.getSelectorId();
}
@Override
public String getSelectorPattern() {
return _impl.getSelectorPattern();
}
public SyncChange fireChangeEvent(String propName, Object value) {
SyncChange change = null;
if (!isSynced) {
if (getEventBus() != null) {
change = prepareAndFireEvent(propName, value);
}
}
return change;
}
}
package com.trupublic.shared.slim.tapp;
import org.appops.altshared.shared.PojoMarker;
import org.appops.jsonizer.client.base.ObjectPeer;
import org.appops.jsonizer.client.PojoMarkerHelper;
import com.trupublic.shared.slim.tapp.TappSlim;
import org.appops.jsonizer.client.base.Jsonizer;
import org.appops.jsonizer.client.impls.BasePojoMarkerImpl;
import com.google.gwt.core.client.JavaScriptObject;
import org.appops.altshared.shared.altcore.altentity.Primitive;
import org.appops.jsonizer.client.impls.PojoMarkerImplInstantiatorRegistry;
import org.appops.jsonizer.client.base.PojoMarkerImplInstantiator;
import com.google.gwt.core.client.GWT;
import java.io.Serializable;
import org.appops.altshared.shared.InstanceProvider;
import org.appops.altshared.shared.jsonizer.base.StaticsRegistry;
import java.util.HashMap;
import org.appops.altshared.shared.altcore.altentity.AltId;
import org.appops.altshared.shared.altcore.altentity.type.AltType;
import org.appops.jsonizer.client.base.Utils;
import org.appops.altshared.shared.jsonizer.base.InstanceRegistry;
import org.appops.jsonizer.client.impls.JsonizerParser;
import org.appops.altshared.shared.jsonizer.base.Constants;
import org.appops.altshared.shared.altcore.annotations.Worker;
import org.appops.jsonizer.client.base.TypeKeyFactory;
import org.appops.altshared.shared.jsonizer.base.TypeKey;
import org.appops.altshared.shared.jsonizer.base.TypedAs;
import org.appops.altshared.shared.jsonizer.base.CollectionTypeKey;
import java.util.*;
import jsinterop.annotations.JsType;
import org.appops.altshared.shared.jsonizer.base.ManageInstanceRegistry;
import org.appops.sync.client.eventconfiguration.event.ApplyPojoMarkerChangeEvent;
import com.google.gwt.event.shared.SimpleEventBus;
import org.appops.altshared.shared.sync.IntrinsicChange;
import org.appops.altshared.shared.sync.SyncChange;
import org.appops.sync.client.eventconfiguration.event.PojoMarkerModifiedEvent;
import java.util.logging.Logger;
import java.util.logging.Level;
import org.appops.sync.client.eventconfiguration.event.ApplyCollectionChangeEvent;
import org.appops.jsonizer.client.base.ManagePojo;
import org.appops.jsonizer.client.customcollection.JsonArrayList;
import org.appops.sync.client.eventconfiguration.event.ApplyArrayListAddElementChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyHashMapChangeEvent;
import com.google.gwt.json.client.JSONObject;
import org.appops.altshared.shared.altcore.annotations.NoDeepCopy;
import org.appops.jsonizer.client.base.DeepCopy;
import org.appops.sync.client.eventconfiguration.event.ApplyArrayListRemoveChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyArrayListClearChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyLinkedListAddElementChangeEvent;
import org.appops.jsonizer.client.customcollection.JsonLinkedList;
import org.appops.altshared.shared.sync.HashMapRemoveElementChange;
import java.lang.annotation.Annotation;
import org.appops.jsonizer.client.base.TypeInfo;
import org.appops.altshared.shared.sync.PojoMarkerChange;
import org.appops.jsonizer.client.async.ClientService;
import org.appops.altshared.shared.sync.SyncInternal;
import org.appops.altshared.shared.altcore.altentity.AltEntity;
import org.appops.altshared.shared.altcore.altentity.AltLongId;
import org.appops.jsonizer.client.binding.JsonizerGinjector;
import org.appops.altshared.shared.sync.ArrayListChange;
import org.appops.altshared.shared.sync.LinkedListChange;
import org.appops.jsonizer.client.customcollection.JsonHashMap;
import org.appops.altshared.shared.sync.HashMapChange;
import org.appops.altshared.shared.sync.HashMapClearChange;
import org.appops.altshared.shared.sync.HashMapAddElementChange;
import org.appops.jsonizer.client.customcollection.JsonTreeMap;
import org.appops.altshared.shared.sync.TreeMapChange;
import org.appops.jsonizer.client.customcollection.JsonHashSet;
import org.appops.altshared.shared.sync.TreeMapClearChange;
import org.appops.altshared.shared.sync.TreeMapAddElementChange;
import org.appops.altshared.shared.sync.TreeMapRemoveElementChange;
import org.appops.sync.client.eventconfiguration.event.ApplyTreeMapChangeEvent;
import org.appops.sync.client.eventconfiguration.event.ApplyHashSetChangeEvent;
import org.appops.altshared.shared.sync.HashSetRemoveElementChange;
import org.appops.altshared.shared.sync.HashSetAddElementChange;
import org.appops.altshared.shared.sync.HashSetClearChange;
import org.appops.altshared.shared.sync.HashSetChange;
import org.appops.altshared.shared.jsonizer.base.CustomSourceTypeKey;
import org.appops.altshared.shared.jsonizer.base.ProviderTypeKey;
import org.appops.altshared.shared.jsonizer.base.ClientInstanceRegistry;
import org.appops.altshared.shared.jsonizer.base.JsonCollection;
import org.appops.altshared.shared.jsonizer.base.TransientInstanceRegistry;
import org.appops.altshared.shared.jsonizer.base.AltJsonizerException;
import org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl;
import org.appops.altshared.shared.annotation.JsonTopMost;
import org.appops.jsonizer.client.base.ManageCopy;
import org.appops.jsonizer.client.base.Selector;
import org.appops.jsonizer.client.base.ClassInfo;
import org.appops.jsonizer.client.base.SelectorId;
import com.google.common.base.Preconditions;
import org.appops.altshared.client.binding.AppOpsCommonGinjector;
import org.appops.altshared.shared.altcore.altentity.AltStringId;
import java.util.Date;
import java.lang.Boolean;
import com.trupublic.shared.store.TappVariableStore;
import java.lang.Class;
import java.lang.String;
import java.util.ArrayList;
public class GeneratedTappSlimPojoMarkerImpl extends com.trupublic.shared.slim.tapp.TappSlim implements org.appops.jsonizer.client.base.Jsonizer, java.io.Serializable, org.appops.jsonizer.client.base.JsonizerTypeInfo, org.appops.jsonizer.client.base.ManagePojo, org.appops.jsonizer.client.base.ObjectPeer, org.appops.altshared.shared.jsonizer.base.ManageInstanceRegistry, org.appops.altshared.shared.sync.SyncInternal, org.appops.sync.client.eventconfiguration.handlers.ApplyPojoMarkerChangeEventHandler, org.appops.sync.client.eventconfiguration.handlers.ApplyCollectonModifiedEventHandler, org.appops.jsonizer.client.PojoMarkerHelper, org.appops.jsonizer.client.base.DeepCopy, org.appops.jsonizer.client.base.ManageCopy, org.appops.jsonizer.client.base.Selector, org.appops.altshared.shared.jsonizer.base.HasReferrer {
private BasePojoMarkerImpl _impl = JsonizerGinjector.INSTANCE.getBasePojoMarkerImpl();
private static HashMap<String ,TypeKey> typeMap = new HashMap<String,TypeKey>();
private SimpleEventBus eventBus = null;
private HashMap<String,TypeInfo> typeInfoMap = null;
private HashMap<Object, Object> deepCopyMap = null;
public GeneratedTappSlimPojoMarkerImpl(){
_impl.setTypeMap(typeMap);
_impl.setPojoMarkerImpl(this);
_impl.setPojomarkerKey("com.trupublic.shared.slim.tapp.TappSlim");
this.setInstanceProvider();
generateTypeInfoMap();
_impl.setInstanceRegistry((InstanceRegistry)GWT.create(ClientInstanceRegistry.class), false);
_impl.registerTopMostObject((PojoMarker)this);
}
static{
typeMap.put("timetranslated", TypeKeyFactory.getTypeKey("long"));
typeMap.put("sceneslimlist",new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList",new ArrayList<TypeKey>(Arrays.asList(new TypeKey(TypedAs.VARIANT,"com.trupublic.shared.slim.tapp.scene.SceneBase")))));
typeMap.put("homespaceid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("owner", TypeKeyFactory.getTypeKey("long"));
typeMap.put("name", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("modifiedby", TypeKeyFactory.getTypeKey("long"));
typeMap.put("iscommunity", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("spacetypeid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("id", TypeKeyFactory.getTypeKey("long"));
typeMap.put("tappbanner", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("tappdescription", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("isgeneric", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("createdby", TypeKeyFactory.getTypeKey("long"));
typeMap.put("tappicon", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("exposedthingslist",new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList",new ArrayList<TypeKey>(Arrays.asList(new TypeKey(TypedAs.FIXED,"com.trupublic.shared.slim.tapp.thing.ThingSlim")))));
typeMap.put("thinglist",new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList",new ArrayList<TypeKey>(Arrays.asList(new TypeKey(TypedAs.FIXED,"com.trupublic.shared.slim.tapp.thing.ThingSlim")))));
typeMap.put("issystem", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("familyid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("isaddon", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("iskernel", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("spaceslim", TypeKeyFactory.getTypeKey("long"));
typeMap.put("moduleslimlist",new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList",new ArrayList<TypeKey>(Arrays.asList(new TypeKey(TypedAs.FIXED,"com.trupublic.shared.slim.tapp.module.ModuleSlim")))));
typeMap.put("isprimary", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("istranslated", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("tappstatus", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("translatedjsonblob", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("modifiedon", TypeKeyFactory.getTypeKey("java.util.Date"));
typeMap.put("serviceid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("rolelist",new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList",new ArrayList<TypeKey>(Arrays.asList(new TypeKey(TypedAs.FIXED,"com.trupublic.shared.slim.tapp.role.RoleSlim")))));
typeMap.put("versionid", TypeKeyFactory.getTypeKey("int"));
typeMap.put("isprivate", TypeKeyFactory.getTypeKey("boolean"));
typeMap.put("blobid", TypeKeyFactory.getTypeKey("java.lang.String"));
typeMap.put("tappvariablestore", new TypeKey(TypedAs.FIXED,"com.trupublic.shared.store.TappVariableStore"));
typeMap.put("spaceslimid", TypeKeyFactory.getTypeKey("long"));
typeMap.put("timemodified", TypeKeyFactory.getTypeKey("long"));
typeMap.put("isdirty", new TypeKey(TypedAs.FIXED,"java.lang.Boolean"));
typeMap.put("createdon", TypeKeyFactory.getTypeKey("java.util.Date"));
typeMap.put("actionablelist",new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList",new ArrayList<TypeKey>(Arrays.asList(new TypeKey(TypedAs.VARIANT,"org.appops.altshared.shared.altcore.action.Actionable")))));
typeMap.put("ishome", TypeKeyFactory.getTypeKey("boolean"));
String pojoMarkerKey = "";
pojoMarkerKey = "com.trupublic.shared.slim.tapp.TappSlim";
PojoMarkerImplInstantiatorRegistry.get().registerInstantiator( pojoMarkerKey , new PojoMarkerImplInstantiator<TappSlim>() {
@Override
public TappSlim createInstance() {
return GWT.create(TappSlim.class) ;
}
});
}
@Worker
public void setInstanceProvider() {
super.setInstanceProvider((InstanceProvider)GWT.create(InstanceProvider.class));
}
public Serializable getSuperValue(String propName){
switch(propName) {
case "timetranslated" : return (Serializable)super.getTimeTranslated();
case "sceneslimlist" : return (Serializable)super.getSceneSlimList();
case "homespaceid" : return (Serializable)super.getHomeSpaceId();
case "owner" : return (Serializable)super.getOwner();
case "name" : return (Serializable)super.getName();
case "modifiedby" : return (Serializable)super.getModifiedBy();
case "iscommunity" : return (Serializable)super.getIsCommunity();
case "spacetypeid" : return (Serializable)super.getSpaceTypeId();
case "id" : return (Serializable)super.getId();
case "tappbanner" : return (Serializable)super.getTappBanner();
case "tappdescription" : return (Serializable)super.getTappDescription();
case "isgeneric" : return (Serializable)super.getIsGeneric();
case "createdby" : return (Serializable)super.getCreatedBy();
case "tappicon" : return (Serializable)super.getTappIcon();
case "exposedthingslist" : return (Serializable)super.getExposedThingsList();
case "thinglist" : return (Serializable)super.getThingList();
case "issystem" : return (Serializable)super.getIsSystem();
case "familyid" : return (Serializable)super.getFamilyId();
case "isaddon" : return (Serializable)super.getIsAddOn();
case "iskernel" : return (Serializable)super.getIsKernel();
case "spaceslim" : return (Serializable)super.getSpaceSlim();
case "moduleslimlist" : return (Serializable)super.getModuleSlimList();
case "isprimary" : return (Serializable)super.getIsPrimary();
case "istranslated" : return (Serializable)super.getIsTranslated();
case "tappstatus" : return (Serializable)super.getTappStatus();
case "translatedjsonblob" : return (Serializable)super.getTranslatedJsonBlob();
case "modifiedon" : return (Serializable)super.getModifiedOn();
case "serviceid" : return (Serializable)super.getServiceId();
case "rolelist" : return (Serializable)super.getRoleList();
case "versionid" : return (Serializable)super.getVersionId();
case "isprivate" : return (Serializable)super.getIsPrivate();
case "blobid" : return (Serializable)super.getBlobId();
case "tappvariablestore" : return (Serializable)super.getTappVariableStore();
case "spaceslimid" : return (Serializable)super.getSpaceSlimId();
case "timemodified" : return (Serializable)super.getTimeModified();
case "isdirty" : return (Serializable)super.getIsDirty();
case "createdon" : return (Serializable)super.getCreatedOn();
case "actionablelist" : return (Serializable)super.getActionableList();
case "ishome" : return (Serializable)super.getIsHome();
default : return null;
}
}
@Worker
public void setSuperValue(String propName,Object value){
switch(propName) {
case "name" :
super.setName((java.lang.String)value);
break;
case "isgeneric" :
super.setIsGeneric((boolean)value);
break;
case "tappdescription" :
super.setTappDescription((java.lang.String)value);
break;
case "rolelist" :
super.setRoleList((java.util.ArrayList)value);
break;
case "thinglist" :
super.setThingList((java.util.ArrayList)value);
break;
case "tappbanner" :
super.setTappBanner((java.lang.String)value);
break;
case "tappvariablestore" :
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore)value);
break;
case "timemodified" :
super.setTimeModified((long)value);
break;
case "owner" :
super.setOwner((long)value);
break;
case "iskernel" :
super.setIsKernel((boolean)value);
break;
case "isprimary" :
super.setIsPrimary((boolean)value);
break;
case "exposedthingslist" :
super.setExposedThingsList((java.util.ArrayList)value);
break;
case "isprivate" :
super.setIsPrivate((boolean)value);
break;
case "id" :
super.setId((long)value);
break;
case "serviceid" :
super.setServiceId((long)value);
break;
case "blobid" :
super.setBlobId((java.lang.String)value);
break;
case "createdby" :
super.setCreatedBy((long)value);
break;
case "homespaceid" :
super.setHomeSpaceId((long)value);
break;
case "sceneslimlist" :
super.setSceneSlimList((java.util.ArrayList)value);
break;
case "isdirty" :
super.setIsDirty((boolean)value);
break;
case "istranslated" :
super.setIsTranslated((boolean)value);
break;
case "issystem" :
super.setIsSystem((boolean)value);
break;
case "versionid" :
super.setVersionId((int)value);
break;
case "actionablelist" :
super.setActionableList((java.util.ArrayList)value);
break;
case "translatedjsonblob" :
super.setTranslatedJsonBlob((java.lang.String)value);
break;
case "tappicon" :
super.setTappIcon((java.lang.String)value);
break;
case "iscommunity" :
super.setIsCommunity((boolean)value);
break;
case "familyid" :
super.setFamilyId((long)value);
break;
case "modifiedby" :
super.setModifiedBy((long)value);
break;
case "ishome" :
super.setIsHome((boolean)value);
break;
case "spaceslim" :
super.setSpaceSlim((long)value);
break;
case "isaddon" :
super.setIsAddOn((boolean)value);
break;
case "createdon" :
super.setCreatedOn((java.util.Date)value);
break;
case "moduleslimlist" :
super.setModuleSlimList((java.util.ArrayList)value);
break;
case "spacetypeid" :
super.setSpaceTypeId((long)value);
break;
case "timetranslated" :
super.setTimeTranslated((long)value);
break;
case "modifiedon" :
super.setModifiedOn((java.util.Date)value);
break;
case "spaceslimid" :
super.setSpaceSlimId((long)value);
break;
case "tappstatus" :
super.setTappStatus((java.lang.String)value);
break;
default : _impl.getLogger().log(Level.SEVERE, "property with name " + propName + "does not exists"); break;
}
}
public Serializable getPropertyInternal(String propName) {
Serializable value = _impl.getProperty(propName);
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus()== null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
return value;
} else
return getSuperValue(propName);
}
public Serializable getCollectionPropertyInternal(String propName) {
Serializable value = _impl.getProperty(propName);
if (!Utils.isNullOrEmptyValue(value)) {
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus()==null && this.getEventBus() != null)
((ManagePojo) value).setEventBus(this.getEventBus());
((ManagePojo) value).setRegistrationKey(((ManagePojo) value).getRegistrationKey());
((ManagePojo) value).setPropertyValue(propName, null, false);
return value;
} else {
Serializable superValue=getSuperValue(propName);
if (superValue == null && value != null) {
superValue = value;
}
return superValue;
}
}
@Override
public void setName(java.lang.String name) {
setPropertyValue("name",name,false);
}
@Override
public long getTimeTranslated() {
return (long)
getPropertyInternal("timetranslated");}
@Override
public void setIsGeneric(boolean isGeneric) {
setPropertyValue("isgeneric",isGeneric,false);
}
@Override
public java.util.ArrayList getSceneSlimList() {
return (java.util.ArrayList)
getCollectionPropertyInternal("sceneslimlist");}
@Override
public long getHomeSpaceId() {
return (long)
getPropertyInternal("homespaceid");}
@Override
public long getOwner() {
return (long)
getPropertyInternal("owner");}
@Override
public java.lang.String getName() {
return (java.lang.String)
getPropertyInternal("name");}
@Override
public void setTappDescription(java.lang.String tappDescription) {
setPropertyValue("tappdescription",tappDescription,false);
}
@Override
public void setRoleList(java.util.ArrayList roleList) {
setPropertyValue("rolelist",roleList,false);
}
@Override
public void setThingList(java.util.ArrayList thingList) {
setPropertyValue("thinglist",thingList,false);
}
@Override
public long getModifiedBy() {
return (long)
getPropertyInternal("modifiedby");}
@Override
public void setTappBanner(java.lang.String tappBanner) {
setPropertyValue("tappbanner",tappBanner,false);
}
@Override
public boolean getIsCommunity() {
return (boolean)
getPropertyInternal("iscommunity");}
@Override
public long getSpaceTypeId() {
return (long)
getPropertyInternal("spacetypeid");}
@Override
public void setTappVariableStore(com.trupublic.shared.store.TappVariableStore tappVariableStore) {
setPropertyValue("tappvariablestore",tappVariableStore,false);
}
@Override
public long getId() {
return (long)
getPropertyInternal("id");}
@Override
public void setTimeModified(long timeModified) {
setPropertyValue("timemodified",timeModified,false);
}
@Override
public java.lang.String getTappBanner() {
return (java.lang.String)
getPropertyInternal("tappbanner");}
@Override
public java.lang.String getTappDescription() {
return (java.lang.String)
getPropertyInternal("tappdescription");}
@Override
public void setOwner(long owner) {
setPropertyValue("owner",owner,false);
}
@Override
public boolean getIsGeneric() {
return (boolean)
getPropertyInternal("isgeneric");}
@Override
public void setIsKernel(boolean isKernel) {
setPropertyValue("iskernel",isKernel,false);
}
@Override
public long getCreatedBy() {
return (long)
getPropertyInternal("createdby");}
@Override
public void setIsPrimary(boolean isPrimary) {
setPropertyValue("isprimary",isPrimary,false);
}
@Override
public void setExposedThingsList(java.util.ArrayList exposedThingsList) {
setPropertyValue("exposedthingslist",exposedThingsList,false);
}
@Override
public void setIsPrivate(boolean isPrivate) {
setPropertyValue("isprivate",isPrivate,false);
}
@Override
public void setId(long id) {
setPropertyValue("id",id,false);
}
@Override
public void setServiceId(long serviceId) {
setPropertyValue("serviceid",serviceId,false);
}
@Override
public java.lang.String getTappIcon() {
return (java.lang.String)
getPropertyInternal("tappicon");}
@Override
public java.util.ArrayList getExposedThingsList() {
return (java.util.ArrayList)
getCollectionPropertyInternal("exposedthingslist");}
@Override
public void setBlobId(java.lang.String blobId) {
setPropertyValue("blobid",blobId,false);
}
@Override
public java.util.ArrayList getThingList() {
return (java.util.ArrayList)
getCollectionPropertyInternal("thinglist");}
@Override
public void setCreatedBy(long createdBy) {
setPropertyValue("createdby",createdBy,false);
}
@Override
public void setHomeSpaceId(long homeSpaceId) {
setPropertyValue("homespaceid",homeSpaceId,false);
}
@Override
public void setSceneSlimList(java.util.ArrayList sceneSlimList) {
setPropertyValue("sceneslimlist",sceneSlimList,false);
}
@Override
public boolean getIsSystem() {
return (boolean)
getPropertyInternal("issystem");}
@Override
public void setIsDirty(boolean isDirty) {
setPropertyValue("isdirty",isDirty,false);
}
@Override
public void setIsTranslated(boolean isTranslated) {
setPropertyValue("istranslated",isTranslated,false);
}
@Override
public long getFamilyId() {
return (long)
getPropertyInternal("familyid");}
@Override
public boolean getIsAddOn() {
return (boolean)
getPropertyInternal("isaddon");}
@Override
public boolean getIsKernel() {
return (boolean)
getPropertyInternal("iskernel");}
@Override
public long getSpaceSlim() {
return (long)
getPropertyInternal("spaceslim");}
@Override
public java.util.ArrayList getModuleSlimList() {
return (java.util.ArrayList)
getCollectionPropertyInternal("moduleslimlist");}
@Override
public void setIsSystem(boolean isSystem) {
setPropertyValue("issystem",isSystem,false);
}
@Override
public void setVersionId(int versionId) {
setPropertyValue("versionid",versionId,false);
}
@Override
public boolean getIsPrimary() {
return (boolean)
getPropertyInternal("isprimary");}
@Override
public boolean getIsTranslated() {
return (boolean)
getPropertyInternal("istranslated");}
@Override
public void setActionableList(java.util.ArrayList actionableList) {
setPropertyValue("actionablelist",actionableList,false);
}
@Override
public void setTranslatedJsonBlob(java.lang.String translatedJsonBlob) {
setPropertyValue("translatedjsonblob",translatedJsonBlob,false);
}
@Override
public java.lang.String getTappStatus() {
return (java.lang.String)
getPropertyInternal("tappstatus");}
@Override
public java.lang.String getTranslatedJsonBlob() {
return (java.lang.String)
getPropertyInternal("translatedjsonblob");}
@Override
public java.util.Date getModifiedOn() {
return (java.util.Date)
getPropertyInternal("modifiedon");}
@Override
public void setTappIcon(java.lang.String tappIcon) {
setPropertyValue("tappicon",tappIcon,false);
}
@Override
public void setIsCommunity(boolean isCommunity) {
setPropertyValue("iscommunity",isCommunity,false);
}
@Override
public long getServiceId() {
return (long)
getPropertyInternal("serviceid");}
@Override
public java.util.ArrayList getRoleList() {
return (java.util.ArrayList)
getCollectionPropertyInternal("rolelist");}
@Override
public int getVersionId() {
return (int)
getPropertyInternal("versionid");}
@Override
public void setFamilyId(long familyId) {
setPropertyValue("familyid",familyId,false);
}
@Override
public void setModifiedBy(long modifiedBy) {
setPropertyValue("modifiedby",modifiedBy,false);
}
@Override
public boolean getIsPrivate() {
return (boolean)
getPropertyInternal("isprivate");}
@Override
public java.lang.String getBlobId() {
return (java.lang.String)
getPropertyInternal("blobid");}
@Override
public void setIsHome(boolean isHome) {
setPropertyValue("ishome",isHome,false);
}
@Override
public void setSpaceSlim(long spaceSlim) {
setPropertyValue("spaceslim",spaceSlim,false);
}
@Override
public void setIsAddOn(boolean isAddOn) {
setPropertyValue("isaddon",isAddOn,false);
}
@Override
public void setCreatedOn(java.util.Date createdOn) {
setPropertyValue("createdon",createdOn,false);
}
@Override
public void setModuleSlimList(java.util.ArrayList moduleSlimList) {
setPropertyValue("moduleslimlist",moduleSlimList,false);
}
@Override
public com.trupublic.shared.store.TappVariableStore getTappVariableStore() {
return (com.trupublic.shared.store.TappVariableStore)
getPropertyInternal("tappvariablestore");}
@Override
public void setSpaceTypeId(long spaceTypeId) {
setPropertyValue("spacetypeid",spaceTypeId,false);
}
@Override
public long getSpaceSlimId() {
return (long)
getPropertyInternal("spaceslimid");}
@Override
public void setTimeTranslated(long timeTranslated) {
setPropertyValue("timetranslated",timeTranslated,false);
}
@Override
public long getTimeModified() {
return (long)
getPropertyInternal("timemodified");}
@Override
public java.lang.Boolean getIsDirty() {
return (java.lang.Boolean)
getPropertyInternal("isdirty");}
@Override
public java.util.Date getCreatedOn() {
return (java.util.Date)
getPropertyInternal("createdon");}
@Override
public java.util.ArrayList getActionableList() {
return (java.util.ArrayList)
getCollectionPropertyInternal("actionablelist");}
@Override
public void setModifiedOn(java.util.Date modifiedOn) {
setPropertyValue("modifiedon",modifiedOn,false);
}
@Override
public void setSpaceSlimId(long spaceSlimId) {
setPropertyValue("spaceslimid",spaceSlimId,false);
}
@Override
public void setTappStatus(java.lang.String tappStatus) {
setPropertyValue("tappstatus",tappStatus,false);
}
@Override
public boolean getIsHome() {
return (boolean)
getPropertyInternal("ishome");}
public String getPropertyTypeName(String propName) {
return typeMap.get(propName).getTypeName();
}
@Override
@Worker
public String toJson(Object jsValue) {
return _impl.toJson(jsValue);
}
@Override
public PojoMarker fromJson(JavaScriptObject jsValue) {
PojoMarker result = null;
result=_impl.fromJson(jsValue);
if(result != null)
return result ;
return this;
}
@Override
@Worker
public HashMap<String ,TypeKey> getPropertyTypeMap(){
return typeMap;
}
private void setInternalPropertyValue(String propName, Object value,boolean isDeepCopy) {
if (_impl != null && isDeepCopy) {
_impl.setProperty(propName, (Serializable) value, isDeepCopy);
}
if (value != null) {
setSuperValue(propName, value);
}
if (_impl != null && !isDeepCopy) {
SyncChange change = null;
change = fireChangeEvent(propName, value);
if (change != null && change instanceof ObjectPeer) {
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue"));
_impl.populatePropertyValueMap(propName, (Serializable) value);
addReferrer(value);
} else {
_impl.setProperty(propName, (Serializable) value);
}
}
}
@Worker
public void setPropertyValue(String propName,Object value,boolean isDeepCopy){
if(isDeepCopy){
if (getDeepCopyMap().containsKey(value) && getDeepCopyMap().get(value) != null) {
value = getDeepCopyMap().get(value);
}
}
SyncChange change=null;
switch(propName) {
case "name" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "isgeneric" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "tappdescription" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "rolelist" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "thinglist" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "tappbanner" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "tappvariablestore" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "timemodified" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "owner" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "iskernel" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "isprimary" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "exposedthingslist" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "isprivate" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "id" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "serviceid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "blobid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "createdby" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "homespaceid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "sceneslimlist" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "isdirty" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "istranslated" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "issystem" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "versionid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "actionablelist" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "translatedjsonblob" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "tappicon" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "iscommunity" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "familyid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "modifiedby" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "ishome" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "spaceslim" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "isaddon" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "createdon" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "moduleslimlist" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "spacetypeid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "timetranslated" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "modifiedon" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "spaceslimid" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
case "tappstatus" :
setInternalPropertyValue(propName, value,isDeepCopy);
break;
default : _impl.getLogger().log(Level.SEVERE, "property with name " + propName + "does not exists"); break;
}
}
@Override
@Worker
public Serializable getPropertyValue(String propName){
Serializable result;
switch(propName) {
case "timetranslated" :
return (Serializable)getTimeTranslated();
case "sceneslimlist" :
return (Serializable)getSceneSlimList();
case "homespaceid" :
return (Serializable)getHomeSpaceId();
case "owner" :
return (Serializable)getOwner();
case "name" :
return (Serializable)getName();
case "modifiedby" :
return (Serializable)getModifiedBy();
case "iscommunity" :
return (Serializable)getIsCommunity();
case "spacetypeid" :
return (Serializable)getSpaceTypeId();
case "id" :
return (Serializable)getId();
case "tappbanner" :
return (Serializable)getTappBanner();
case "tappdescription" :
return (Serializable)getTappDescription();
case "isgeneric" :
return (Serializable)getIsGeneric();
case "createdby" :
return (Serializable)getCreatedBy();
case "tappicon" :
return (Serializable)getTappIcon();
case "exposedthingslist" :
return (Serializable)getExposedThingsList();
case "thinglist" :
return (Serializable)getThingList();
case "issystem" :
return (Serializable)getIsSystem();
case "familyid" :
return (Serializable)getFamilyId();
case "isaddon" :
return (Serializable)getIsAddOn();
case "iskernel" :
return (Serializable)getIsKernel();
case "spaceslim" :
return (Serializable)getSpaceSlim();
case "moduleslimlist" :
return (Serializable)getModuleSlimList();
case "isprimary" :
return (Serializable)getIsPrimary();
case "istranslated" :
return (Serializable)getIsTranslated();
case "tappstatus" :
return (Serializable)getTappStatus();
case "translatedjsonblob" :
return (Serializable)getTranslatedJsonBlob();
case "modifiedon" :
return (Serializable)getModifiedOn();
case "serviceid" :
return (Serializable)getServiceId();
case "rolelist" :
return (Serializable)getRoleList();
case "versionid" :
return (Serializable)getVersionId();
case "isprivate" :
return (Serializable)getIsPrivate();
case "blobid" :
return (Serializable)getBlobId();
case "tappvariablestore" :
return (Serializable)getTappVariableStore();
case "spaceslimid" :
return (Serializable)getSpaceSlimId();
case "timemodified" :
return (Serializable)getTimeModified();
case "isdirty" :
return (Serializable)getIsDirty();
case "createdon" :
return (Serializable)getCreatedOn();
case "actionablelist" :
return (Serializable)getActionableList();
case "ishome" :
return (Serializable)getIsHome();
default : return null;
}
}
@Worker
public void setRegistrationKey(Serializable instanceRegistrationKey) {
_impl.setProperty(Constants.REGISTRATIONKEY, instanceRegistrationKey);
}
@Worker
public Serializable getRegistrationKey() {
return _impl.getProperty(Constants.REGISTRATIONKEY);
}
@Worker
@Override
public void setInstanceRegistry(InstanceRegistry instanceRegistry,boolean setDeep) {
_impl.setInstanceRegistry(instanceRegistry,false);
if(setDeep)
_impl.updateInstanceRegistry(instanceRegistry,setDeep,(PojoMarker)this);
}
@Worker
public InstanceRegistry getInstanceRegistry() {
return _impl.getInstanceRegistry();
}
@Worker
@Override
public void setEventBus(SimpleEventBus eventBus){
Serializable result=null;
if(((ManagePojo)this).getEventBus()==null){
this.eventBus =(SimpleEventBus) eventBus;
this.eventBus.addHandler(ApplyPojoMarkerChangeEvent.TYPE, this);
this.eventBus.addHandler(ApplyCollectionChangeEvent.TYPE, this);
_impl.prepareInstanceRegistry((Serializable)this);
for(String propName:getPropertyTypeMap().keySet()){
result = _impl.getProperty (propName);
if(Utils.isNullOrEmptyValue(result))
result=getSuperValue(propName);
if (result instanceof ManagePojo) {
if (this.getInstanceRegistry() != null) {
((ManageInstanceRegistry) result).setInstanceRegistry(this.getInstanceRegistry(), false);
}
if (result instanceof JsonCollection) {
((JsonCollection) result).setParentPojoMarker(this);
if (((ManagePojo) result).getRegistrationKey() == null)
((ManagePojo) result).setRegistrationKey(this.getInstanceRegistry().getRegistrationKey(result));
else
((ManagePojo) result).setRegistrationKey(((ManagePojo) result).getRegistrationKey());
((ManagePojo) result).setPropertyValue(propName, result, false);
}
((ManagePojo) result).setEventBus(eventBus);
}
}
}
}
@Worker
@Override
public SimpleEventBus getEventBus(){
return eventBus;
}
@Override
@Worker
public void onApplyPojoMarkerChange(ApplyPojoMarkerChangeEvent event){
SyncChange change = event.getEventData();
if (((ManagePojo)this).getRegistrationKey().equals(change.getParentInstanceId())) {
String propName = change.getPropertyName();
Serializable changedValue = null;
if (change instanceof IntrinsicChange) {
changedValue = ((IntrinsicChange) change).getChangeValue();
} else if (change instanceof PojoMarkerChange) {
changedValue = ((PojoMarkerChange) change).getChangeValue();
}
_impl.setSynced(true);
setPropertyValue(propName, changedValue,false);
}
}
@Override
@Worker
public void onApplyArrayListAddElementChange(ApplyArrayListAddElementChangeEvent event){
_impl.onApplyArrayListAddElementChange(event);
}
@Worker
@Override
public void onApplyHashMapChnage(ApplyHashMapChangeEvent event) {
_impl.onApplyHashMapChange(event);
}
@Override
@Worker
public void onApplyTreeMapChnage(ApplyTreeMapChangeEvent event) {
_impl.onApplyTreeMapChange(event);
}
@Override
@Worker
public void onApplyHashSetChnage(ApplyHashSetChangeEvent event) {
_impl.onApplyHashSetChange(event);
}
@Override
@Worker
public void onApplyArrayListClearChange(ApplyArrayListClearChangeEvent event){
_impl.onApplyArrayListClearChange(event);
}
@Override
@Worker
public void onApplyArrayListRemoveElementChange(ApplyArrayListRemoveChangeEvent event){
_impl.onApplyArrayListRemoveElementChange(event);
}
@Override
@Worker
public void onApplyLinkedListAddElementChangeEvent(ApplyLinkedListAddElementChangeEvent event){
_impl.onApplyLinkedListAddElementChangeEvent(event);
}
@Override
@Worker
public void setGuid(String guid){
_impl.setProperty(Constants.GUID, (Serializable) guid);
}
@Override
@Worker
public String getGuid(){
return (String) _impl.getProperty(Constants.GUID);
}
@Worker
private void generateTypeInfoMap(){
HashMap<String,TypeInfo> propTypeInfo = new HashMap<String,TypeInfo>();
TypeInfo typeInfo = null;
typeInfo = new TypeInfo();
propTypeInfo.put("exposedthingaselementlist",typeInfo);
typeInfo = new TypeInfo();
typeInfo.addPropertyAnnotationDetail("com.trupublic.shared.annotation.IgnoreProperty","enabled","true");
propTypeInfo.put("suggestiondisplay",typeInfo);
propTypeInfo.put("suggestiondisplay",typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("slimid",typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("instanceprovider",typeInfo);
typeInfo = new TypeInfo();
typeInfo.addPropertyAnnotationDetail("com.trupublic.shared.annotation.IgnoreProperty","enabled","true");
propTypeInfo.put("suggestionhtml",typeInfo);
propTypeInfo.put("suggestionhtml",typeInfo);
typeInfo = new TypeInfo();
propTypeInfo.put("thingbyname",typeInfo);
setTypeInfoMap(propTypeInfo);
}
@Override
@Worker
public TypeInfo getTypeInfo(String propName){
return typeInfoMap.get(propName);
}
@Worker
public void setTypeInfoMap(HashMap<String,TypeInfo> typeInfo){
this.typeInfoMap = typeInfo;
}
@Override
@Worker
public PojoMarker toPojoMarker(AltEntity entity) {
HashMap<String,Serializable> propertyMap = entity.getPropertyMap();
for(String propName : propertyMap.keySet()){
Object propValue =propertyMap.get(propName);
if(propValue instanceof AltEntity)
propValue = getEntityConverted((AltEntity)propValue);
setPropertyValue(propName,propValue,false);
}
return this;
}
public Serializable getEntityConverted(AltEntity entity){
AltType entityType = entity.getType();
String typeName = entityType.getTypeName();
if (PojoMarkerImplInstantiatorRegistry.get().isRegistered(typeName)) {
return JsonizerGinjector.INSTANCE.getJsonizerParser().toPojoMarker(entity);
}
return null;
}
@Worker
public Serializable removeInstanceFromInstanceRegistry(Serializable value) {
return _impl.removeInstanceFromInstanceRegistry(value);
}
@Worker
@Override
public Object createDeepCopy(){
Object object=deepCopy();
setDeepCopyMap(null);
return object;
}
@Worker
@Override
public Object deepCopy(){
try {
PojoMarker pojomarker =null;
if (deepCopyMap == null) {
deepCopyMap = new HashMap<Object, Object>();
setDeepCopyMap(deepCopyMap);
}
ManagePojo object =null;
object=_impl.deepCopy();
return object;
} catch (Exception e) {
throw new AltJsonizerException(getClass().getCanonicalName() + " :: createDeepCopy() :: " + e);
}
}
@Worker
public PojoMarker createNewInstance() {
PojoMarker pojomarker=GWT.create(TappSlim.class);
getDeepCopyMap().put(this, pojomarker);
((DeepCopy) pojomarker).setDeepCopyMap(getDeepCopyMap());
return pojomarker;
}
@Worker
@Override
public JSONObject getPeer() {
if(_impl instanceof org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl)
return ((org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl)_impl).getJsonObject();
return null;
}
@Worker
@Override
public void setPeer(JSONObject jsonObject) {
if(_impl instanceof org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl)
((org.appops.jsonizer.client.impls.JSBasePojoMarkerImpl)_impl).setJsonObject(jsonObject,true);
}
@Override
public HashMap<Object, Object> getDeepCopyMap() {
return deepCopyMap;
}
@Override
public void setDeepCopyMap(HashMap<Object, Object> deepCopyMap) {
this.deepCopyMap = deepCopyMap;
}
@Override
public void addReferrer(Object ref) {
_impl.addReferrer(ref);
}
@Override
public void removeAllReferences() {
_impl.removeAllReferences();
}
@Override
public String getSelectorId() {
return _impl.getSelectorId();
}
@Override
public String getSelectorPattern() {
return _impl.getSelectorPattern();
}
public SyncChange fireChangeEvent(String propName, Object value) {
SyncChange change = null;
if (!_impl.isSynced()) {
if (getEventBus() != null) {
change = _impl.prepareAndFireEvent(propName, value);
}
}return change;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment