Link of All pojomarker generated classes: https://github.com/ainosoft/tapp-builder-service/tree/master/tapp-builder-service/src/main/resources/generatedClasses
Last active
March 23, 2018 11:11
-
-
Save aino-prashant/913e20df374bb6f45a6652bf599a1a6a to your computer and use it in GitHub Desktop.
Pojomarker Generated classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.appops.jsonizer.server.appex; | |
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 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.AltLongId; | |
import org.appops.altshared.shared.altcore.altentity.Primitive; | |
import org.appops.altshared.shared.altcore.altentity.type.AltType; | |
import org.appops.altshared.shared.altcore.annotations.NoDeepCopy; | |
import org.appops.altshared.shared.altcore.annotations.Worker; | |
import org.appops.altshared.shared.jsonizer.base.AltJsonizerException; | |
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.ObjectJsonizer; | |
import org.appops.altshared.shared.jsonizer.base.TypeKey; | |
import org.appops.altshared.shared.jsonizer.base.TypedAs; | |
import org.appops.altshared.shared.sync.ArrayListChange; | |
import org.appops.altshared.shared.sync.HashMapAddElementChange; | |
import org.appops.altshared.shared.sync.HashMapChange; | |
import org.appops.altshared.shared.sync.HashMapClearChange; | |
import org.appops.altshared.shared.sync.HashMapRemoveElementChange; | |
import org.appops.altshared.shared.sync.HashSetAddElementChange; | |
import org.appops.altshared.shared.sync.HashSetChange; | |
import org.appops.altshared.shared.sync.HashSetClearChange; | |
import org.appops.altshared.shared.sync.HashSetRemoveElementChange; | |
import org.appops.altshared.shared.sync.IntrinsicChange; | |
import org.appops.altshared.shared.sync.LinkedListChange; | |
import org.appops.altshared.shared.sync.PojoMarkerChange; | |
import org.appops.altshared.shared.sync.SyncChange; | |
import org.appops.altshared.shared.sync.TreeMapAddElementChange; | |
import org.appops.altshared.shared.sync.TreeMapChange; | |
import org.appops.altshared.shared.sync.TreeMapClearChange; | |
import org.appops.altshared.shared.sync.TreeMapRemoveElementChange; | |
import org.appops.ex.shared.app.AppEx; | |
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.customcollection.JsonArrayList; | |
import org.appops.jsonizer.client.customcollection.JsonHashMap; | |
import org.appops.jsonizer.client.customcollection.JsonHashSet; | |
import org.appops.jsonizer.client.customcollection.JsonLinkedList; | |
import org.appops.jsonizer.client.customcollection.JsonTreeMap; | |
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 org.appops.sync.client.eventconfiguration.event.CascadeDeleteEvent; | |
import org.appops.sync.client.eventconfiguration.event.PojoMarkerModifiedEvent; | |
import com.google.common.base.Preconditions; | |
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; | |
public class GeneratedAppExPojoMarkerImpl extends org.appops.ex.shared.app.AppEx 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.ObjectJsonizer, | |
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.sync.client.eventconfiguration.handlers.CascadeDeleteEventHandler, | |
org.appops.altshared.shared.jsonizer.base.HasReferrer { | |
private BasePojoMarkerImpl _impl = JsonizerGinjector.INSTANCE.getBasePojoMarkerImpl(); | |
private String pojoMarkerKey = "org.appops.ex.shared.app.AppEx"; | |
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 GeneratedAppExPojoMarkerImpl() { | |
_impl.setTypeMap(typeMap); | |
_impl.setPojoMarkerImpl(this); | |
_impl.setPojomarkerKey(pojoMarkerKey); | |
this.setInstanceProvider(); | |
generateTypeInfoMap(); | |
} | |
static { | |
typeMap.put("pageexlist", new CollectionTypeKey(TypedAs.FIXED, "java.util.ArrayList", new ArrayList<TypeKey>( | |
Arrays.asList(new TypeKey(TypedAs.FIXED, "org.appops.ex.shared.field.PageEx"))))); | |
typeMap.put("ishome", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("appid", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("appname", TypeKeyFactory.getTypeKey("java.lang.String")); | |
typeMap.put("tappservicedata", new TypeKey(TypedAs.FIXED, "org.appops.altshared.shared.slim.TappServiceData")); | |
typeMap.put("jsonblobid", new TypeKey(TypedAs.FIXED, "java.lang.Long")); | |
typeMap.put("appmetaex", new TypeKey(TypedAs.FIXED, "org.appops.ex.shared.app.AppMetaEx")); | |
typeMap.put("serviceid", TypeKeyFactory.getTypeKey("long")); | |
String pojoMarkerKey = ""; | |
pojoMarkerKey = "org.appops.ex.shared.app.AppEx"; | |
PojoMarkerImplInstantiatorRegistry.get().registerInstantiator(pojoMarkerKey, | |
new PojoMarkerImplInstantiator<AppEx>() { | |
@Override | |
public AppEx createInstance() { | |
return GWT.create(AppEx.class); | |
} | |
}); | |
} | |
@Worker | |
public void setInstanceProvider() { | |
super.setInstanceProvider((InstanceProvider) GWT.create(InstanceProvider.class)); | |
} | |
public void setAllPropertyValuesToClass() { | |
Object propertyValue = null; | |
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("appid"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setAppId((long) propertyValue); | |
propertyValue = _impl.getProperty("tappservicedata"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTappServiceData((org.appops.altshared.shared.slim.TappServiceData) propertyValue); | |
propertyValue = _impl.getProperty("appname"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setAppName((java.lang.String) propertyValue); | |
propertyValue = _impl.getProperty("pageexlist"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setPageExList((java.util.ArrayList) 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("appmetaex"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setAppMetaEx((org.appops.ex.shared.app.AppMetaEx) propertyValue); | |
propertyValue = _impl.getProperty("jsonblobid"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue instanceof AltLongId) { | |
propertyValue = ((AltLongId) propertyValue).getId(); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setJsonBlobId((java.lang.Long) propertyValue); | |
} | |
@Override | |
public java.util.ArrayList getPageExList() { | |
Serializable value = _impl.getProperty("pageexlist"); | |
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("pageexlist", null); | |
return (java.util.ArrayList) value; | |
} else { | |
Object result = super.getPageExList(); | |
if (result == null && value != null) { | |
result = value; | |
} | |
return (java.util.ArrayList) result; | |
} | |
} | |
@Override | |
public void setServiceId(long serviceId) { | |
setPropertyValue("serviceid", serviceId); | |
} | |
@Override | |
public void setAppId(long appId) { | |
setPropertyValue("appid", appId); | |
} | |
@Override | |
public void setTappServiceData(org.appops.altshared.shared.slim.TappServiceData tappServiceData2) { | |
setPropertyValue("tappservicedata", tappServiceData2); | |
} | |
@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 long getAppId() { | |
Serializable value = _impl.getProperty("appid"); | |
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.getAppId(); | |
return (long) result; | |
} | |
} | |
@Override | |
public java.lang.String getAppName() { | |
Serializable value = _impl.getProperty("appname"); | |
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.getAppName(); | |
return (java.lang.String) result; | |
} | |
} | |
@Override | |
public void setAppName(java.lang.String appName) { | |
setPropertyValue("appname", appName); | |
} | |
@Override | |
public void setPageExList(java.util.ArrayList pageExList) { | |
setPropertyValue("pageexlist", pageExList); | |
} | |
@Override | |
public org.appops.altshared.shared.slim.TappServiceData getTappServiceData() { | |
Serializable value = _impl.getProperty("tappservicedata"); | |
if (!Utils.isNullOrEmptyValue(value)) { | |
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null) | |
((ManagePojo) value).setEventBus(this.getEventBus()); | |
return (org.appops.altshared.shared.slim.TappServiceData) value; | |
} else { | |
Object result = super.getTappServiceData(); | |
return (org.appops.altshared.shared.slim.TappServiceData) result; | |
} | |
} | |
@Override | |
public void setIsHome(boolean isHome) { | |
setPropertyValue("ishome", isHome); | |
} | |
@Override | |
public void setAppMetaEx(org.appops.ex.shared.app.AppMetaEx appMetaEx) { | |
setPropertyValue("appmetaex", appMetaEx); | |
} | |
@Override | |
public void setJsonBlobId(java.lang.Long jsonBlobId) { | |
setPropertyValue("jsonblobid", jsonBlobId); | |
} | |
@Override | |
public java.lang.Long getJsonBlobId() { | |
Serializable value = _impl.getProperty("jsonblobid"); | |
if (!Utils.isNullOrEmptyValue(value)) { | |
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null) | |
((ManagePojo) value).setEventBus(this.getEventBus()); | |
return (java.lang.Long) value; | |
} else { | |
Object result = super.getJsonBlobId(); | |
return (java.lang.Long) result; | |
} | |
} | |
@Override | |
public org.appops.ex.shared.app.AppMetaEx getAppMetaEx() { | |
Serializable value = _impl.getProperty("appmetaex"); | |
if (!Utils.isNullOrEmptyValue(value)) { | |
if (value instanceof ManagePojo && ((ManagePojo) value).getEventBus() == null && this.getEventBus() != null) | |
((ManagePojo) value).setEventBus(this.getEventBus()); | |
return (org.appops.ex.shared.app.AppMetaEx) value; | |
} else { | |
Object result = super.getAppMetaEx(); | |
return (org.appops.ex.shared.app.AppMetaEx) 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; | |
} | |
} | |
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) { | |
SyncChange change = null; | |
if (!isSynced) { | |
if (getEventBus() != null) { | |
change = prepareAndFireEvent(propName, value); | |
} | |
} | |
switch (propName) { | |
case "serviceid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("serviceid", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("serviceid", (Serializable) value); | |
} | |
if (value != null) { | |
super.setServiceId((long) value); | |
} | |
} | |
break; | |
case "appid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("appid", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("appid", (Serializable) value); | |
} | |
if (value != null) { | |
super.setAppId((long) value); | |
} | |
} | |
break; | |
case "tappservicedata": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("tappservicedata", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("tappservicedata", (Serializable) value); | |
} | |
if (value != null) { | |
super.setTappServiceData((org.appops.altshared.shared.slim.TappServiceData) value); | |
} | |
} | |
break; | |
case "appname": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("appname", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("appname", (Serializable) value); | |
} | |
if (value != null) { | |
super.setAppName((java.lang.String) value); | |
} | |
} | |
break; | |
case "pageexlist": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("pageexlist", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("pageexlist", (Serializable) value); | |
} | |
if (value != null) { | |
super.setPageExList((java.util.ArrayList) value); | |
} | |
} | |
break; | |
case "ishome": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("ishome", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("ishome", (Serializable) value); | |
} | |
if (value != null) { | |
super.setIsHome((boolean) value); | |
} | |
} | |
break; | |
case "appmetaex": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("appmetaex", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("appmetaex", (Serializable) value); | |
} | |
if (value != null) { | |
super.setAppMetaEx((org.appops.ex.shared.app.AppMetaEx) value); | |
} | |
} | |
break; | |
case "jsonblobid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
_impl.populatePropertyValueMap("jsonblobid", (Serializable) value); | |
addReferrer(value); | |
} else { | |
_impl.setProperty("jsonblobid", (Serializable) value); | |
} | |
if (value != null) { | |
if (value instanceof AltLongId) | |
value = ((AltLongId) value).getId(); | |
super.setJsonBlobId((java.lang.Long) value); | |
} | |
} | |
break; | |
default: | |
logger.log(Level.SEVERE, "property with name " + propName + "does not exists"); | |
break; | |
} | |
} | |
public void setPropertyValue(String propName, Object value, boolean deepCopy) { | |
if (getDeepCopyMap().containsKey(value) && getDeepCopyMap().get(value) != null) { | |
value = getDeepCopyMap().get(value); | |
} | |
switch (propName) { | |
case "serviceid": | |
if (_impl != null) { | |
_impl.setProperty("serviceid", (Serializable) value, deepCopy); | |
} | |
super.setServiceId((long) value); | |
break; | |
case "appid": | |
if (_impl != null) { | |
_impl.setProperty("appid", (Serializable) value, deepCopy); | |
} | |
super.setAppId((long) value); | |
break; | |
case "tappservicedata": | |
if (_impl != null) { | |
_impl.setProperty("tappservicedata", (Serializable) value, deepCopy); | |
} | |
super.setTappServiceData((org.appops.altshared.shared.slim.TappServiceData) value); | |
break; | |
case "appname": | |
if (_impl != null) { | |
_impl.setProperty("appname", (Serializable) value, deepCopy); | |
} | |
super.setAppName((java.lang.String) value); | |
break; | |
case "pageexlist": | |
if (_impl != null) { | |
_impl.setProperty("pageexlist", (Serializable) value, deepCopy); | |
} | |
super.setPageExList((java.util.ArrayList) value); | |
break; | |
case "ishome": | |
if (_impl != null) { | |
_impl.setProperty("ishome", (Serializable) value, deepCopy); | |
} | |
super.setIsHome((boolean) value); | |
break; | |
case "appmetaex": | |
if (_impl != null) { | |
_impl.setProperty("appmetaex", (Serializable) value, deepCopy); | |
} | |
super.setAppMetaEx((org.appops.ex.shared.app.AppMetaEx) value); | |
break; | |
case "jsonblobid": | |
if (_impl != null) { | |
_impl.setProperty("jsonblobid", (Serializable) value, deepCopy); | |
} | |
super.setJsonBlobId((java.lang.Long) 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 "pageexlist": | |
result = (Serializable) getPageExList(); | |
return result; | |
case "ishome": | |
result = (Serializable) getIsHome(); | |
return result; | |
case "appid": | |
result = (Serializable) getAppId(); | |
return result; | |
case "appname": | |
result = (Serializable) getAppName(); | |
return result; | |
case "tappservicedata": | |
result = (Serializable) getTappServiceData(); | |
return result; | |
case "jsonblobid": | |
result = (Serializable) getJsonBlobId(); | |
return result; | |
case "appmetaex": | |
result = (Serializable) getAppMetaEx(); | |
return result; | |
case "serviceid": | |
result = (Serializable) getServiceId(); | |
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 | |
public void setInstanceRegistry(InstanceRegistry instanceRegistry) { | |
this.instanceRegistry = instanceRegistry; | |
_impl.setInstanceRegistry(instanceRegistry); | |
} | |
@Worker | |
@Override | |
public void setInstanceRegistry(InstanceRegistry instanceRegistry, boolean setDeep) { | |
setInstanceRegistry(instanceRegistry); | |
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("pageexlist"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getPageExList(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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("pageexlist", result); | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("ishome"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsHome(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("appid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getAppId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("appname"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getAppName(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("tappservicedata"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTappServiceData(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("jsonblobid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getJsonBlobId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("appmetaex"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getAppMetaEx(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("serviceid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getServiceId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
} | |
} | |
@Override | |
@Worker | |
public void onApplyArrayListAddElementChange(ApplyArrayListAddElementChangeEvent event) { | |
Serializable value = null; | |
ArrayListChange change = (ArrayListChange) event.getSyncChange(); | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
value = this.getPropertyValue(change.getPropertyName()); | |
if (value instanceof JsonArrayList) { | |
((JsonArrayList) value).setSync(true); | |
((JsonArrayList) value).add(change.getChangeValue()); | |
} | |
} | |
} | |
@Worker | |
@Override | |
public void onApplyHashMapChnage(ApplyHashMapChangeEvent event) { | |
try { | |
Serializable result = null; | |
Serializable valueChanged = null; | |
Serializable keyChanged = null; | |
HashMapChange change = null; | |
if (event.getSyncChange() instanceof HashMapChange) { | |
change = (HashMapChange) event.getSyncChange(); | |
valueChanged = ((HashMapChange) change).getKey(); | |
keyChanged = change.getChangeValue(); | |
} | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
result = this.getPropertyValue(change.getPropertyName()); | |
if (result instanceof JsonHashMap) { | |
((JsonHashMap) result).setSync(true); | |
if (change instanceof HashMapClearChange) { | |
((JsonHashMap) result).clear(); | |
} else if (change instanceof HashMapAddElementChange) { | |
if (valueChanged != null && keyChanged != null) { | |
((JsonHashMap) result).put(keyChanged, valueChanged); | |
} | |
} else if (change instanceof HashMapRemoveElementChange) { | |
valueChanged = removeInstanceFromInstanceRegistry(valueChanged); | |
keyChanged = removeInstanceFromInstanceRegistry(valueChanged); | |
((JsonHashMap) result).remove(keyChanged); | |
} | |
} | |
} | |
} catch (Exception e) { | |
throw new AltJsonizerException(getClass().getCanonicalName() + " :: onApplyHashMapAddElementChnage() ::" | |
+ e); | |
} | |
} | |
@Override | |
@Worker | |
public void onApplyTreeMapChnage(ApplyTreeMapChangeEvent event) { | |
try { | |
Serializable result = null; | |
Serializable valueChanged = null; | |
Serializable keyChanged = null; | |
TreeMapChange change = null; | |
if (event.getSyncChange() instanceof TreeMapChange) { | |
change = (TreeMapChange) event.getSyncChange(); | |
keyChanged = ((TreeMapChange) change).getKey(); | |
valueChanged = change.getChangeValue(); | |
} | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
result = this.getPropertyValue(change.getPropertyName()); | |
if (result instanceof JsonTreeMap) { | |
((JsonTreeMap) result).setSync(true); | |
if (change instanceof TreeMapClearChange) { | |
((JsonTreeMap) result).clear(); | |
} else if (change instanceof TreeMapAddElementChange) { | |
if (valueChanged != null && keyChanged != null) { | |
((JsonTreeMap) result).put(keyChanged, valueChanged); | |
} | |
} else if (change instanceof TreeMapRemoveElementChange) { | |
valueChanged = removeInstanceFromInstanceRegistry(valueChanged); | |
keyChanged = removeInstanceFromInstanceRegistry(valueChanged); | |
((JsonTreeMap) result).remove(keyChanged); | |
} | |
} | |
} | |
} catch (Exception e) { | |
throw new AltJsonizerException(getClass().getCanonicalName() + " :: onApplyTreeMapChnage() ::" + e); | |
} | |
} | |
@Override | |
@Worker | |
public void onApplyHashSetChnage(ApplyHashSetChangeEvent event) { | |
try { | |
Serializable result = null; | |
Serializable valueChanged = null; | |
HashSetChange change = null; | |
if (event.getSyncChange() instanceof HashSetChange) { | |
change = (HashSetChange) event.getSyncChange(); | |
valueChanged = change.getChangeValue(); | |
} | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
result = this.getPropertyValue(change.getPropertyName()); | |
if (result instanceof JsonHashSet) { | |
((JsonHashSet) result).setSync(true); | |
if (change instanceof HashSetClearChange) { | |
((JsonHashSet) result).clear(); | |
} else if (change instanceof HashSetAddElementChange) { | |
if (valueChanged != null) { | |
((JsonHashSet) result).add(valueChanged); | |
} | |
} else if (change instanceof HashSetRemoveElementChange) { | |
valueChanged = removeInstanceFromInstanceRegistry(valueChanged); | |
((JsonHashSet) result).remove(valueChanged); | |
} | |
} | |
} | |
} catch (Exception e) { | |
throw new AltJsonizerException(getClass().getCanonicalName() + " :: onApplyHashSetChnage() ::" + e); | |
} | |
} | |
@Override | |
@Worker | |
public void onApplyArrayListClearChange(ApplyArrayListClearChangeEvent event) { | |
Serializable value = null; | |
ArrayListChange change = (ArrayListChange) event.getSyncChange(); | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
value = this.getPropertyValue(change.getPropertyName()); | |
if (value instanceof JsonArrayList) { | |
((JsonArrayList) value).setSync(true); | |
((JsonArrayList) value).clear(); | |
} | |
} | |
} | |
@Override | |
@Worker | |
public void onApplyArrayListRemoveElementChange(ApplyArrayListRemoveChangeEvent event) { | |
Serializable value = null; | |
ArrayListChange change = (ArrayListChange) event.getSyncChange(); | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
value = this.getPropertyValue(change.getPropertyName()); | |
if (value instanceof JsonArrayList) { | |
value = (JsonArrayList) value; | |
((JsonArrayList) value).setSync(true); | |
((JsonArrayList) value).remove(change.getChangeValue()); | |
} | |
} | |
} | |
@Override | |
@Worker | |
public void onApplyLinkedListAddElementChangeEvent(ApplyLinkedListAddElementChangeEvent event) { | |
Serializable value; | |
LinkedListChange change = (LinkedListChange) event.getSyncChange(); | |
if (change.getParentInstanceId().equals(((ManagePojo) this).getRegistrationKey())) { | |
value = this.getPropertyValue(change.getPropertyName()); | |
if (value instanceof JsonLinkedList) { | |
((JsonLinkedList) value).setSync(true); | |
((JsonLinkedList) value).add(change.getChangeValue()); | |
} | |
} | |
} | |
@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) { | |
try { | |
GWT.log("========" + propname + "=======" + value); | |
if (Primitive.isIntrinsic(getPropertyTypeName(propname))) { | |
IntrinsicChange intrinsicChange = GWT.create(IntrinsicChange.class); | |
Object oldValue = getPropertyValue(propname); | |
intrinsicChange.setParentInstanceId(instanceRegistry.getRegistrationKey(this)); | |
intrinsicChange.setPropertyName(propname); | |
intrinsicChange.setChangeValue((Serializable) value); | |
intrinsicChange.setOldValue(oldValue); | |
((SyncChange) intrinsicChange).setResource((PojoMarker) this); | |
PojoMarkerModifiedEvent event = new PojoMarkerModifiedEvent(intrinsicChange); | |
getEventBus().fireEvent(event); | |
return intrinsicChange; | |
} else if (value instanceof PojoMarker) { | |
PojoMarkerChange pojoMarkerChange = GWT.create(PojoMarkerChange.class); | |
Object oldValue = getPropertyValue(propname); | |
pojoMarkerChange.setInstanceRegistry(instanceRegistry); | |
pojoMarkerChange.setParentInstanceId(instanceRegistry.getRegistrationKey(this)); | |
pojoMarkerChange.setPropertyName(propname); | |
pojoMarkerChange.setChangeValue((PojoMarker) value); | |
pojoMarkerChange.setOldValue(oldValue); | |
((SyncChange) pojoMarkerChange).setResource((PojoMarker) this); | |
PojoMarkerModifiedEvent event = new PojoMarkerModifiedEvent(pojoMarkerChange); | |
getEventBus().fireEvent(event); | |
if (value instanceof ManagePojo && eventBus != null) { | |
if (((ManagePojo) value).getEventBus() == null) { | |
((ManagePojo) value).setEventBus(getEventBus()); | |
} | |
} | |
return pojoMarkerChange; | |
} | |
} catch (Exception e) { | |
throw new AltJsonizerException(getClass().getCanonicalName() + " :: prepareAndFireEvent :: " + e); | |
} | |
return null; | |
} | |
@Worker | |
private void generateTypeInfoMap() { | |
HashMap<String, TypeInfo> propTypeInfo = new HashMap<String, TypeInfo>(); | |
TypeInfo typeInfo = null; | |
typeInfo = new TypeInfo(); | |
propTypeInfo.put("pagebyname", typeInfo); | |
typeInfo = new TypeInfo(); | |
propTypeInfo.put("toppage", typeInfo); | |
typeInfo = new TypeInfo(); | |
propTypeInfo.put("instanceprovider", 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) { | |
try { | |
if (propertyValue instanceof ManagePojo) { | |
if (!(getInstanceRegistry().isInstanceRegistered(propertyValue))) { | |
Serializable regKey = ((ManagePojo) propertyValue).getRegistrationKey(); | |
if (getInstanceRegistry().isInstanceKeyRegistered(regKey, null)) { | |
getInstanceRegistry().registerInstanceWithKey(regKey, propertyValue); | |
} else { | |
regKey = getInstanceRegistry().registerInstance(propertyValue); | |
((ManagePojo) propertyValue).setRegistrationKey(regKey); | |
} | |
((ObjectJsonizer) propertyValue).setInstanceRegistry(getInstanceRegistry()); | |
((ManagePojo) propertyValue).setEventBus(eventBus); | |
} | |
} | |
} catch (Exception e) { | |
throw new AltJsonizerException(getClass().getCanonicalName() + " :: prepareInstanceRegistry() :: " + e); | |
} | |
} | |
@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); | |
} | |
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); | |
} | |
if (deepCopyMap.containsKey(this) && deepCopyMap.get(this) != null) { | |
return this; | |
} | |
pojomarker = (AppEx) createNewInstance(); | |
Serializable result = null; | |
Object obj = null; | |
result = (Serializable) getPageExList(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("pageexlist", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("pageexlist", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("pageexlist", result, true); | |
} | |
} | |
result = (Serializable) getIsHome(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("ishome", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("ishome", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("ishome", result, true); | |
} | |
} | |
result = (Serializable) getAppId(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("appid", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("appid", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("appid", result, true); | |
} | |
} | |
result = (Serializable) getAppName(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("appname", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("appname", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("appname", result, true); | |
} | |
} | |
result = (Serializable) getTappServiceData(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("tappservicedata", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("tappservicedata", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("tappservicedata", result, true); | |
} | |
} | |
result = (Serializable) getJsonBlobId(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("jsonblobid", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("jsonblobid", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("jsonblobid", result, true); | |
} | |
} | |
result = (Serializable) getAppMetaEx(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("appmetaex", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("appmetaex", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("appmetaex", result, true); | |
} | |
} | |
result = (Serializable) getServiceId(); | |
if (result != null) { | |
if (result instanceof DeepCopy) { | |
((DeepCopy) result).setDeepCopyMap(getDeepCopyMap()); | |
if (JsonizerGinjector.INSTANCE.getClassInfoProvider().isAnnotationPresent( | |
result.getClass().getSuperclass(), NoDeepCopy.class)) { | |
((ManagePojo) pojomarker).setPropertyValue("serviceid", result, true); | |
} else { | |
obj = ((DeepCopy) result).deepCopy(); | |
((ManagePojo) pojomarker).setPropertyValue("serviceid", obj, true); | |
} | |
} else { | |
((ManagePojo) pojomarker).setPropertyValue("serviceid", result, true); | |
} | |
} | |
return pojomarker; | |
} catch (Exception e) { | |
throw new AltJsonizerException(getClass().getCanonicalName() + " :: createDeepCopy() :: " + e); | |
} | |
} | |
@Worker | |
public PojoMarker createNewInstance() { | |
PojoMarker pojomarker = GWT.create(AppEx.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 onCascadeDeleteEvent(CascadeDeleteEvent event) { | |
Preconditions.checkNotNull(event.getEventData(), "Cascade delete Event data cannot be null."); | |
PojoMarker pojoMarker = event.getEventData(); | |
Serializable regKey = ((ManagePojo) pojoMarker).getRegistrationKey(); | |
Preconditions.checkNotNull(regKey, "Cascade delete Event data registration key cannot be null."); | |
if (pojoMarker == this) | |
getInstanceRegistry().removeInstanceFromRegistry(regKey); | |
} | |
@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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 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.ObjectJsonizer; | |
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 org.appops.sync.client.eventconfiguration.event.CascadeDeleteEvent; | |
import com.google.common.base.Preconditions; | |
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.ObjectJsonizer, | |
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.sync.client.eventconfiguration.handlers.CascadeDeleteEventHandler, | |
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); | |
} | |
_impl.registerTopMostObject((PojoMarker) this); | |
} | |
static { | |
typeMap.put("tappbanner", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("timetranslated", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("familyid", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("serviceid", TypeKeyFactory.getTypeKey("long")); | |
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("createdby", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("isdirty", new TypeKey(TypedAs.FIXED, "java.lang.Boolean")); | |
typeMap.put("spacetypeid", 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("timemodified", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("id", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("tappdescription", TypeKeyFactory.getTypeKey("java.lang.String")); | |
typeMap.put("modifiedon", TypeKeyFactory.getTypeKey("java.util.Date")); | |
typeMap.put("isprimary", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("tappicon", 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("isgeneric", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("tappvariablestore", new TypeKey(TypedAs.FIXED, "com.trupublic.shared.store.TappVariableStore")); | |
typeMap.put("ishome", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("blobid", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("isaddon", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("issystem", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("isprivate", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("tappstatus", TypeKeyFactory.getTypeKey("java.lang.String")); | |
typeMap.put("spaceslimid", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("owner", 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("iskernel", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("modifiedby", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("istranslated", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("createdon", TypeKeyFactory.getTypeKey("java.util.Date")); | |
typeMap.put("versionid", TypeKeyFactory.getTypeKey("int")); | |
typeMap.put("name", TypeKeyFactory.getTypeKey("java.lang.String")); | |
typeMap.put("homespaceid", TypeKeyFactory.getTypeKey("long")); | |
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("iscommunity", TypeKeyFactory.getTypeKey("boolean")); | |
typeMap.put("spaceslim", TypeKeyFactory.getTypeKey("long")); | |
typeMap.put("translatedjsonblob", TypeKeyFactory.getTypeKey("long")); | |
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("isdirty"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setIsDirty((boolean) 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("name"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setName((java.lang.String) 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("modifiedby"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setModifiedBy((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("tappstatus"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTappStatus((java.lang.String) 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("actionablelist"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setActionableList((java.util.ArrayList) 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("isprivate"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setIsPrivate((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); | |
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("tappdescription"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTappDescription((java.lang.String) 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("tappbanner"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTappBanner((long) 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("createdby"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setCreatedBy((long) 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("istranslated"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setIsTranslated((boolean) propertyValue); | |
propertyValue = _impl.getProperty("blobid"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setBlobId((long) 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("timemodified"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTimeModified((long) 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("tappicon"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTappIcon((long) 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("sceneslimlist"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setSceneSlimList((java.util.ArrayList) propertyValue); | |
propertyValue = _impl.getProperty("translatedjsonblob"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setTranslatedJsonBlob((long) 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("modifiedon"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setModifiedOn((java.util.Date) 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("moduleslimlist"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setModuleSlimList((java.util.ArrayList) 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("owner"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setOwner((long) 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("id"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setId((long) propertyValue); | |
propertyValue = _impl.getProperty("spaceslimid"); | |
if (propertyValue instanceof AltEntity) { | |
propertyValue = getEntityConverted((AltEntity) propertyValue); | |
} | |
if (propertyValue != null && propertyValue instanceof Serializable) | |
super.setSpaceSlimId((long) propertyValue); | |
} | |
@Override | |
public void setIsDirty(boolean isDirty) { | |
setPropertyValue("isdirty", isDirty); | |
} | |
@Override | |
public long 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 (long) value; | |
} else { | |
Object result = super.getTappBanner(); | |
return (long) 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 setServiceId(long serviceId) { | |
setPropertyValue("serviceid", serviceId); | |
} | |
@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 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 setName(java.lang.String name) { | |
setPropertyValue("name", name); | |
} | |
@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); | |
return (java.util.ArrayList) value; | |
} else { | |
Object result = super.getThingList(); | |
if (result == null && value != null) { | |
result = value; | |
} | |
return (java.util.ArrayList) result; | |
} | |
} | |
@Override | |
public void setIsAddOn(boolean isAddOn) { | |
setPropertyValue("isaddon", isAddOn); | |
} | |
@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.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.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); | |
return (java.util.ArrayList) value; | |
} else { | |
Object result = super.getModuleSlimList(); | |
if (result == null && value != null) { | |
result = value; | |
} | |
return (java.util.ArrayList) result; | |
} | |
} | |
@Override | |
public void setTappVariableStore(com.trupublic.shared.store.TappVariableStore tappVariableStore) { | |
setPropertyValue("tappvariablestore", tappVariableStore); | |
} | |
@Override | |
public void setModifiedBy(long modifiedBy) { | |
setPropertyValue("modifiedby", modifiedBy); | |
} | |
@Override | |
public void setVersionId(int versionId) { | |
setPropertyValue("versionid", versionId); | |
} | |
@Override | |
public void setTappStatus(java.lang.String tappStatus) { | |
setPropertyValue("tappstatus", tappStatus); | |
} | |
@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 void setCreatedOn(java.util.Date createdOn) { | |
setPropertyValue("createdon", createdOn); | |
} | |
@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 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 void setActionableList(java.util.ArrayList actionableList) { | |
setPropertyValue("actionablelist", actionableList); | |
} | |
@Override | |
public void setIsHome(boolean isHome) { | |
setPropertyValue("ishome", isHome); | |
} | |
@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 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 void setIsPrivate(boolean isPrivate) { | |
setPropertyValue("isprivate", isPrivate); | |
} | |
@Override | |
public long 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 (long) value; | |
} else { | |
Object result = super.getTappIcon(); | |
return (long) result; | |
} | |
} | |
@Override | |
public void setThingList(java.util.ArrayList thingList) { | |
setPropertyValue("thinglist", thingList); | |
} | |
@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); | |
return (java.util.ArrayList) value; | |
} else { | |
Object result = super.getSceneSlimList(); | |
if (result == null && value != null) { | |
result = value; | |
} | |
return (java.util.ArrayList) result; | |
} | |
} | |
@Override | |
public void setSpaceTypeId(long spaceTypeId) { | |
setPropertyValue("spacetypeid", spaceTypeId); | |
} | |
@Override | |
public void setTappDescription(java.lang.String tappDescription) { | |
setPropertyValue("tappdescription", tappDescription); | |
} | |
@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 setIsSystem(boolean isSystem) { | |
setPropertyValue("issystem", isSystem); | |
} | |
@Override | |
public void setTappBanner(long tappBanner) { | |
setPropertyValue("tappbanner", tappBanner); | |
} | |
@Override | |
public void setIsKernel(boolean isKernel) { | |
setPropertyValue("iskernel", isKernel); | |
} | |
@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 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 setCreatedBy(long createdBy) { | |
setPropertyValue("createdby", createdBy); | |
} | |
@Override | |
public void setRoleList(java.util.ArrayList roleList) { | |
setPropertyValue("rolelist", roleList); | |
} | |
@Override | |
public long 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 (long) value; | |
} else { | |
Object result = super.getBlobId(); | |
return (long) result; | |
} | |
} | |
@Override | |
public void setIsTranslated(boolean isTranslated) { | |
setPropertyValue("istranslated", isTranslated); | |
} | |
@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 void setBlobId(long blobId) { | |
setPropertyValue("blobid", blobId); | |
} | |
@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 void setFamilyId(long familyId) { | |
setPropertyValue("familyid", familyId); | |
} | |
@Override | |
public void setTimeModified(long timeModified) { | |
setPropertyValue("timemodified", timeModified); | |
} | |
@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 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 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 void setIsPrimary(boolean isPrimary) { | |
setPropertyValue("isprimary", isPrimary); | |
} | |
@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 void setTappIcon(long tappIcon) { | |
setPropertyValue("tappicon", tappIcon); | |
} | |
@Override | |
public void setTimeTranslated(long timeTranslated) { | |
setPropertyValue("timetranslated", timeTranslated); | |
} | |
@Override | |
public void setSceneSlimList(java.util.ArrayList sceneSlimList) { | |
setPropertyValue("sceneslimlist", sceneSlimList); | |
} | |
@Override | |
public void setTranslatedJsonBlob(long translatedJsonBlob) { | |
setPropertyValue("translatedjsonblob", translatedJsonBlob); | |
} | |
@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); | |
return (java.util.ArrayList) value; | |
} else { | |
Object result = super.getRoleList(); | |
if (result == null && value != null) { | |
result = value; | |
} | |
return (java.util.ArrayList) 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 void setHomeSpaceId(long homeSpaceId) { | |
setPropertyValue("homespaceid", homeSpaceId); | |
} | |
@Override | |
public void setModifiedOn(java.util.Date modifiedOn) { | |
setPropertyValue("modifiedon", modifiedOn); | |
} | |
@Override | |
public void setSpaceSlim(long spaceSlim) { | |
setPropertyValue("spaceslim", spaceSlim); | |
} | |
@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 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 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 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 setModuleSlimList(java.util.ArrayList moduleSlimList) { | |
setPropertyValue("moduleslimlist", moduleSlimList); | |
} | |
@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 setIsGeneric(boolean isGeneric) { | |
setPropertyValue("isgeneric", isGeneric); | |
} | |
@Override | |
public void setOwner(long owner) { | |
setPropertyValue("owner", owner); | |
} | |
@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 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); | |
return (java.util.ArrayList) value; | |
} else { | |
Object result = super.getActionableList(); | |
if (result == null && value != null) { | |
result = value; | |
} | |
return (java.util.ArrayList) 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) { | |
setPropertyValue("iscommunity", isCommunity); | |
} | |
@Override | |
public void setId(long id) { | |
setPropertyValue("id", id); | |
} | |
@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 setSpaceSlimId(long spaceSlimId) { | |
setPropertyValue("spaceslimid", spaceSlimId); | |
} | |
@Override | |
public long 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 (long) value; | |
} else { | |
Object result = super.getTranslatedJsonBlob(); | |
return (long) result; | |
} | |
} | |
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) { | |
SyncChange change = null; | |
if (!isSynced) { | |
if (getEventBus() != null) { | |
change = prepareAndFireEvent(propName, value); | |
} | |
} | |
switch (propName) { | |
case "isdirty": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("isdirty", (Serializable) value); | |
if (value != null) { | |
super.setIsDirty((boolean) value); | |
} | |
} | |
break; | |
case "serviceid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("serviceid", (Serializable) value); | |
if (value != null) { | |
super.setServiceId((long) value); | |
} | |
} | |
break; | |
case "name": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("name", (Serializable) value); | |
if (value != null) { | |
super.setName((java.lang.String) value); | |
} | |
} | |
break; | |
case "isaddon": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("isaddon", (Serializable) value); | |
if (value != null) { | |
super.setIsAddOn((boolean) value); | |
} | |
} | |
break; | |
case "tappvariablestore": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("tappvariablestore", (Serializable) value); | |
if (value != null) { | |
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore) value); | |
} | |
} | |
break; | |
case "modifiedby": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("modifiedby", (Serializable) value); | |
if (value != null) { | |
super.setModifiedBy((long) value); | |
} | |
} | |
break; | |
case "versionid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("versionid", (Serializable) value); | |
if (value != null) { | |
super.setVersionId((int) value); | |
} | |
} | |
break; | |
case "tappstatus": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("tappstatus", (Serializable) value); | |
if (value != null) { | |
super.setTappStatus((java.lang.String) value); | |
} | |
} | |
break; | |
case "createdon": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("createdon", (Serializable) value); | |
if (value != null) { | |
super.setCreatedOn((java.util.Date) value); | |
} | |
} | |
break; | |
case "actionablelist": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("actionablelist", (Serializable) value); | |
if (value != null) { | |
super.setActionableList((java.util.ArrayList) value); | |
} | |
} | |
break; | |
case "ishome": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("ishome", (Serializable) value); | |
if (value != null) { | |
super.setIsHome((boolean) value); | |
} | |
} | |
break; | |
case "isprivate": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("isprivate", (Serializable) value); | |
if (value != null) { | |
super.setIsPrivate((boolean) value); | |
} | |
} | |
break; | |
case "thinglist": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("thinglist", (Serializable) value); | |
if (value != null) { | |
super.setThingList((java.util.ArrayList) value); | |
} | |
} | |
break; | |
case "spacetypeid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("spacetypeid", (Serializable) value); | |
if (value != null) { | |
super.setSpaceTypeId((long) value); | |
} | |
} | |
break; | |
case "tappdescription": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("tappdescription", (Serializable) value); | |
if (value != null) { | |
super.setTappDescription((java.lang.String) value); | |
} | |
} | |
break; | |
case "issystem": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("issystem", (Serializable) value); | |
if (value != null) { | |
super.setIsSystem((boolean) value); | |
} | |
} | |
break; | |
case "tappbanner": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("tappbanner", (Serializable) value); | |
if (value != null) { | |
super.setTappBanner((long) value); | |
} | |
} | |
break; | |
case "iskernel": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("iskernel", (Serializable) value); | |
if (value != null) { | |
super.setIsKernel((boolean) value); | |
} | |
} | |
break; | |
case "createdby": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("createdby", (Serializable) value); | |
if (value != null) { | |
super.setCreatedBy((long) value); | |
} | |
} | |
break; | |
case "rolelist": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("rolelist", (Serializable) value); | |
if (value != null) { | |
super.setRoleList((java.util.ArrayList) value); | |
} | |
} | |
break; | |
case "istranslated": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("istranslated", (Serializable) value); | |
if (value != null) { | |
super.setIsTranslated((boolean) value); | |
} | |
} | |
break; | |
case "blobid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("blobid", (Serializable) value); | |
if (value != null) { | |
super.setBlobId((long) value); | |
} | |
} | |
break; | |
case "familyid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("familyid", (Serializable) value); | |
if (value != null) { | |
super.setFamilyId((long) value); | |
} | |
} | |
break; | |
case "timemodified": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("timemodified", (Serializable) value); | |
if (value != null) { | |
super.setTimeModified((long) value); | |
} | |
} | |
break; | |
case "isprimary": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("isprimary", (Serializable) value); | |
if (value != null) { | |
super.setIsPrimary((boolean) value); | |
} | |
} | |
break; | |
case "tappicon": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("tappicon", (Serializable) value); | |
if (value != null) { | |
super.setTappIcon((long) value); | |
} | |
} | |
break; | |
case "timetranslated": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("timetranslated", (Serializable) value); | |
if (value != null) { | |
super.setTimeTranslated((long) value); | |
} | |
} | |
break; | |
case "sceneslimlist": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("sceneslimlist", (Serializable) value); | |
if (value != null) { | |
super.setSceneSlimList((java.util.ArrayList) value); | |
} | |
} | |
break; | |
case "translatedjsonblob": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("translatedjsonblob", (Serializable) value); | |
if (value != null) { | |
super.setTranslatedJsonBlob((long) value); | |
} | |
} | |
break; | |
case "homespaceid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("homespaceid", (Serializable) value); | |
if (value != null) { | |
super.setHomeSpaceId((long) value); | |
} | |
} | |
break; | |
case "modifiedon": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("modifiedon", (Serializable) value); | |
if (value != null) { | |
super.setModifiedOn((java.util.Date) value); | |
} | |
} | |
break; | |
case "spaceslim": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("spaceslim", (Serializable) value); | |
if (value != null) { | |
super.setSpaceSlim((long) value); | |
} | |
} | |
break; | |
case "moduleslimlist": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("moduleslimlist", (Serializable) value); | |
if (value != null) { | |
super.setModuleSlimList((java.util.ArrayList) value); | |
} | |
} | |
break; | |
case "isgeneric": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("isgeneric", (Serializable) value); | |
if (value != null) { | |
super.setIsGeneric((boolean) value); | |
} | |
} | |
break; | |
case "owner": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("owner", (Serializable) value); | |
if (value != null) { | |
super.setOwner((long) value); | |
} | |
} | |
break; | |
case "iscommunity": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("iscommunity", (Serializable) value); | |
if (value != null) { | |
super.setIsCommunity((boolean) value); | |
} | |
} | |
break; | |
case "id": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("id", (Serializable) value); | |
if (value != null) { | |
super.setId((long) value); | |
} | |
} | |
break; | |
case "spaceslimid": | |
if (_impl != null) { | |
if (change != null && value instanceof ObjectPeer) { | |
getPeer().put(propName, ((ObjectPeer) change).getPeer().get("changevalue")); | |
addReferrer(value); | |
} else | |
_impl.setProperty("spaceslimid", (Serializable) value); | |
if (value != null) { | |
super.setSpaceSlimId((long) value); | |
} | |
} | |
break; | |
default: | |
logger.log(Level.SEVERE, "property with name " + propName + "does not exists"); | |
break; | |
} | |
} | |
public void setPropertyValue(String propName, Object value, boolean deepCopy) { | |
if (getDeepCopyMap().containsKey(value) && getDeepCopyMap().get(value) != null) { | |
value = getDeepCopyMap().get(value); | |
} | |
switch (propName) { | |
case "isdirty": | |
if (_impl != null) { | |
_impl.setProperty("isdirty", (Serializable) value, deepCopy); | |
} | |
super.setIsDirty((boolean) value); | |
break; | |
case "serviceid": | |
if (_impl != null) { | |
_impl.setProperty("serviceid", (Serializable) value, deepCopy); | |
} | |
super.setServiceId((long) value); | |
break; | |
case "name": | |
if (_impl != null) { | |
_impl.setProperty("name", (Serializable) value, deepCopy); | |
} | |
super.setName((java.lang.String) value); | |
break; | |
case "isaddon": | |
if (_impl != null) { | |
_impl.setProperty("isaddon", (Serializable) value, deepCopy); | |
} | |
super.setIsAddOn((boolean) value); | |
break; | |
case "tappvariablestore": | |
if (_impl != null) { | |
_impl.setProperty("tappvariablestore", (Serializable) value, deepCopy); | |
} | |
super.setTappVariableStore((com.trupublic.shared.store.TappVariableStore) value); | |
break; | |
case "modifiedby": | |
if (_impl != null) { | |
_impl.setProperty("modifiedby", (Serializable) value, deepCopy); | |
} | |
super.setModifiedBy((long) value); | |
break; | |
case "versionid": | |
if (_impl != null) { | |
_impl.setProperty("versionid", (Serializable) value, deepCopy); | |
} | |
super.setVersionId((int) value); | |
break; | |
case "tappstatus": | |
if (_impl != null) { | |
_impl.setProperty("tappstatus", (Serializable) value, deepCopy); | |
} | |
super.setTappStatus((java.lang.String) value); | |
break; | |
case "createdon": | |
if (_impl != null) { | |
_impl.setProperty("createdon", (Serializable) value, deepCopy); | |
} | |
super.setCreatedOn((java.util.Date) value); | |
break; | |
case "actionablelist": | |
if (_impl != null) { | |
_impl.setProperty("actionablelist", (Serializable) value, deepCopy); | |
} | |
super.setActionableList((java.util.ArrayList) value); | |
break; | |
case "ishome": | |
if (_impl != null) { | |
_impl.setProperty("ishome", (Serializable) value, deepCopy); | |
} | |
super.setIsHome((boolean) value); | |
break; | |
case "isprivate": | |
if (_impl != null) { | |
_impl.setProperty("isprivate", (Serializable) value, deepCopy); | |
} | |
super.setIsPrivate((boolean) value); | |
break; | |
case "thinglist": | |
if (_impl != null) { | |
_impl.setProperty("thinglist", (Serializable) value, deepCopy); | |
} | |
super.setThingList((java.util.ArrayList) value); | |
break; | |
case "spacetypeid": | |
if (_impl != null) { | |
_impl.setProperty("spacetypeid", (Serializable) value, deepCopy); | |
} | |
super.setSpaceTypeId((long) value); | |
break; | |
case "tappdescription": | |
if (_impl != null) { | |
_impl.setProperty("tappdescription", (Serializable) value, deepCopy); | |
} | |
super.setTappDescription((java.lang.String) value); | |
break; | |
case "issystem": | |
if (_impl != null) { | |
_impl.setProperty("issystem", (Serializable) value, deepCopy); | |
} | |
super.setIsSystem((boolean) value); | |
break; | |
case "tappbanner": | |
if (_impl != null) { | |
_impl.setProperty("tappbanner", (Serializable) value, deepCopy); | |
} | |
super.setTappBanner((long) value); | |
break; | |
case "iskernel": | |
if (_impl != null) { | |
_impl.setProperty("iskernel", (Serializable) value, deepCopy); | |
} | |
super.setIsKernel((boolean) value); | |
break; | |
case "createdby": | |
if (_impl != null) { | |
_impl.setProperty("createdby", (Serializable) value, deepCopy); | |
} | |
super.setCreatedBy((long) value); | |
break; | |
case "rolelist": | |
if (_impl != null) { | |
_impl.setProperty("rolelist", (Serializable) value, deepCopy); | |
} | |
super.setRoleList((java.util.ArrayList) value); | |
break; | |
case "istranslated": | |
if (_impl != null) { | |
_impl.setProperty("istranslated", (Serializable) value, deepCopy); | |
} | |
super.setIsTranslated((boolean) value); | |
break; | |
case "blobid": | |
if (_impl != null) { | |
_impl.setProperty("blobid", (Serializable) value, deepCopy); | |
} | |
super.setBlobId((long) value); | |
break; | |
case "familyid": | |
if (_impl != null) { | |
_impl.setProperty("familyid", (Serializable) value, deepCopy); | |
} | |
super.setFamilyId((long) value); | |
break; | |
case "timemodified": | |
if (_impl != null) { | |
_impl.setProperty("timemodified", (Serializable) value, deepCopy); | |
} | |
super.setTimeModified((long) value); | |
break; | |
case "isprimary": | |
if (_impl != null) { | |
_impl.setProperty("isprimary", (Serializable) value, deepCopy); | |
} | |
super.setIsPrimary((boolean) value); | |
break; | |
case "tappicon": | |
if (_impl != null) { | |
_impl.setProperty("tappicon", (Serializable) value, deepCopy); | |
} | |
super.setTappIcon((long) value); | |
break; | |
case "timetranslated": | |
if (_impl != null) { | |
_impl.setProperty("timetranslated", (Serializable) value, deepCopy); | |
} | |
super.setTimeTranslated((long) value); | |
break; | |
case "sceneslimlist": | |
if (_impl != null) { | |
_impl.setProperty("sceneslimlist", (Serializable) value, deepCopy); | |
} | |
super.setSceneSlimList((java.util.ArrayList) value); | |
break; | |
case "translatedjsonblob": | |
if (_impl != null) { | |
_impl.setProperty("translatedjsonblob", (Serializable) value, deepCopy); | |
} | |
super.setTranslatedJsonBlob((long) value); | |
break; | |
case "homespaceid": | |
if (_impl != null) { | |
_impl.setProperty("homespaceid", (Serializable) value, deepCopy); | |
} | |
super.setHomeSpaceId((long) value); | |
break; | |
case "modifiedon": | |
if (_impl != null) { | |
_impl.setProperty("modifiedon", (Serializable) value, deepCopy); | |
} | |
super.setModifiedOn((java.util.Date) value); | |
break; | |
case "spaceslim": | |
if (_impl != null) { | |
_impl.setProperty("spaceslim", (Serializable) value, deepCopy); | |
} | |
super.setSpaceSlim((long) value); | |
break; | |
case "moduleslimlist": | |
if (_impl != null) { | |
_impl.setProperty("moduleslimlist", (Serializable) value, deepCopy); | |
} | |
super.setModuleSlimList((java.util.ArrayList) value); | |
break; | |
case "isgeneric": | |
if (_impl != null) { | |
_impl.setProperty("isgeneric", (Serializable) value, deepCopy); | |
} | |
super.setIsGeneric((boolean) value); | |
break; | |
case "owner": | |
if (_impl != null) { | |
_impl.setProperty("owner", (Serializable) value, deepCopy); | |
} | |
super.setOwner((long) value); | |
break; | |
case "iscommunity": | |
if (_impl != null) { | |
_impl.setProperty("iscommunity", (Serializable) value, deepCopy); | |
} | |
super.setIsCommunity((boolean) value); | |
break; | |
case "id": | |
if (_impl != null) { | |
_impl.setProperty("id", (Serializable) value, deepCopy); | |
} | |
super.setId((long) value); | |
break; | |
case "spaceslimid": | |
if (_impl != null) { | |
_impl.setProperty("spaceslimid", (Serializable) value, deepCopy); | |
} | |
super.setSpaceSlimId((long) 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 "tappbanner": | |
result = (Serializable) getTappBanner(); | |
return result; | |
case "timetranslated": | |
result = (Serializable) getTimeTranslated(); | |
return result; | |
case "familyid": | |
result = (Serializable) getFamilyId(); | |
return result; | |
case "serviceid": | |
result = (Serializable) getServiceId(); | |
return result; | |
case "thinglist": | |
result = (Serializable) getThingList(); | |
return result; | |
case "createdby": | |
result = (Serializable) getCreatedBy(); | |
return result; | |
case "isdirty": | |
result = (Serializable) getIsDirty(); | |
return result; | |
case "spacetypeid": | |
result = (Serializable) getSpaceTypeId(); | |
return result; | |
case "moduleslimlist": | |
result = (Serializable) getModuleSlimList(); | |
return result; | |
case "timemodified": | |
result = (Serializable) getTimeModified(); | |
return result; | |
case "id": | |
result = (Serializable) getId(); | |
return result; | |
case "tappdescription": | |
result = (Serializable) getTappDescription(); | |
return result; | |
case "modifiedon": | |
result = (Serializable) getModifiedOn(); | |
return result; | |
case "isprimary": | |
result = (Serializable) getIsPrimary(); | |
return result; | |
case "tappicon": | |
result = (Serializable) getTappIcon(); | |
return result; | |
case "sceneslimlist": | |
result = (Serializable) getSceneSlimList(); | |
return result; | |
case "isgeneric": | |
result = (Serializable) getIsGeneric(); | |
return result; | |
case "tappvariablestore": | |
result = (Serializable) getTappVariableStore(); | |
return result; | |
case "ishome": | |
result = (Serializable) getIsHome(); | |
return result; | |
case "blobid": | |
result = (Serializable) getBlobId(); | |
return result; | |
case "isaddon": | |
result = (Serializable) getIsAddOn(); | |
return result; | |
case "issystem": | |
result = (Serializable) getIsSystem(); | |
return result; | |
case "isprivate": | |
result = (Serializable) getIsPrivate(); | |
return result; | |
case "tappstatus": | |
result = (Serializable) getTappStatus(); | |
return result; | |
case "spaceslimid": | |
result = (Serializable) getSpaceSlimId(); | |
return result; | |
case "owner": | |
result = (Serializable) getOwner(); | |
return result; | |
case "rolelist": | |
result = (Serializable) getRoleList(); | |
return result; | |
case "iskernel": | |
result = (Serializable) getIsKernel(); | |
return result; | |
case "modifiedby": | |
result = (Serializable) getModifiedBy(); | |
return result; | |
case "istranslated": | |
result = (Serializable) getIsTranslated(); | |
return result; | |
case "createdon": | |
result = (Serializable) getCreatedOn(); | |
return result; | |
case "versionid": | |
result = (Serializable) getVersionId(); | |
return result; | |
case "name": | |
result = (Serializable) getName(); | |
return result; | |
case "homespaceid": | |
result = (Serializable) getHomeSpaceId(); | |
return result; | |
case "actionablelist": | |
result = (Serializable) getActionableList(); | |
return result; | |
case "iscommunity": | |
result = (Serializable) getIsCommunity(); | |
return result; | |
case "spaceslim": | |
result = (Serializable) getSpaceSlim(); | |
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 | |
public void setInstanceRegistry(InstanceRegistry instanceRegistry) { | |
this.instanceRegistry = instanceRegistry; | |
_impl.setInstanceRegistry(instanceRegistry); | |
} | |
@Worker | |
@Override | |
public void setInstanceRegistry(InstanceRegistry instanceRegistry, boolean setDeep) { | |
setInstanceRegistry(instanceRegistry); | |
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("tappbanner"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTappBanner(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("timetranslated"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTimeTranslated(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("familyid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getFamilyId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("serviceid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getServiceId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("thinglist"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getThingList(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("createdby"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getCreatedBy(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("isdirty"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsDirty(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("spacetypeid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getSpaceTypeId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("moduleslimlist"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getModuleSlimList(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("timemodified"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTimeModified(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("id"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("tappdescription"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTappDescription(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("modifiedon"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getModifiedOn(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("isprimary"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsPrimary(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("tappicon"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTappIcon(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("sceneslimlist"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getSceneSlimList(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("isgeneric"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsGeneric(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("tappvariablestore"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTappVariableStore(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("ishome"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsHome(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("blobid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getBlobId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("isaddon"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsAddOn(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("issystem"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsSystem(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("isprivate"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsPrivate(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("tappstatus"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTappStatus(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("spaceslimid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getSpaceSlimId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("owner"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getOwner(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("rolelist"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getRoleList(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("iskernel"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsKernel(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("modifiedby"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getModifiedBy(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("istranslated"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsTranslated(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("createdon"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getCreatedOn(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("versionid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getVersionId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("name"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getName(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("homespaceid"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getHomeSpaceId(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("actionablelist"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getActionableList(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("iscommunity"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getIsCommunity(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("spaceslim"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getSpaceSlim(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((ManagePojo) result).setEventBus(eventBus); | |
} | |
result = _impl.getProperty("translatedjsonblob"); | |
if (Utils.isNullOrEmptyValue(result)) | |
result = (Serializable) super.getTranslatedJsonBlob(); | |
if (result instanceof ManagePojo) { | |
if (this.getInstanceRegistry() != null) { | |
((ObjectJsonizer) result).setInstanceRegistry(this.getInstanceRegistry()); | |
} | |
((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); | |
} | |
} | |
@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(); | |
propTypeInfo.put("exposedthingslist", typeInfo); | |
typeInfo = new TypeInfo(); | |
propTypeInfo.put("instanceprovider", 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("thingbyname", typeInfo); | |
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("slimid", typeInfo); | |
typeInfo = new TypeInfo(); | |
propTypeInfo.put("exposedthingaselementlist", 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); | |
} | |
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 onCascadeDeleteEvent(CascadeDeleteEvent event) { | |
Preconditions.checkNotNull(event.getEventData(), "Cascade delete Event data cannot be null."); | |
PojoMarker pojoMarker = event.getEventData(); | |
Serializable regKey = ((ManagePojo) pojoMarker).getRegistrationKey(); | |
Preconditions.checkNotNull(regKey, "Cascade delete Event data registration key cannot be null."); | |
if (pojoMarker == this) | |
getInstanceRegistry().removeInstanceFromRegistry(regKey); | |
} | |
@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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment