/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 1 8 . ĠOpen L attice , ĠInc . Ċ Ġ* Ċ Ġ* ĠThis Ġprogram Ġis Ġfree Ġsoftware : Ġyou Ġcan Ġredistribute Ġit Ġand / or Ġmodify Ċ Ġ* Ġit Ġunder Ġthe Ġterms Ġof Ġthe ĠGNU ĠGeneral ĠPublic ĠLicense Ġas Ġpublished Ġby Ċ Ġ* Ġthe ĠFree ĠSoftware ĠFoundation , Ġeither Ġversion Ġ 3 Ġof Ġthe ĠLicense , Ġor Ċ Ġ* Ġ( at Ġyour Ġoption ) Ġany Ġlater Ġversion . Ċ Ġ* Ċ Ġ* ĠThis Ġprogram Ġis Ġdistributed Ġin Ġthe Ġhope Ġthat Ġit Ġwill Ġbe Ġuseful , Ċ Ġ* Ġbut ĠWITHOUT ĠANY ĠWARRANTY ; Ġwithout Ġeven Ġthe Ġimplied Ġwarranty Ġof Ċ Ġ* ĠMERCHANTABILITY Ġor ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE . Ġ ĠSee Ġthe Ċ Ġ* ĠGNU ĠGeneral ĠPublic ĠLicense Ġfor Ġmore Ġdetails . Ċ Ġ* Ċ Ġ* ĠYou Ġshould Ġhave Ġreceived Ġa Ġcopy Ġof Ġthe ĠGNU ĠGeneral ĠPublic ĠLicense Ċ Ġ* Ġalong Ġwith Ġthis Ġprogram . Ġ ĠIf Ġnot , Ġsee Ġ< http :// www . gnu . org / licenses />. Ċ Ġ* Ċ Ġ* ĠYou Ġcan Ġcontact Ġthe Ġowner Ġof Ġthe Ġcopyright Ġat Ġsupport @ open l attice . com Ċ Ġ* Ċ Ġ*/ Ċ package Ġcom . open l attice . hazelcast Ċ Ċ import Ġcom . auth 0 . json . mgmt . users . User Ċ import Ġcom . ge ek be ast . rh iz ome . hazelcast . Deleg ated Int List Ċ import Ġcom . hazelcast . core . H azelcast Instance Ċ import Ġcom . hazelcast . map . I Map Ċ import Ġcom . open l attice . apps . App Ċ import Ġcom . open l attice . apps . AppConfig Key Ċ import Ġcom . open l attice . apps . App Type Setting Ċ import Ġcom . open l attice . assembler . Entity Set Assembly Key Ċ import Ġcom . open l attice . assembler . Material ized Entity Set Ċ import Ġcom . open l attice . assembler . Organization Assembly Ċ import Ġcom . open l attice . audit ing . Audit Record Entity Set Configuration Ċ import Ġcom . open l attice . authorization . Access Target Ċ import Ġcom . open l attice . authorization . Ace Key Ċ import Ġcom . open l attice . authorization . Ace Value Ċ import Ġcom . open l attice . authorization . Acl Key Ċ import Ġcom . open l attice . authorization . Acl Key Set Ċ import Ġcom . open l attice . authorization . Sec ur able Principal Ċ import Ġcom . open l attice . authorization . se cur able . Sec ur able ObjectType Ċ import Ġcom . open l attice . co dex . Base 6 4 Media Ċ import Ġcom . open l attice . collabor ations . Collabor ation Ċ import Ġcom . open l attice . collabor ations . Project ed Table Key Ċ import Ġcom . open l attice . collabor ations . Project ed Table Metadata Ċ import Ġcom . open l attice . collections . Collection Template Key Ċ import Ġcom . open l attice . collections . Entity Set Collection Ċ import Ġcom . open l attice . collections . EntityType Collection Ċ import Ġcom . open l attice . data . Entity Data Key Ċ import Ġcom . open l attice . datasets . Sec ur ableObject Metadata Ċ import Ġcom . open l attice . directory . Material ized View Account Ċ import Ġcom . open l attice . edm . Entity Set Ċ import Ġcom . open l attice . edm . type . Association Type Ċ import Ġcom . open l attice . edm . type . EntityType Ċ import Ġcom . open l attice . edm . type . EntityType Property Key Ċ import Ġcom . open l attice . edm . type . EntityType Property Metadata Ċ import Ġcom . open l attice . edm . type . PropertyType Ċ import Ġcom . open l attice . ids . Range Ċ import Ġcom . open l attice . linking . Entity KeyPair Ċ import Ġcom . open l attice . notifications . sms . Sms Entity Set Information Ċ import Ġcom . open l attice . notifications . sms . Sms Information Key Ċ import Ġcom . open l attice . organization . External Column Ċ import Ġcom . open l attice . organization . External Table Ċ import Ġcom . open l attice . organizations . Organization Ċ import Ġcom . open l attice . organizations . Organization Database Ċ import Ġcom . open l attice . organizations . Sorted Principal Set Ċ import Ġcom . open l attice . postgres . map stores . Typed Map Identifier Ċ import Ġcom . open l attice . requests . Status Ċ import Ġcom . open l attice . rh iz ome . Deleg ated Int Set Ċ import Ġcom . open l attice . rh iz ome . hazelcast . Deleg ated String Set Ċ import Ġcom . open l attice . rh iz ome . hazelcast . Deleg ated UUID Set Ċ import Ġcom . open l attice . scheduling . Scheduled Task Ċ import Ġcom . open l attice . sh ut tle . Integration Ċ import Ġcom . open l attice . sh ut tle . Integration Job Ċ import Ġcom . open l attice . transport er . types . Transport er Column Set Ċ import Ġcom . open l attice . organizations . Jdbc Connection Parameters Ċ import Ġjava . util .* Ċ Ċ class ĠH azelcast Map < K , ĠV > Ġinternal Ġconstructor ( val Ġname : ĠString ) Ġ: ĠTyped Map Identifier < K , ĠV > Ġ{ ĊĠĠĠ Ġprivate Ġval Ġchecker Ġ= Ġinstance Checker . check Instance ( name ) ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( checker . ok ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalues Cache . add ( this ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġname (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . checker . check () ĊĠĠĠĠĠĠĠ Ġreturn Ġname ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠtoString (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġname ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Map ( hazelcast : ĠH azelcast Instance ): ĠI Map < K , ĠV > Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . checker . check () ĊĠĠĠĠĠĠĠ Ġreturn Ġh azelcast . getMap ( name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġvalues Cache : ĠMutable List < H azelcast Map < *, Ġ* >> Ġ= ĠArrayList () ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġinstance Checker Ġ= ĠUnique Instance Manager ( H azelcast Map :: class . java ) ĊĊĠĠĠĠĠĠĠ Ġ// Ġ@ formatter : off ĊĊĠĠĠĠĠĠĠ Ġ// ĠWhen Ġadding Ġnew Ġentries Ġto Ġthis Ġlist , Ġplease Ġmake Ġsure Ġto Ġkeep Ġit Ġsorted Ġand Ġkeep Ġthe Ġname Ġin Ġsync ĊĊĠĠĠĠĠĠĠ Ġ// Ġ@ formatter : off ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠACL _ KEYS Ġ= ĠH azelcast Map < String , ĠUUID >(" ACL _ KEYS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠALLOW ED _ EMAIL _ DOMAIN S Ġ= ĠH azelcast Map < UUID , ĠDeleg ated String Set >(" ALLOWED _ EMAIL _ DOMAIN S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠAPP _ CONFIG S Ġ= ĠH azelcast Map < AppConfig Key , ĠApp Type Setting >(" APP _ CONFIG S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠAP PS Ġ= ĠH azelcast Map < UUID , ĠApp >(" APPS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠAS SE MB LIES Ġ= ĠH azelcast Map < UUID , ĠOrganization Assembly >(" AS SE MB LIES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠASS OCI ATION _ TYPES Ġ= ĠH azelcast Map < UUID , ĠAssociation Type >(" ASS OCI ATION _ TYPES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠA UD IT _ RECORD _ ENTITY _ SETS Ġ= ĠH azelcast Map < Acl Key , ĠAudit Record Entity Set Configuration >(" AUDIT _ RECORD _ ENTITY _ SETS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠCO DEX _ LOCK S Ġ= ĠH azelcast Map < Sms Information Key , ĠLong >(" CODE X _ LOCK S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠCO DEX _ MEDIA Ġ= ĠH azelcast Map < UUID , ĠBase 6 4 Media >(" CODE X _ MEDIA ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠCOL LAB OR ATIONS Ġ= ĠH azelcast Map < UUID , ĠCol labor ation >(" COLL AB OR ATIONS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠDB _ CRE DS Ġ= ĠH azelcast Map < Acl Key , ĠMaterial ized View Account >(" DB _ CRE DS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠDE LETED _ ENTITY _ SETS Ġ= ĠH azelcast Map < UUID , ĠDeleg ated Int Set >(" DELETED _ ENTITY _ SETS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠENT ITY _ SET _ COLLECTION _ CONFIG Ġ= ĠH azelcast Map < Collection Template Key , ĠUUID >(" ENTITY _ SET _ COLLECTION _ CONFIG ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠENT ITY _ SET _ COLLECTION S Ġ= ĠH azelcast Map < UUID , ĠEntity Set Collection >(" ENTITY _ SET _ COLLECTION S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠENT ITY _ SETS Ġ= ĠH azelcast Map < UUID , ĠEntity Set >(" ENTITY _ SETS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠENT ITY _ TYPE _ COLLECTION S Ġ= ĠH azelcast Map < UUID , ĠEntityType Collection >(" ENTITY _ TYPE _ COLLECTION S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠENT ITY _ TYPE _ PROPERTY _ METADATA Ġ= ĠH azelcast Map < EntityType Property Key , ĠEntityType Property Metadata >(" ENTITY _ TYPE _ PROPERTY _ METADATA ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠENT ITY _ TYPES Ġ= ĠH azelcast Map < UUID , ĠEntityType >(" ENTITY _ TYPES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠEXTER NAL _ PERMISSION _ RO LES Ġ= ĠH azelcast Map < Access Target , ĠPair < String , ĠUUID >> (" EXTERNAL _ PERMISSION _ RO LES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠEXTER NAL _ COLUMNS Ġ= ĠH azelcast Map < UUID , ĠExternal Column >(" EXTERNAL _ COLUMNS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠEXTER NAL _ TABLE S Ġ= ĠH azelcast Map < UUID , ĠExternal Table >(" EXTERNAL _ TABLE S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠID _ GENER ATION Ġ= ĠH azelcast Map < Long , ĠRange >(" ID _ GENER ATION ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠINDEX ING _ JOB S Ġ= ĠH azelcast Map < UUID , ĠDeleg ated UUID Set >(" INDEX ING _ JOB S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠINDEX ING _ LOCK S Ġ= ĠH azelcast Map < UUID , ĠLong >(" INDEX ING _ LOCK S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠINDEX ING _ PROGRESS Ġ= ĠH azelcast Map < UUID , ĠUUID >(" INDEX ING _ PROGRESS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠINDEX ING _ PARTITION _ LIST Ġ= ĠH azelcast Map < UUID , ĠDeleg ated Int List >(" INDEX ING _ PARTITION _ LIST ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠINDEX ING _ PARTITION _ PROGRESS Ġ= ĠH azelcast Map < UUID , ĠInt >(" INDEX ING _ PARTITION _ PROGRESS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠINDEX ING _ GRAPH _ PROCESS ING Ġ= ĠH azelcast Map < UUID , ĠLong >(" INDEX ING _ GRAPH _ PROCESS ING ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠIN TEGR ATION _ JOB S Ġ= ĠH azelcast Map < UUID , ĠIntegration Job >(" INTEGR ATION _ JOB S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠIN TEGR ATIONS Ġ= ĠH azelcast Map < String , ĠIntegration >(" INTEGR ATIONS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠLE G ACY _ PERMISSION S Ġ= ĠH azelcast Map < Ace Key , ĠA ce Value >(" LEG ACY _ PERMISSION S ") Ġ// Ġneeded Ġfor Ġmigration ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠLINK ING _ FEED BACK Ġ= ĠH azelcast Map < Entity KeyPair , ĠBoolean >(" LINK ING _ FEED BACK ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠLINK ING _ INDEX ING _ LOCK S Ġ= ĠH azelcast Map < UUID , ĠLong >(" LINK ING _ INDEX ING _ LOCK S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠLINK ING _ LOCK S Ġ= ĠH azelcast Map < Entity Data Key , ĠLong >(" LINK ING _ LOCK S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠLONG _ IDS Ġ= ĠH azelcast Map < String , ĠLong >(" LONG _ IDS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠM ATER IAL IZED _ ENTITY _ SETS Ġ= ĠH azelcast Map < Entity Set Assembly Key , ĠMaterial ized Entity Set >(" MAT ERIAL IZED _ ENTITY _ SETS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠNAMES Ġ= ĠH azelcast Map < UUID , ĠString >(" NAMES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠOBJECT _ METADATA Ġ= ĠH azelcast Map < Acl Key , ĠSec ur ableObject Metadata >(" OBJECT _ METADATA ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠOR GAN IZATION _ DATABASE S Ġ= ĠH azelcast Map < UUID , ĠOrganization Database >(" ORG AN IZATION _ DATABASE S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠOR GAN IZ ATIONS Ġ= ĠH azelcast Map < UUID , ĠOrganization >(" ORG AN IZ ATIONS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠPER MISSION S Ġ= ĠH azelcast Map < Ace Key , ĠA ce Value >(" PERMISSION S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠPR INC IP AL _ TRE ES Ġ= ĠH azelcast Map < Acl Key , ĠA cl Key Set >(" PR INC IP AL _ TRE ES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠPR INC IP ALS Ġ= ĠH azelcast Map < Acl Key , ĠSec ur able Principal >(" PR INC IP ALS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠPROJECT ED _ TABLE S Ġ= ĠH azelcast Map < Project ed Table Key , ĠProject ed Table Metadata >(" PROJECT ED _ TABLE S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠPROPERTY _ TYPES Ġ= ĠH azelcast Map < UUID , ĠProperty Type >(" PROPERTY _ TYPES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠREQUEST S Ġ= ĠH azelcast Map < Ace Key , ĠStatus >(" REQUEST S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠRES OL VED _ PR INC IP AL _ TRE ES Ġ= ĠH azelcast Map < String , ĠSorted Principal Set >(" RESOL VED _ PR INC IP AL _ TRE ES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠS CH ED UL ED _ TASK _ LOCK S Ġ= ĠH azelcast Map < UUID , ĠLong >(" SCHEDUL ED _ TASK _ LOCK S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠS CH ED UL ED _ TASK S Ġ= ĠH azelcast Map < UUID , ĠScheduled Task >(" SCHEDUL ED _ TASK S ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠS CH EM AS Ġ= ĠH azelcast Map < String , ĠDeleg ated String Set >(" SCH EM AS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠSE CUR ABLE _ OBJECT _ TYPES Ġ= ĠH azelcast Map < Acl Key , ĠSec ur able ObjectType >(" SE CUR ABLE _ OBJECT _ TYPES ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠSE CUR ABLE _ PR INC IP ALS Ġ= ĠH azelcast Map < String , ĠSec ur able Principal >(" SE CUR ABLE _ PR INC IP ALS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠSMS _ INFORMATION Ġ= ĠH azelcast Map < Sms Information Key , ĠS ms Entity Set Information >(" SMS _ INFORMATION ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠTRAN SP ORT ER _ DB _ COLUMNS Ġ= ĠH azelcast Map < UUID , ĠTransport er Column Set >(" TRANSPORT ER _ DB _ COLUMNS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠUSER S Ġ= ĠH azelcast Map < String , ĠUser >(" USERS ") ĊĠĠĠĠĠĠĠ Ġ@ Jvm Field Ġval ĠW ARE HO USE S Ġ= ĠH azelcast Map < UUID , ĠJdbc Connection Parameters >(" WARE HO USE S ") ĊĊĠĠĠĠĠĠĠ Ġ// Ġ@ formatter : on ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠ Ġfun Ġvalues (): ĠArray < H azelcast Map < *, Ġ* >> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġvalues Cache . to Typed Array () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠ Ġfun Ġvalue Of ( name : ĠString ): ĠH azelcast Map < *, Ġ*> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfor Ġ( e Ġin Ġvalues Cache ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( e . name Ġ== Ġname ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġe ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠIllegalArgumentException (" Map Ġwith Ġname Ġ\"$ name \" Ġnot Ġfound ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }