/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.tridium.space.BGateway * com.tridium.space.BIGatewaySpace * javax.baja.naming.BHost * javax.baja.naming.BISession * javax.baja.naming.BOrd * javax.baja.nav.BINavNode * javax.baja.nre.util.Array * javax.baja.sys.BComponent * javax.baja.sys.Sys * javax.baja.sys.Type * javax.baja.util.LexiconText */ package com.tridium.fox.sys.broker; import com.tridium.fox.sys.BFoxSession; import com.tridium.fox.sys.broker.BFoxComponentSpace; import com.tridium.space.BGateway; import com.tridium.space.BIGatewaySpace; import java.util.HashMap; import javax.baja.naming.BHost; import javax.baja.naming.BISession; import javax.baja.naming.BOrd; import javax.baja.nav.BINavNode; import javax.baja.nre.util.Array; import javax.baja.sys.BComponent; import javax.baja.sys.Sys; import javax.baja.sys.Type; import javax.baja.util.LexiconText; /* * Illegal identifiers - consider using --renameillegalidents true */ public class BFoxGatewaySpace extends BFoxComponentSpace implements BIGatewaySpace { public static final Type TYPE; protected final BGateway gateway; private boolean touchEnabled; static /* synthetic */ Class class$com$tridium$fox$sys$broker$BFoxGatewaySpace; static /* synthetic */ Class class$java$lang$String; public Type getType() { return TYPE; } public BGateway getGateway() { return this.gateway; } public BFoxSession getFoxSession() { return ((BFoxComponentSpace)this.gateway.getSpace()).channel.getFoxSession(); } public BComponent getRootComponent() { BComponent bComponent = super.getRootComponent(); if (bComponent == null) { try { BFoxSession bFoxSession = this.getFoxSession(); this.init(bFoxSession); } catch (Exception exception) { exception.printStackTrace(); } } return super.getRootComponent(); } public void setTouchEnabled(boolean bl) { this.touchEnabled = bl; } public BHost getHost() { return this.gateway.getSpace().getHost(); } public BISession getSession() { return this.gateway.getSpace().getSession(); } public BOrd getOrdInSession() { return BOrd.make((BOrd)this.gateway.getOrdInSession(), (BOrd)this.gateway.getGatewaySchemeOrd()); } public BOrd getAbsoluteOrd() { return BOrd.make((BOrd)this.gateway.getAbsoluteOrd(), (BOrd)this.gateway.getGatewaySchemeOrd()); } public BOrd getOrdInHost() { return BOrd.make((BOrd)this.gateway.getOrdInHost(), (BOrd)this.gateway.getGatewaySchemeOrd()); } public BOrd getNavOrd() { return this.gateway.getNavOrd(); } public BINavNode getNavParent() { return this.gateway; } public boolean hasNavChildren() { boolean bl = false; if (this.getRootComponent() != null) { bl = true; } return bl; } public BINavNode getNavChild(String string) { return this.getRootComponent().getNavChild(string); } public BINavNode resolveNavChild(String string) { return this.getRootComponent().resolveNavChild(string); } public BINavNode[] getNavChildren() { return this.getRootComponent().getNavChildren(); } public Object fw(int n, Object object, Object object2, Object object3, Object object4) { if (n == 110 && this.touchEnabled) { this.touch((BOrd[])object); } return super.fw(n, object, object2, object3, object4); } protected void touch(BOrd[] bOrdArray) { try { Class clazz = class$java$lang$String; if (clazz == null) { clazz = class$java$lang$String = BFoxGatewaySpace.class("[Ljava.lang.String;", false); } Array array = new Array(clazz); HashMap hashMap = new HashMap(); int n = 0; while (n < bOrdArray.length) { String string = bOrdArray[n].encodeToString(); if (hashMap.get(string) == null) { hashMap.put(string, string); array.add((Object)string); } ++n; } if (array.size() == 0) { return; } this.channel().touch((String[])array.trim()); } catch (Throwable throwable) { log.error("touch(): " + throwable); throw BFoxSession.toException(throwable); } } static /* synthetic */ Class class(String string, boolean bl) { try { Class clazz = Class.forName(string); if (!bl) { clazz = clazz.getComponentType(); } return clazz; } catch (ClassNotFoundException classNotFoundException) { throw new NoClassDefFoundError(classNotFoundException.getMessage()); } } private final /* synthetic */ void this() { this.touchEnabled = false; } public BFoxGatewaySpace() { super("foxgatewayspace", null, BOrd.NULL); this.this(); this.gateway = null; } public BFoxGatewaySpace(BGateway bGateway, LexiconText lexiconText) { super(bGateway.getGatewaySchemeId(), lexiconText, bGateway.getGatewaySchemeOrd()); this.this(); this.gateway = bGateway; } static { Class clazz = class$com$tridium$fox$sys$broker$BFoxGatewaySpace; if (clazz == null) { clazz = class$com$tridium$fox$sys$broker$BFoxGatewaySpace = BFoxGatewaySpace.class("[Lcom.tridium.fox.sys.broker.BFoxGatewaySpace;", false); } TYPE = Sys.loadType((Class)clazz); } }