text
stringlengths
1
1.05M
#!/usr/bin/env bash ./app/wait-for-it.sh kanban-project:45964 -t 0 --strict -- ./app/wait-for-it.sh management-service:26349 -t 0 \ --strict -- echo "STARTING APPLICATION V1 DELEGATOR .jar..." && \ java -Xmx200m -Dspring.profiles.active=prod -jar /app/v1-delegator.jar
var toolsPage_entitysetMapping = { "chartTypes": ["bubbles", "mountain", "map", "linechart", "barrank", "spreadsheet"], "entitySets": { "geo": "country" } }
<gh_stars>0 import { GridItemEvent } from "../grid-item-types"; // 根据key获取目标 export function getLayoutItem(layout: GridItemEvent[], id: string) { for (let i = 0, len = layout?.length; i < len; i++) { if (layout[i].uniqueKey === id) return layout[i]; } } // 检测是否碰撞 export const colslision = (a: GridItemEvent, b: GridItemEvent) => { if (a.GridX === b.GridX && a.GridY === b.GridY && a.w === b.w && a.h === b.h) { return true } if (a.GridX + a.w <= b.GridX) return false if (a.GridX >= b.GridX + b.w) return false if (a.GridY + a.h <= b.GridY) return false if (a.GridY >= b.GridY + b.h) return false return true } /**获取layout中,item第一个碰撞到的物体 */ export const getFirstcolslison = (layout: GridItemEvent[], item: GridItemEvent) => { for (let i = 0, length = layout.length; i < length; i++) { if (colslision(layout[i], item)) { return layout[i] } } return null } // 检测碰撞进行重排 export const layoutCheck = function () { let caches: any = {}; const _layoutCheck = function (layout: GridItemEvent[], layoutItem: GridItemEvent) { if (layoutItem.GridX === caches.GridX && layoutItem.GridY === caches.GridY && layoutItem.w === caches.w && layoutItem.h === caches.h) { return layout; } caches = { ...layoutItem }; const uniqueKey = layoutItem?.uniqueKey; const newLayout = []; for (let i = 0; i < layout?.length; i++) { const item = layout?.[i]; // 非拖拽元素 if (item?.uniqueKey !== uniqueKey) { // 当元素和移动元素碰撞时 if (colslision(item, layoutItem) && !item?.forbid) { let offsetY; if (layoutItem.GridY > item.GridY && layoutItem.GridY < item.GridY + item.h) { offsetY = item.GridY; } else { offsetY = item.GridY + 1; } const newItem = { ...item, GridY: offsetY } newLayout?.push(newItem); } else { newLayout?.push(item); } } else { const newItem = { ...item, ...layoutItem }; newLayout?.push(newItem); } } return newLayout; } return _layoutCheck; }(); export const sortLayout = (layout: GridItemEvent[]) => { const newLayout = JSON.parse(JSON.stringify(layout || [])); return newLayout?.sort((a: GridItemEvent, b: GridItemEvent) => { if (a.GridY > b.GridY || (a.GridY === b.GridY && a.GridX > b.GridX)) { if (a.forbid) return 0 // 为了静态,排序的时候尽量把静态的放在前面 return 1 } else if (a.GridY === b.GridY && a.GridX === b.GridX) { return 0 } return -1 }); } export function bottom(layout: GridItemEvent[]): number { let max = 0, bottomY; for (let i = 0, len = layout.length; i < len; i++) { bottomY = layout[i].GridY + layout[i].h; if (bottomY > max) max = bottomY; } return max; } /** * 压缩单个元素,使得每一个元素都会紧挨着边界或者相邻的元素 * @param {*} finishedLayout 压缩完的元素会放进这里来,用来对比之后的每一个元素是否需要压缩 * @param {*} item */ export const compactItem = (finishedLayout: GridItemEvent[], item: GridItemEvent) => { if (item.forbid) return item; const newItem = { ...item, uniqueKey: item.uniqueKey + '' } if (finishedLayout.length === 0) { return { ...newItem, GridY: 0 } } /** * 类似一个递归调用 */ while (true) { let Firstcolslison = getFirstcolslison(finishedLayout, newItem) if (Firstcolslison) { /**第一次发生碰撞时,就可以返回了 */ newItem.GridY = Firstcolslison.GridY + Firstcolslison.h return newItem } newItem.GridY-- if (newItem.GridY < 0) return { ...newItem, GridY: 0 }/**碰到边界的时候,返回 */ } } /** * 压缩layout,使得每一个元素都会紧挨着边界或者相邻的元素 * @param {*} layout */ export const compactLayout = function () { let _cache: any = { }; return function (layout: GridItemEvent[], movingItem?: GridItemEvent) { if (movingItem) { if (_cache.GridX === movingItem.GridX && _cache.GridY === movingItem.GridY && _cache.w === movingItem.w && _cache.h === movingItem.h && _cache.uniqueKey === movingItem.uniqueKey ) { return layout; } _cache = movingItem; } let sorted = sortLayout(layout) //把静态的放在前面 const needCompact = Array(layout.length) const compareList = [] for (let i = 0, length = sorted.length; i < length; i++) { let finished = compactItem(compareList, sorted[i]) if (movingItem) { if (movingItem.uniqueKey === finished.uniqueKey) { movingItem.GridX = finished.GridX; movingItem.GridY = finished.GridY; } } compareList.push(finished) needCompact[i] = finished } return needCompact; } }() // grid位置边界 export const checkInContainer = (GridX: number, GridY: number, cols: number, w: number) => { /**防止元素出container */ if (GridX + w > cols - 1) GridX = cols - w //右边界 if (GridX < 0) GridX = 0//左边界 if (GridY < 0) GridY = 0//上边界 return { GridX, GridY } } // grid宽高边界 export const checkWidthHeight = (GridX: number, w: number, h: number, cols: number) => { let newW = w; let newH = h; if (GridX + w > cols - 1) newW = cols - GridX //右边界 if (w < 1) newW = 1; if (h < 1) newH = 1; return { w: newW, h: newH } } // 边界纠正 export const correctLayout = (layout: GridItemEvent[], cols: number) => { let copy = [...layout]; for (let i = 0; i < layout?.length - 1; i++) { copy[i].GridX = checkInContainer(copy[i].GridX, copy[i].GridY, cols, copy[i].w)?.GridX; copy[i].GridY = checkInContainer(copy[i + 1].GridX, copy[i + 1].GridY, cols, copy[i + 1].w)?.GridY; if (colslision(copy[i], copy[i + 1])) { copy = layoutCheck(copy, <GridItemEvent>copy[i]) } } return copy; }
git pull; #kubectl delete ds filebeat; #kubectl delete deployment logstash -n default; kubectl apply -f kubefiles/ -R --namespace=default;
<reponame>edalvb/hdfisme<gh_stars>0 import { Request, Response } from "express"; import jwt = require('jsonwebtoken'); import pool from "../../utils/database"; const bcrypt = require('bcrypt'); class AccesoController { /** * Obtenemos una respuesta que contiene "usuario: 1 | 0" * - Si existe usuarios registrados devolverá 1 sino 0 */ public async verificarUsuarioRol(req: Request, res: Response) { const user = (await pool.query('SELECT fn_existeusuarios() AS usuario'))[0]; console.log(user); res.status(200).json(user); } public async acceso(req: Request, res: Response) { // Extraigo los datos usuario y contraseña del cuerpo de lo que retorne const { usuario, contrasena } = req.body; // Busca al usuario por el nombre de usuario const user = (await pool.query('CALL get_usuario(?)', usuario))[0][0]; // Si no encuentra al usuario retorna un codigo de estado 401 y un mensaje if (!user) return res.status(401).send({ quien: 'usuario', mensaje: "No pude encontrar tu cuenta en HDFISME" }); console.log(contrasena); console.log(user.contrasena); // Cargue hash de su contraseña DB. const match = await bcrypt.compare(contrasena, user.contrasena); console.log(match); if (match) { // Los datos que serán guardados en el token const payload = { _id: user.idusuario, rol: user.idrol } // devuelve un toke cuando los datos del usuario son correctos // Firmamos el token con 1 hora de caducidad. const token = jwt.sign(payload, 'secret', { expiresIn: '1h' }); // retorna un codigo de estado 200 y que devuelva el token que el usuario ha obtenido. return res.status(200).json({ token }) } return res.status(401).send({ quien: 'contrasena', mensaje: "Contraseña incorrecta" }); } } const cController = new AccesoController(); export default cController;
<reponame>yangzhiqian/DanmakuFlameMaster<gh_stars>1-10 package master.flame.danmaku.gl; import android.opengl.GLES20; import android.os.Handler; import android.os.HandlerThread; import android.os.Looper; import android.os.Message; import android.util.Log; import android.util.Pair; import java.util.Comparator; import java.util.TreeSet; import java.util.concurrent.atomic.AtomicInteger; import master.flame.danmaku.controller.DrawTask; import master.flame.danmaku.controller.IDrawTask; import master.flame.danmaku.danmaku.model.BaseDanmaku; import master.flame.danmaku.danmaku.model.DanmakuTimer; import master.flame.danmaku.danmaku.model.ICacheManager; import master.flame.danmaku.danmaku.model.IDanmakus; import master.flame.danmaku.danmaku.model.IDrawingCache; import master.flame.danmaku.danmaku.model.android.DanmakuContext; import master.flame.danmaku.danmaku.model.android.Danmakus; import master.flame.danmaku.danmaku.model.android.DrawingCacheHolder; import master.flame.danmaku.danmaku.util.DanmakuUtils; import master.flame.danmaku.gl.glview.GLUtils; import master.flame.danmaku.gl.wedget.GLShareable; import tv.cjump.jni.NativeBitmapFactory; import static master.flame.danmaku.danmaku.model.IDanmakus.ST_BY_LIST; /** * 创建人:yangzhiqian * 创建时间:2018/7/11 14:20 * 备注: */ public class GLDrawTask extends DrawTask { private static final boolean DEBUG = Constants.DEBUG_GLDRAWTASK; private static final String TAG = "GLDrawTask"; private GLCacheManager mCacheManager; private AndroidGLDisplayer mDiplayer; private Looper mLooper; public GLDrawTask(DanmakuTimer timer, DanmakuContext context, TaskListener taskListener) { this(null, timer, context, taskListener); } public GLDrawTask(Looper lopper, DanmakuTimer timer, DanmakuContext context, TaskListener taskListener) { super(timer, context, taskListener); NativeBitmapFactory.loadLibs(); mLooper = lopper; mCacheManager = new GLCacheManager(); mRenderer.setCacheManager(mCacheManager); //此GLDrawTask必须配合AndroidGLDisplayer使用 mDiplayer = (AndroidGLDisplayer) context.mDisplayer; } @Override public void addDanmaku(BaseDanmaku danmaku) { super.addDanmaku(danmaku); if (mCacheManager != null) { if (DEBUG) { Log.i(TAG, "addDanmaku id = " + danmaku.id); } mCacheManager.addDanmaku(danmaku); } } @Override public void invalidateDanmaku(BaseDanmaku item, boolean remeasure) { super.invalidateDanmaku(item, remeasure); if (mCacheManager != null) { if (DEBUG) { Log.i(TAG, "invalidateDanmaku id = " + item.id); } mCacheManager.rebuildDanmaku(item); } } @Override public void removeAllDanmakus(boolean isClearDanmakusOnScreen) { IDanmakus subnew = subnew(0, Long.MAX_VALUE); super.removeAllDanmakus(isClearDanmakusOnScreen); if (DEBUG) { Log.i(TAG, "removeAllDanmakus isClearDanmakusOnScreen = " + isClearDanmakusOnScreen + "\ttotal size = " + (subnew == null ? 0 : subnew.size())); } if (isClearDanmakusOnScreen) { mDiplayer.getRenderer().getGLDanmakuHandler().removeAllDanmaku(); } if (mCacheManager != null) { mCacheManager.removeAllCachedDanmaku(); } else if (subnew != null && !subnew.isEmpty()) { //此处不应该被调用到 Log.w(TAG, "此处不应该被调用到,请检查一下代码逻辑"); subnew.forEach(new IDanmakus.Consumer<BaseDanmaku, Void>() { @Override public int accept(BaseDanmaku danmaku) { IDrawingCache<?> cache = danmaku.getDrawingCache(); if (cache != null) { cache.destroy(); danmaku.cache = null; } return ACTION_CONTINUE; } }); } } private IDanmakus subnew(long start, long end) { IDanmakus subnew; int exceptionTimes = 0; while (exceptionTimes < 3) { try { //subnew调用不安全,可能会抛异常 subnew = danmakuList.subnew(start, end); return subnew; } catch (Exception e) { exceptionTimes++; } } return null; } @Override protected void onDanmakuRemoved(BaseDanmaku danmaku) { super.onDanmakuRemoved(danmaku); if (danmaku == null) { return; } if (DEBUG) { Log.i(TAG, "onDanmakuRemoved id = " + danmaku.id); } mDiplayer.getRenderer().getGLDanmakuHandler().removeDamaku(danmaku); if (mCacheManager != null) { mCacheManager.removeDanmaku(danmaku); } else { //此处不应该被调用到 Log.w(TAG, "此处不应该被调用到,请检查一下代码逻辑"); IDrawingCache<?> cache = danmaku.getDrawingCache(); if (cache != null) { cache.destroy(); danmaku.cache = null; } } } @Override public void start() { super.start(); if (DEBUG) { Log.i(TAG, "GLDrawTask start"); } NativeBitmapFactory.loadLibs(); if (mCacheManager == null) { mCacheManager = new GLCacheManager(); mRenderer.setCacheManager(mCacheManager); } mCacheManager.start(); } @Override public void onPlayStateChanged(int state) { super.onPlayStateChanged(state); if (DEBUG) { Log.i(TAG, "onPlayStateChanged state = " + state); } if (mCacheManager != null) { mCacheManager.onPlayStateChanged(state); } } @Override public void quit() { super.quit(); if (DEBUG) { Log.i(TAG, "GLDrawTask quit"); } long startTime = System.nanoTime(); mRenderer.setCacheManager(null); if (mCacheManager != null) { mCacheManager.quit(); mCacheManager = null; } NativeBitmapFactory.releaseLibs(); if (DEBUG) { Log.i(TAG, "GLDrawTask quit time = " + (System.nanoTime() - startTime)); } } public class GLCacheManager implements ICacheManager { private static final String TAG = "GLCacheManager"; private static final boolean DEBUG = Constants.DEBUG_GLCACHEMANAGER; private HandlerThread mThread; private GLCacheDrawHandler mHandler; private final Object mMonitor = new Object(); private boolean mExited = false; private final TreeSet<Pair<BaseDanmaku, Integer>> mCacheTasks = new TreeSet<>(new Comparator<Pair<BaseDanmaku, Integer>>() { @Override public int compare(Pair<BaseDanmaku, Integer> o1, Pair<BaseDanmaku, Integer> o2) { if (o2.first == o1.first) { return 0; } return DanmakuUtils.compare(o1.first, o2.first); } }); /** * 存储已经缓存过的弹幕,里面包含bitmap和纹理,所以必须保证这些弹幕以后做一次释放操作,否则会有内存泄漏 */ private final Danmakus mCachedDanmakus = new Danmakus(ST_BY_LIST); @Override public void addDanmaku(BaseDanmaku danmaku) { if (mHandler != null && danmaku != null) { if (DEBUG) { Log.i(TAG, "addDanmaku id = " + danmaku.id); } synchronized (mCacheTasks) { mCacheTasks.add(new Pair<>(danmaku, GLCacheDrawHandler.ADD_DANMAKU)); mHandler.sendEmptyMessage(GLCacheDrawHandler.HANDLE_DANMAKU); } } } @Override public void buildDanmakuCache(BaseDanmaku danmaku) { //不需要做任何操作,等待异步处理完成 } void rebuildDanmaku(BaseDanmaku danmaku) { if (mHandler != null && danmaku != null) { if (DEBUG) { Log.i(TAG, "rebuildDanmaku id = " + danmaku.id); } synchronized (mCacheTasks) { mCacheTasks.add(new Pair<>(danmaku, GLCacheDrawHandler.REBUILD_DANMAKU)); mHandler.sendEmptyMessage(GLCacheDrawHandler.HANDLE_DANMAKU); } } } void removeDanmaku(BaseDanmaku danmaku) { if (mHandler != null) { if (DEBUG) { Log.i(TAG, "removeCachedDanmaku id = " + danmaku.id); } synchronized (mCacheTasks) { mCacheTasks.add(new Pair<>(danmaku, GLCacheDrawHandler.REMOVE_DANMAKU)); mHandler.sendEmptyMessage(GLCacheDrawHandler.HANDLE_DANMAKU); } } } void removeAllCachedDanmaku() { if (mHandler != null) { if (DEBUG) { Log.i(TAG, "removeAllCachedDanmaku"); } synchronized (mCacheTasks) { mCacheTasks.clear(); mHandler.obtainMessage(GLCacheDrawHandler.REMOVE_ALL_CACHED_DANMAKU).sendToTarget(); } } } public void start() { if (DEBUG) { Log.i(TAG, "start"); } Looper workLooper = mLooper; if (workLooper == null) { //开启handler if (mThread == null) { mThread = new HandlerThread("GLCacheManager Cache-Building Thread"); mThread.start(); } workLooper = mThread.getLooper(); } if (mHandler == null) { mHandler = new GLCacheDrawHandler(workLooper); } mExited = false; mHandler.start(); } public void pause() { if (DEBUG) { Log.i(TAG, "pause"); } if (mHandler != null) { mHandler.pause(); } } void onPlayStateChanged(int state) { if (DEBUG) { Log.i(TAG, "onPlayStateChanged state = " + state); } if (state == IDrawTask.PLAY_STATE_PAUSE) { pause(); } else if (state == IDrawTask.PLAY_STATE_PLAYING) { start(); } } public void quit() { if (DEBUG) { Log.i(TAG, "quit "); } synchronized (mCacheTasks) { mCacheTasks.clear(); } long startTime = System.nanoTime(); if (mHandler != null) { mHandler.pause(); mHandler.removeCallbacksAndMessages(null); mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(GLCacheDrawHandler.QUIT)); mHandler = null; } if (mThread != null) { try { mThread.join(); } catch (InterruptedException e) { e.printStackTrace(); } mThread.quit(); mThread = null; } else { synchronized (mMonitor) { while (!mExited) { try { mMonitor.wait(); } catch (InterruptedException ignore) { } } } } if (DEBUG) { Log.i(TAG, "quit time = " + (System.nanoTime() - startTime)); } } private class GLCacheDrawHandler extends Handler { private static final String TAG = "GLCacheDrawHandler"; private static final boolean DEBUG = Constants.DEBUG_GLCACHEDRAWHANDLER; private static final int HANDLE_DANMAKU = 10000; private static final int ADD_DANMAKU = 0x1; private static final int REBUILD_DANMAKU = 0x2; private static final int REMOVE_DANMAKU = 0x3; private static final int REMOVE_ALL_CACHED_DANMAKU = 0x4; /** * 定时清理弹幕缓存和构建将来的弹幕 */ private static final int DISPATCH_ACTIONS = 0x5; private static final int QUIT = 0x6; private GLShareable.GLShareHelper mGLShareHelper; private boolean mPause = true; /** * 构建将来缓存的参数 */ private long mFutureBeginOffsetBegin = -mContext.mDanmakuFactory.MAX_DANMAKU_DURATION; private long mFutureBeginOffsetEnd = 1000; private long mHandleTime = 100000000;//每次最多构建100ms private long mDispatchActionsTimeGap = 1000;//1秒中轮询一次缓存和构建 GLCacheDrawHandler(Looper looper) { super(looper); } @Override public void handleMessage(Message msg) { int what = msg.what; if (DEBUG) { Log.i(TAG, "handleMessage what = " + what); } if (mPause && what != QUIT) { //对于停止状态,只处理QUIT操作 return; } if (mGLShareHelper == null && what != QUIT) { //共享渲染线程的glcontext int tryTimes = 0; //尝试三次 while (tryTimes++ < 3 && (mGLShareHelper = GLShareable.GLShareHelper.makeSharedGlContext(mDiplayer.getRenderer())) == null) { try { Thread.sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } } if (mGLShareHelper == null) { return; } } switch (what) { case DISPATCH_ACTIONS: clearAllCachedDanmakus(false); //todo 构建将来需要显示弹幕缓存,当前问题是,如果购将这些缓存会耗时比较大 //buildFutureDanmaku(); removeMessages(DISPATCH_ACTIONS); sendEmptyMessageDelayed(DISPATCH_ACTIONS, mDispatchActionsTimeGap); break; case HANDLE_DANMAKU: mHandler.removeMessages(GLCacheDrawHandler.HANDLE_DANMAKU); int size = 0; long startTime = System.nanoTime(); while ((System.nanoTime() - startTime < mHandleTime) && (size = handleDanmaku()) > 0) { if (DEBUG) { Log.d(TAG, "remain size=" + size); } } if (size > 0) { //还有 mHandler.sendEmptyMessage(GLCacheDrawHandler.HANDLE_DANMAKU); } break; case REMOVE_ALL_CACHED_DANMAKU: clearAllCachedDanmakus(true); break; case QUIT: removeCallbacksAndMessages(null); clearAllCachedDanmakus(true); GLShareable.GLShareHelper.release(); mGLShareHelper = null; if (mThread != null) { this.getLooper().quit(); } else { synchronized (mMonitor) { mExited = true; mMonitor.notifyAll(); } } break; } } public void start() { if (DEBUG) { Log.i(TAG, "start"); } mPause = false; removeMessages(DISPATCH_ACTIONS); //开启缓存操作 obtainMessage(DISPATCH_ACTIONS).sendToTarget(); } public void pause() { if (DEBUG) { Log.i(TAG, "pause"); } mPause = true; //pause默认没有glcontext mGLShareHelper = null; } private int handleDanmaku() { int remainSize; Pair<BaseDanmaku, Integer> cacheTask; synchronized (mCacheTasks) { cacheTask = mCacheTasks.pollFirst(); remainSize = mCacheTasks.size(); } if (cacheTask != null) { switch (cacheTask.second) { case ADD_DANMAKU: if (buildDanmakuCache(cacheTask.first, false)) { //通知gl bitmap准备好了 mCachedDanmakus.addItem(cacheTask.first); mDiplayer.getRenderer().getGLDanmakuHandler().addDanmaku((cacheTask.first)); } break; case REBUILD_DANMAKU: if (buildDanmakuCache(cacheTask.first, true)) { mCachedDanmakus.addItem((cacheTask.first)); mDiplayer.getRenderer().getGLDanmakuHandler().addDanmaku(cacheTask.first); } break; case REMOVE_DANMAKU: if (destroyCache(cacheTask.first, true)) { mCachedDanmakus.removeItem(cacheTask.first); } break; } } return remainSize; } private boolean buildDanmakuCache(BaseDanmaku item, boolean force) { if (mPause) { return false; } if (!force) { if (item.mGLTextureId != 0) { return false; } if (DanmakuUtils.isCacheOk(item)) { //已经被映射到纹理了或者缓存有效 return createTexture(item); } } //先销毁先前的缓存,防止内存泄漏 if (destroyCache(item, true)) { mCachedDanmakus.removeItem(item); } // measure if (!item.isMeasured()) { item.measure(mDisp, true); } if (!item.isPrepared()) { item.prepare(mDisp, true); } if (DEBUG) { Log.i(TAG, "buildDanmakuCache id = " + item.id); } //构建缓存 item.cache = DanmakuUtils.buildDanmakuDrawingCache(item, mDisp, null, mContext.cachingPolicy.bitsPerPixelOfCache); return createTexture(item); } private boolean destroyCache(BaseDanmaku item, boolean includeTexture) { if (item == null) { return false; } if (includeTexture) { //销毁之前的纹理 destroyTexture(item); } IDrawingCache<?> cache = item.getDrawingCache(); if (cache == null) { return false; } if (DEBUG) { Log.i(TAG, "destroyCache id = " + item.id); } cache.destroy(); item.cache = null; return true; } private boolean createTexture(BaseDanmaku item) { if (item == null) { return false; } destroyTexture(item); //更新对应的纹理id为失效状态 IDrawingCache<?> drawingCache = item.cache; if (drawingCache == null || drawingCache.get() == null) { return false; } DrawingCacheHolder holder = (DrawingCacheHolder) drawingCache.get(); if (holder == null || holder.bitmap == null || holder.bitmap.isRecycled()) { return false; } item.mGLTextureId = GLUtils.createBitmapTexture2D(holder.bitmap); item.mTextureWidth = holder.bitmap.getWidth(); item.mTextureHeight = holder.bitmap.getHeight(); if (item.mGLTextureId != 0) { //已经成功创建了纹理,可以删除bitmap缓存了 destroyCache(item, false); } if (DEBUG) { Log.d(TAG, "createTexture textid=" + item.mGLTextureId); } return true; } private void destroyTexture(BaseDanmaku item) { if (item == null) { return; } if (item.mGLTextureId != 0) { //销毁之前的纹理 if (DEBUG) { Log.d(TAG, "destroyTexture textid=" + item.mGLTextureId); } GLES20.glDeleteTextures(1, new int[]{item.mGLTextureId}, 0); item.mGLTextureId = 0; } } private void buildFutureDanmaku() { long begin = mTimer.currMillisecond + mFutureBeginOffsetBegin; long end = mTimer.currMillisecond + mFutureBeginOffsetEnd; //拉取构建时间内的弹幕 IDanmakus danmakus = subnew(begin, end); if (danmakus == null || danmakus.isEmpty()) { return; } final AtomicInteger validBuildSize = new AtomicInteger(0); final AtomicInteger succeedBuildSize = new AtomicInteger(0); final int sizeInScreen = danmakus.size(); danmakus.forEach(new IDanmakus.DefaultConsumer<BaseDanmaku>() { int orderInScreen = 0; int currScreenIndex = 0; @Override public int accept(BaseDanmaku item) { if (mPause) { return ACTION_BREAK; } if (!item.hasPassedFilter()) { mContext.mDanmakuFilters.filter(item, orderInScreen, sizeInScreen, null, true, mContext); } if (item.priority == 0 && item.isFiltered()) { return ACTION_CONTINUE; } if (item.getType() == BaseDanmaku.TYPE_SCROLL_RL) { // 同屏弹幕密度只对滚动弹幕有效 int screenIndex = (int) ((item.getActualTime() - mTimer.currMillisecond) / mContext.mDanmakuFactory.MAX_DANMAKU_DURATION); if (currScreenIndex == screenIndex) orderInScreen++; else { orderInScreen = 0; currScreenIndex = screenIndex; } } validBuildSize.incrementAndGet(); if (buildDanmakuCache(item, false)) { succeedBuildSize.incrementAndGet(); mCachedDanmakus.addItem(item); mDiplayer.getRenderer().getGLDanmakuHandler().addDanmaku(item); } return ACTION_CONTINUE; } }); if (DEBUG) { Log.i(TAG, "buildFutureDanmaku validBuildSize = " + validBuildSize.get() + "\t succeedBuildSize = " + succeedBuildSize.get()); } } private void clearAllCachedDanmakus(final boolean force) { if (DEBUG) { Log.i(TAG, "clearAllCachedDanmakus force = " + force + "\t size = " + mCachedDanmakus.size()); } mCachedDanmakus.forEach(new IDanmakus.DefaultConsumer<BaseDanmaku>() { @Override public int accept(BaseDanmaku item) { boolean releaseTexture = item.isTimeOut() || force; destroyCache(item, releaseTexture); return releaseTexture ? ACTION_REMOVE : ACTION_CONTINUE; } }); } } } }
#!/bin/bash # Script that builds wheels for a JAX release on Mac OS X. # Builds wheels for multiple Python versions, using pyenv instead of Docker. # Usage: run from root of JAX source tree as: # build/build_wheels_macos.sh # The wheels will end up in build/dist. # # Requires pyenv, pyenv-virtualenv (e.g., from Homebrew). If you have Homebrew # installed, you can install these with: # brew install pyenv pyenv-virtualenv # # May also need to install XCode command line tools to fix zlib build problem: # https://github.com/pyenv/pyenv/issues/1219 eval "$(pyenv init -)" PLATFORM_TAG="macosx_10_9_x86_64" build_jax () { PY_VERSION="$1" PY_TAG="$2" echo "\nBuilding JAX for Python ${PY_VERSION}, tag ${PY_TAG}" pyenv install -s "${PY_VERSION}" VENV="jax-build-${PY_VERSION}" pyenv virtualenv-delete -f "${VENV}" pyenv virtualenv "${PY_VERSION}" "${VENV}" pyenv activate "${VENV}" # We pin the Numpy wheel to a version < 1.16.0, because Numpy extensions built # at 1.16.0 are not backward compatible to earlier Numpy versions. pip install numpy==1.15.4 scipy==1.2.0 wheel rm -fr build/build python build/build.py cd build python setup.py bdist_wheel --python-tag "${PY_TAG}" --plat-name "${PLATFORM_TAG}" cd .. pyenv deactivate pyenv virtualenv-delete -f "${VENV}" } rm -fr build/dist build_jax 2.7.15 cp27 build_jax 3.5.6 cp35 build_jax 3.6.8 cp36 build_jax 3.7.2 cp37
<reponame>ch1huizong/learning #!/usr/bin/env python # encoding: UTF-8 import thread import time def func(): for i in range(5): print'func' time.sleep(1) thread.exit() thread.start_new(func,()) lock=thread.allocate() print lock.locked() count=0 if lock.acquire(): count+=1 lock.release() time.sleep(6)
import log from "electron-log"; import child_process from "child_process"; import regedit, { RegistryItemCollection } from "regedit"; export async function startRiotClient(isPackaged: boolean) { regedit.setExternalVBSLocation(isPackaged ? "resources/regedit/vbs" : "vbs"); const regPath = [ "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Riot Game valorant.live", ]; regedit.list( regPath, (err: Error | undefined, result: RegistryItemCollection<string[]>) => { if (err) { log.warn("[WINDOWS] Registry error: " + err); } else if (result[regPath[0]].exists) { const uninstallPath = result[regPath[0]].values.UninstallString .value as string; log.info("[WINDOWS] Uninstall Path: " + uninstallPath); if (uninstallPath) child_process.exec(uninstallPath.split(" --uninstall")[0]); } } ); }
make clean do all cd ./appcake2/ ./compile.sh
package main import ( "fmt" "github.com/pvelx/triggerhook" "github.com/pvelx/triggerhook/connection" "github.com/pvelx/triggerhook/contracts" "github.com/pvelx/triggerhook/error_service" "github.com/pvelx/triggerhook/monitoring_service" "path" "time" ) func BuildTriggerHook(monitoring *Monitoring, conn connection.Options) contracts.TriggerHookInterface { eventHandlers := make(map[contracts.Level]func(event contracts.EventError)) baseFormat := "%s MESSAGE:%s METHOD:%s FILE:%s:%d EXTRA:%v\n" for level, format := range map[contracts.Level]string{ contracts.LevelDebug: "DEBUG:" + baseFormat, contracts.LevelError: "ERROR:" + baseFormat, contracts.LevelFatal: "FATAL:" + baseFormat, } { format := format level := level eventHandlers[level] = func(event contracts.EventError) { _, shortMethod := path.Split(event.Method) _, shortFile := path.Split(event.File) fmt.Printf( format, event.Time.Format("2006-01-02 15:04:05.000"), event.EventMessage, shortMethod, shortFile, event.Line, event.Extra, ) } } subscriptions := make(map[contracts.Topic]func(event contracts.MeasurementEvent)) for _, topic := range []contracts.Topic{ contracts.PreloadingRate, contracts.CreatingRate, contracts.All, contracts.Preloaded, contracts.ConfirmationRate, contracts.WaitingForSending, contracts.WaitingForConfirmation, contracts.SendingRate, contracts.DeletingRate, } { topic := topic subscriptions[topic] = func(event contracts.MeasurementEvent) { monitoring.AddMeasurement(string(topic), event) } } tasksDeferredService := triggerhook.Build(triggerhook.Config{ Connection: conn, ErrorServiceOptions: error_service.Options{ Debug: false, EventHandlers: eventHandlers, }, MonitoringServiceOptions: monitoring_service.Options{ PeriodMeasure: time.Second, Subscriptions: subscriptions, }, }) return tasksDeferredService }
package io.miti.jarman.util; import io.miti.jarman.data.FileList; import io.miti.jarman.data.JarData; import io.miti.jarman.gui.Jarman; import io.miti.jarman.gui.ListingsPage; import java.awt.Cursor; import java.io.File; import java.io.IOException; import java.util.Enumeration; import java.util.Iterator; import java.util.Map.Entry; import java.util.jar.Attributes; import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.jar.Manifest; import javax.swing.JOptionPane; /** * Process a jar file. * * @author mwallace * @version 1.0 */ public final class JarProcessor { /** * Default constructor. */ public JarProcessor() { super(); } /** * Process the file. * * @param file the file to process * @param recurse whether to save the external jars referenced by the manifest */ public void processFile(final File file, final boolean recurse) { // Show busy cursor final Cursor cursor = Jarman.getApp().getFrame().getCursor(); Jarman.getApp().getFrame().setCursor( Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); // Reset the data cache and save the jar file JarData.reset(); ListingsPage.getInstance().resetOptions(); JarData.getInstance().setJarFile(file); // Save manifest entries boolean result = getJarAttributes(file); if (!result) { // Show the previous cursor Jarman.getApp().getFrame().setCursor(cursor); // This is a bad file JOptionPane.showMessageDialog(Jarman.getApp().getFrame(), "The file appears to be invalid", "Error Opening File", JOptionPane.ERROR_MESSAGE); JarData.getInstance().setJarFile(null); Jarman.getApp().updateFileInfo(); return; } // Save the files used by the jar getJarDataFiles(file, recurse); // Fire a table data change JarData.getInstance().resetTables(false); Jarman.getApp().updateFileInfo(); // Update the tabs in the frame Jarman.getApp().updateTabsForJar(); // Show the previous cursor Jarman.getApp().getFrame().setCursor(cursor); } /** * Get the jar files in the jar's class path (from the manifest). * * @param file the parent jar file * @param recurse whether to save the external jars referenced by the manifest */ private void getJarDataFiles(final File file, final boolean recurse) { // Save the file that was opened saveJarData(file, true); // Iterate over the referenced jar files Iterator<File> paths = JarData.getInstance().getPath(); if (paths != null) { while (paths.hasNext()) { File path = paths.next(); saveJarData(path, recurse); } } JarData.getInstance().checkForDuplicates(); } /** * Save the data on all files in this jar file. * * @param file the jar file * @param recurse whether to save the external jars referenced by the manifest */ private void saveJarData(final File file, final boolean recurse) { // Verify the file exists if (!file.exists()) { JarData.getInstance().addJarFileEntry(file.getAbsolutePath(), false, 0, 0L, 0L); return; } try { // Open the Jar file and iterate over its contents final JarFile jar = new JarFile(file, true); // Check if we want to look at all of the files in this jar file int count = 0; if (recurse) { final Enumeration<JarEntry> entries = jar.entries(); while (entries.hasMoreElements()) { // Get the next zip entry and save it; if added, increment the count JarEntry entry = entries.nextElement(); if (JarData.getInstance().addJarEntry(file, entry)) { ++count; } } } else { // This count includes directories. If recurse=true, the count // does not include directories. count = jar.size(); } // Save the jar file and include the number of files it contains JarData.getInstance().addJarFileEntry(file.getAbsolutePath(), true, count, file.length(), file.lastModified()); jar.close(); } catch (IOException e) { JarData.getInstance().addJarFileEntry(file.getAbsolutePath(), false, 0, 0L, 0L); e.printStackTrace(); } } /** * Verify the file is valid and save the contents of the manifest. * * @param file the file to open * @return whether the file is valid */ private boolean getJarAttributes(final File file) { boolean result = false; try { // Open the jar file; if it's invalid, it will throw an exception JarFile jar = new JarFile(file, false); // If we reach this point, the file was opened successfully result = true; FileList.getInstance().addFile(file); // Get the manifest Manifest man = jar.getManifest(); if (man == null) { jar.close(); return true; } // Get the main attributes of the jar file's manifest; // this includes Main-Class and Class-Path Attributes attrs = man.getMainAttributes(); if (attrs != null) { for (Entry<Object, Object> attr : attrs.entrySet()) { String key = attr.getKey().toString(); String val = attr.getValue().toString(); JarData.getInstance().addManifestEntry(key, val); } } jar.close(); } catch (IOException ioe) { result = false; } return result; } }
var math3D ={ identityMatrix(m){ m[0]=1; m[1]=0; m[2]=0; m[3] =0; m[4]=0; m[5]=1; m[6]=0; m[7]=0; m[8]=0; m[9]=0; m[10]=1;m[11]=0; m[12]=0;m[13]=0; m[14]=0;m[15]=1; }, cross(a,b){ return [a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]; }, normalize(inv){ var len = this.len(inv); return [inv[0]/len,inv[1]/len,inv[2]/len]; }, dot(v1,v2){ return v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2]; }, len(v){ return Math.sqrt(this.dot(v,v)); }, sinc(x,k ) { var a = Math.PI*((k*x-1.0))+0.00001; return Math.sin(a)/a; }, mul_Vector4_Matrix(out,v,m){ out[0] = v[0]*m[0]+v[1]*m[1]+v[2]*m[2]+v[3]*m[3]; out[1] = v[0]*m[4]+v[1]*m[5]+v[2]*m[6]+v[3]*m[7]; out[2] = v[0]*m[8]+v[1]*m[9]+v[2]*m[10]+v[3]*m[11]; out[3] = v[0]*m[12]+v[1]*m[13]+v[2]*m[14]+v[3]*m[15]; }, mul_Vector3_Matrix(out,v,m){ out[0] = v[0]*m[0]+v[1]*m[1]+v[2]*m[2] out[1] = v[0]*m[4]+v[1]*m[5]+v[2]*m[6] out[2] = v[0]*m[8]+v[1]*m[9]+v[2]*m[10] out[3] = v[0]*m[12]+v[1]*m[13]+v[2]*m[14] }, inverseMatrix(me) { // based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm var te =[]; var n11 = me[ 0 ];var n21 = me[ 1 ]; var n31 = me[ 2 ]; var n41 = me[ 3 ]; var n12 = me[ 4 ]; var n22 = me[ 5 ]; var n32 = me[ 6 ]; var n42 = me[ 7 ]; var n13 = me[ 8 ]; var n23 = me[ 9 ]; var n33 = me[ 10 ]; var n43 = me[ 11 ]; var n14 = me[ 12 ]; var n24 = me[ 13 ]; var n34 = me[ 14 ]; var n44 = me[ 15 ]; var t11 = n23 * n34 * n42 - n24 * n33 * n42 + n24 * n32 * n43 - n22 * n34 * n43 - n23 * n32 * n44 + n22 * n33 * n44; var t12 = n14 * n33 * n42 - n13 * n34 * n42 - n14 * n32 * n43 + n12 * n34 * n43 + n13 * n32 * n44 - n12 * n33 * n44; var t13 = n13 * n24 * n42 - n14 * n23 * n42 + n14 * n22 * n43 - n12 * n24 * n43 - n13 * n22 * n44 + n12 * n23 * n44; var t14 = n14 * n23 * n32 - n13 * n24 * n32 - n14 * n22 * n33 + n12 * n24 * n33 + n13 * n22 * n34 - n12 * n23 * n34; var det = n11 * t11 + n21 * t12 + n31 * t13 + n41 * t14; if ( det === 0 ) { var msg = "THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"; console.warn( msg ); return; } var detInv = 1 / det; te[ 0 ] = t11 * detInv; te[ 1 ] = ( n24 * n33 * n41 - n23 * n34 * n41 - n24 * n31 * n43 + n21 * n34 * n43 + n23 * n31 * n44 - n21 * n33 * n44 ) * detInv; te[ 2 ] = ( n22 * n34 * n41 - n24 * n32 * n41 + n24 * n31 * n42 - n21 * n34 * n42 - n22 * n31 * n44 + n21 * n32 * n44 ) * detInv; te[ 3 ] = ( n23 * n32 * n41 - n22 * n33 * n41 - n23 * n31 * n42 + n21 * n33 * n42 + n22 * n31 * n43 - n21 * n32 * n43 ) * detInv; te[ 4 ] = t12 * detInv; te[ 5 ] = ( n13 * n34 * n41 - n14 * n33 * n41 + n14 * n31 * n43 - n11 * n34 * n43 - n13 * n31 * n44 + n11 * n33 * n44 ) * detInv; te[ 6 ] = ( n14 * n32 * n41 - n12 * n34 * n41 - n14 * n31 * n42 + n11 * n34 * n42 + n12 * n31 * n44 - n11 * n32 * n44 ) * detInv; te[ 7 ] = ( n12 * n33 * n41 - n13 * n32 * n41 + n13 * n31 * n42 - n11 * n33 * n42 - n12 * n31 * n43 + n11 * n32 * n43 ) * detInv; te[ 8 ] = t13 * detInv; te[ 9 ] = ( n14 * n23 * n41 - n13 * n24 * n41 - n14 * n21 * n43 + n11 * n24 * n43 + n13 * n21 * n44 - n11 * n23 * n44 ) * detInv; te[ 10 ] = ( n12 * n24 * n41 - n14 * n22 * n41 + n14 * n21 * n42 - n11 * n24 * n42 - n12 * n21 * n44 + n11 * n22 * n44 ) * detInv; te[ 11 ] = ( n13 * n22 * n41 - n12 * n23 * n41 - n13 * n21 * n42 + n11 * n23 * n42 + n12 * n21 * n43 - n11 * n22 * n43 ) * detInv; te[ 12 ] = t14 * detInv; te[ 13 ] = ( n13 * n24 * n31 - n14 * n23 * n31 + n14 * n21 * n33 - n11 * n24 * n33 - n13 * n21 * n34 + n11 * n23 * n34 ) * detInv; te[ 14 ] = ( n14 * n22 * n31 - n12 * n24 * n31 - n14 * n21 * n32 + n11 * n24 * n32 + n12 * n21 * n34 - n11 * n22 * n34 ) * detInv; te[ 15 ] = ( n12 * n23 * n31 - n13 * n22 * n31 + n13 * n21 * n32 - n11 * n23 * n32 - n12 * n21 * n33 + n11 * n22 * n33 ) * detInv; return te; }, perspectiveMatrix(fov,aspect,near,far){ var t = 1/Math.tan(fov/2); var nf = 1/(far-near); var x = t/aspect; var y = t; var a = (far+near)*nf; var d = 2*near*far*nf; return [ x, 0, 0, 0, 0, y, 0, 0, 0, 0, a, -d, 0, 0, 1, 0 ]; }, OrthMatrix( left, right, top, bottom, near, far ) { var w = 1.0 / ( right - left ); var h = 1.0 / ( top - bottom ); var p = 1.0 / ( far - near ); var x = ( right + left ) * w; var y = ( top + bottom ) * h; var z = ( far + near ) * p; return [ 2 * w, 0, 0, -x, 0, 2*h, 0, -y, 0, 0, -2*p, -z, 0, 0, 0, 1 ]; }, lookAtMatrix(eye,tar,up){ var m = []; var look = this.normalize([tar[0]-eye[0],tar[1]-eye[1],tar[2]-eye[2]]); var right = this.normalize(this.cross(up,look)); up = this.normalize(this.cross(look,right)); m[0] = right[0]; m[1] = right[1]; m[2] = right[2];m[3] = -this.dot(eye,right); m[4] = up[0]; m[5] = up[1]; m[6] = up[2]; m[7] = -this.dot(eye,up); m[8] = look[0]; m[9] = look[1]; m[10] = look[2]; m[11] = -this.dot(eye,look); m[12] = 0; m[13]= 0; m[14] = 0; m[15] = 1; return m; }, rotateXMatrix(out,v){ out[0]= 1; out[1]= 0; out[2]= 0; out[3] = 0; out[4]= 0; out[5]= Math.cos(v); out[6]= -Math.sin(v); out[7] = 0; out[8]= 0; out[9]= Math.sin(v); out[10]= Math.cos(v); out[11] = 0; out[12]= 0; out[13]= 0; out[14]= 0; out[15] = 1; }, rotateYMatrix(out,v){ out[0]= Math.cos(v); out[1]= 0; out[2]= -Math.sin(v); out[3] = 0; out[4]= 0; out[5]= 1; out[6]= 0; out[7] = 0; out[8]= Math.sin(v); out[9]= 0; out[10]= Math.cos(v); out[11] = 0; out[12]= 0; out[13]= 0; out[14]= 0; out[15] = 1; }, rotateZMatrix(out,v){ out[0]= Math.cos(v); out[1]=-Math.sin(v); out[2]= 0; out[3] = 0; out[4]= Math.sin(v); out[5]= Math.cos(v); out[6]= 0; out[7] = 0; out[8]= 0; out[9]= 0; out[10]= 1; out[11] = 0; out[12]=0; out[13]= 0; out[14]= 0; out[15] = 1; }, //rotation matrix rotateAxisMatrix(out,axi,v){ let axis = normalize(axi); let sinv = Math.sin(v); let cosv = Math.cos(v); let one_minus_cosv = 1-cosv; out[0]= 1+one_minus_cosv*(axis.x*axis.x-1); out[1]= axis.z*sinv+one_minus_cosv*axis.x*axis.y; out[2]=-axis.y*sinv + one_minus_cosv*axis.x*axis.z; out[3]= 0; out[4]= -axis.z*sinv+one_minus_cosv*axis.y*axis.x; out[5]= 1+one_minus_cosv*(axis.y*axis.y-1); out[6]= axis.x*sinv+one_minus_cosv*axis.y*axis.z; out[7]= 0; out[8]= axis.y*sinv+one_minus_cosv*axis.z*axis.x; out[9]= -axis.x*sinv+one_minus_cosv*axis.z*axis.y; out[10]= 1+one_minus_cosv*(axis.z*axis.z-1); out[11]= 1; }, scaleMatrix(out,scale){ out[0] =scale[0]; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = scale[1]; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10]= scale[2]; out[11]= 0; out[12]= 0; out[13]= 0; out[14]= 0; out[15]= 1; }, transMatrix(out,pos){ out[0] = 1;out[1] = 0; out[2] = 0; out[3] = pos[0]; out[4] = 0;out[5] = 1; out[6] = 0; out[7] = pos[1]; out[8] = 0;out[9] = 0; out[10]= 1; out[11]= pos[2]; out[12]= 0;out[13]= 0; out[14]= 0; out[15]= 1; }, //row_major_mul mul_Matrix_Matrix(out,o1,o2){ out[0] = o1[0]*o2[0]+o1[1]*o2[4]+o1[2]*o2[8] +o1[3]*o2[12]; out[1] = o1[0]*o2[1]+o1[1]*o2[5]+o1[2]*o2[9] +o1[3]*o2[13]; out[2] = o1[0]*o2[2]+o1[1]*o2[6]+o1[2]*o2[10]+o1[3]*o2[14]; out[3] = o1[0]*o2[3]+o1[1]*o2[7]+o1[2]*o2[11]+o1[3]*o2[15]; out[4] = o1[4]*o2[0]+o1[5]*o2[4]+o1[6]*o2[8] +o1[7]*o2[12]; out[5] = o1[4]*o2[1]+o1[5]*o2[5]+o1[6]*o2[9] +o1[7]*o2[13]; out[6] = o1[4]*o2[2]+o1[5]*o2[6]+o1[6]*o2[10]+o1[7]*o2[14]; out[7] = o1[4]*o2[3]+o1[5]*o2[7]+o1[6]*o2[11]+o1[7]*o2[15]; out[8] = o1[8]*o2[0]+o1[9]*o2[4]+o1[10]*o2[8] +o1[11]*o2[12]; out[9] = o1[8]*o2[1]+o1[9]*o2[5]+o1[10]*o2[9] +o1[11]*o2[13]; out[10] = o1[8]*o2[2]+o1[9]*o2[6]+o1[10]*o2[10]+o1[11]*o2[14]; out[11] = o1[8]*o2[3]+o1[9]*o2[7]+o1[10]*o2[11]+o1[11]*o2[15]; out[12] = o1[12]*o2[0]+o1[13]*o2[4]+o1[14]*o2[8]+o1[15]*o2[12]; out[13] = o1[12]*o2[1]+o1[13]*o2[5]+o1[14]*o2[9]+o1[15]*o2[13]; out[14] = o1[12]*o2[2]+o1[13]*o2[6]+o1[14]*o2[10]+o1[15]*o2[14]; out[15] = o1[12]*o2[3]+o1[13]*o2[7]+o1[14]*o2[11]+o1[15]*o2[15]; }, }; export {math3D}
#!/bin/bash set -e printf "\n[-] Installing base OS dependencies...\n\n" # install base dependencies apt-get update # ensure we can get an https apt source if redirected # https://github.com/jshimko/meteor-launchpad/issues/50 apt-get install -y apt-transport-https ca-certificates gpg if [ -f $APP_SOURCE_DIR/launchpad.conf ]; then source <(grep APT_GET_INSTALL $APP_SOURCE_DIR/launchpad.conf) if [ "$APT_GET_INSTALL" ]; then printf "\n[-] Installing custom apt dependencies...\n\n" apt-get install -y $APT_GET_INSTALL fi fi apt-get install -y --no-install-recommends curl bzip2 bsdtar build-essential python git wget # install gosu dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" export GNUPGHOME="$(mktemp -d)" key="B42F6819007F00F88E364FD4036A9C25BF357DD4" # Try different key servers in case one is unresponsive # See: https://github.com/bodastage/bts-ce-database/issues/1 for server in ha.pool.sks-keyservers.net \ hkp://p80.pool.sks-keyservers.net:80 \ keyserver.ubuntu.com \ hkp://keyserver.ubuntu.com:80 \ pgp.mit.edu; do gpg --keyserver "$server" --recv-keys "${key}" && break || echo "Trying new server..." done gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc chmod +x /usr/local/bin/gosu gosu nobody true apt-get purge -y --auto-remove wget
#!/bin/bash if [ "$#" -ne 3 ]; then echo "Expects 3 arguments" exit 2 fi BUILDERID=$3 echo "BuilderId is ${BUILDERID}" BUILDER_ON_STOCK=1 [ $(ssh -o UserKnownHostsFile=/dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o ConnectTimeout=5 pi@${BUILDERID} /etc/cattlepi/release.sh 2>/dev/null) == 'raspbian_stock' ] || BUILDER_ON_STOCK=0 echo $(ssh -o UserKnownHostsFile=/dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o ConnectTimeout=5 pi@${BUILDERID} cat /proc/cmdline) | grep -q boot=cattlepi && BUILDER_ON_STOCK=0 if [ ${BUILDER_ON_STOCK} -eq "1" ]; then echo "Builder is on stock" exit 0 else echo "Builder is NOT alive _or_ misconfigured ssh" sleep 10 exit 1 fi
<reponame>ralder/rails-project-lvl1<filename>lib/hexlet_code.rb # frozen_string_literal: true module HexletCode autoload :Tag, 'hexlet_code/tag' autoload :Version, 'hexlet_code/version' autoload :Renderer, 'hexlet_code/renderer' autoload :Form, 'hexlet_code/form' class << self def form_for(model, url: '#', **kwargs) form = Form.new(model, action: url, **kwargs) yield form Renderer.render form.state end end end
import React from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // @material-ui/icons // core components import GridContainer from "components/Grid/GridContainer.js"; import GridItem from "components/Grid/GridItem.js"; import PoolCard from "components/PoolCard/PoolCard.js"; import styles from "assets/jss/material-kit-react/views/landingPageSections/productStyle.js"; import styled from "styled-components"; import face from "assets/img/faces/marc.jpg"; const CpuContainerStyled = styled(GridContainer)` display: flex; justify-content: center; margin-bottom: 12px; `; const useStyles = makeStyles(styles); export default function PoolSection() { const classes = useStyles(); return ( <div className={classes.section}> <h2 className={classes.title}>CPU collaboration Pools</h2> <GridContainer> <GridItem xs={12} sm={12} md={4}> <PoolCard name={"Nova Era Pool [ERA]"} address={"13375a4a5470b564246a3251ea0ccfef046ee5bcaf3ed6de6315abc7"} margin={"1%"} fixedFee={"340"} pledge={"40000"} delegateLink={"/faq#StoreAndDelegate"} poolLink={"/pool?id=ERA"} kickstart operator={{ name: "Name#1", image: face, }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <PoolCard name={"Cardano Pools United [CPU]"} address={"b45c1860e038baa0642b352ccf447ed5e14430342a11dd75bae52f39"} margin={"2%"} fixedFee={"340"} pledge={"50000"} kickstart delegateLink={"/faq#StoreAndDelegate"} poolLink={"/pool?id=CPU"} isMain operator={{ name: "Name#1", image: face, }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <PoolCard name={"Proto Pool [PROTO]"} address={"b00b421fbc620f0a2fdcf3243265d253b2e30c40da2c172dc5ab4640"} kickstart margin={"1%"} fixedFee={"340"} pledge={"5000"} delegateLink={"/faq#StoreAndDelegate"} poolLink={"/pool?id=PROTO"} operator={{ name: "Name#1", image: face, }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <PoolCard name={"<NAME> Pool [Curie]"} address={"6c81475fe8b32b5dfde307325a2cb115de26a466037d0ec76bb499b3"} margin={"1%"} kickstart fixedFee={"340"} pledge={"5000"} delegateLink={"/faq#StoreAndDelegate"} poolLink={"/pool?id=CURIE"} operator={{ name: "Name#1", image: face, }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <PoolCard name={"Fresco Pool [VENUS]"} address={"19cb138eab81d3559e70094df2b6cb1742bf275e920300d5c3972253"} margin={"0.85%"} fixedFee={"340"} pledge={"70000"} delegateLink={"/faq#StoreAndDelegate"} poolLink={"/pool?id=VENUS"} operator={{ name: "Name#1", image: face, }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <PoolCard name={"<NAME> [MINES]"} address={"3e5fcbaf750c0291cecb72384091724a1c2d35da10a71473e16c926f"} margin={"1%"} fixedFee={"340"} pledge={"10481"} kickstart delegateLink={"/faq#StoreAndDelegate"} poolLink={"/pool?id=MINES"} operator={{ name: "Name#1", image: face, }} /> </GridItem> <GridItem xs={12} sm={12} md={2}></GridItem> </GridContainer> </div> ); }
package net.arvin.itemdecorationhelper; import android.graphics.Canvas; import android.graphics.Rect; import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.view.View; /** * Created by arvinljw on 2018/7/24 16:35 * Function: * Desc: */ public class StickyGridDividerItemDecoration extends BaseStickyDividerItemDecoration { private GridLayoutManager.SpanSizeLookup lookup; StickyGridDividerItemDecoration(ItemDecorationFactory.StickyDividerBuilder builder) { super(builder); } @SuppressWarnings("SuspiciousNameCombination") @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { super.getItemOffsets(outRect, view, parent, state); if (ItemDecorationHelper.getStickyGridItemOffset(outRect, parent, view, stickyDividerHelper)) { setSpanSizeLookup(parent); } } private void setSpanSizeLookup(RecyclerView parent) { GridLayoutManager layoutManager = (GridLayoutManager) parent.getLayoutManager(); final int spanCount = layoutManager.getSpanCount(); if (lookup == null) { lookup = new GridLayoutManager.SpanSizeLookup() {//相当于weight @Override public int getSpanSize(int position) { GroupData groupData = stickyDividerHelper.getCallback().getGroupData(position); int returnSpan = 1; if (groupData != null && groupData.isLastViewInGroup()) { returnSpan = spanCount - groupData.getPosition() % spanCount; } return returnSpan; } }; } layoutManager.setSpanSizeLookup(lookup); } @Override public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { super.onDraw(c, parent, state); ItemDecorationHelper.onStickyGridDraw(c, parent, stickyDividerHelper); } @Override public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { super.onDrawOver(c, parent, state); ItemDecorationHelper.onStickyGridDrawOver(c, parent, stickyDividerHelper, headersTop); } }
package com.nortal.spring.cw.core.web.component.single.editor; import java.beans.PropertyEditorSupport; import org.apache.commons.lang3.StringUtils; import com.nortal.spring.cw.core.util.date.DateObject; import com.nortal.spring.cw.core.util.date.DateTime; import com.nortal.spring.cw.core.util.date.SimpleDate; import com.nortal.spring.cw.core.util.date.Time; /** * Tegemist on klassiga, mis tegeleb vormilt saadetud kuupäeva väärtuse konvertimisega tekstilisest väärtusest objektiks ning väärtuse * kuvamisel objektist tekstiliseks väärtuseks. Antud klass saab aru kas sisendina olev väärtuse näol on tegemist kellaajaga, kuupäevaga või * kuupäevaga koos kellaajaga. Vastavalt ajatüübile koostatakse erinevad ajaobjektid. Ajaobjektid implementeerivad objekti * {@link DateObject}. Tüübi tuvastamine toimub sisendteksti pikkuse järgi<br> * Kasutusel on järgnevad ajaobjektid: <br> * kellaaeg, sisendteksti pikkuseks on 5 sümbolit: {@link Time}<br> * kuupäev, sisendteksti pikkuseks on 10 sümbolit: {@link SimpleDate}<br> * kuupäev koos kellaajaga, kõik ülejäänud: {@link DateTime}<br> * * * @author <NAME> * @since 06.03.2013 */ public class DateTimeDateEditor extends PropertyEditorSupport { /** * Tulemus lisatakse konkreetse vormi elemendi väärtuseks * * @param text * Konverditav tektiline väärtus */ @Override public void setAsText(String text) throws IllegalArgumentException { int len = StringUtils.length(text); if (StringUtils.isEmpty(text) || StringUtils.containsAny(text, "00.00.0000", "00.00.0000 00:00") || len == 6 && StringUtils.equals(text, " 00:00")) { setValue(null); } else { try { if (len == 5) { setValue(new Time(text)); } else if (len == 10) { setValue(new SimpleDate(text)); } else { setValue(new DateTime(text)); } } catch (Exception ex) { throw new IllegalArgumentException("Could not parse datetime: " + ex.getMessage(), ex); } } } /** * Meetod tagastab objekti väärtuse tekstilisel kujul */ @Override public String getAsText() { if (getValue() == null) { return StringUtils.EMPTY; } return ((DateObject) getValue()).getAsText(); } }
<gh_stars>0 import React from 'react'; interface Props { address: string; className?: string; cmd: number; genesisHash: Uint8Array | string; payload: Uint8Array; size?: string | number; style?: React.CSSProperties; } declare function DisplayPayload({ address, className, cmd, genesisHash, payload, size, style }: Props): React.ReactElement<Props> | null; export declare const QrDisplayPayload: React.MemoExoticComponent<typeof DisplayPayload>; export {};
export ZSH="/home/tester/.oh-my-zsh" ZSH_THEME="juanghurtado" plugins=(git) source $ZSH/oh-my-zsh.sh
<reponame>shujer/tree-utils export const buildTree = < ID extends string, PID extends string, T extends { [key in ID | PID]: string } >( items: T[], idKey: ID, parentKey: PID, rootVal?: string, sort?: (a: T, b: T) => -1 | 1 | 0 ) => { type Wrapper = Map<string, T[]>; type TreeNode = T & { children?: TreeNode[] }; const parnetWrap = (items: T[]): Wrapper => { let parnetWrapper: Wrapper = new Map(); items.forEach((item) => { if (parnetWrapper.has(item[parentKey])) { let children = parnetWrapper.get(item[parentKey]) as T[]; children.push(item); } else { parnetWrapper.set(item[parentKey], [item]); } }); return parnetWrapper; }; const topLevelWrap = (items: T[]): T[] => { if (rootVal) { return items.filter((ele) => ele[parentKey] === rootVal); } else { return items.filter( //@ts-ignore (parent) => !items.find((item) => item[idKey] === parent[parentKey]) ); } }; const build = (topLevel: T[], wrapper: Wrapper): TreeNode[] => { return topLevel.map((item) => { if (wrapper.has(item[idKey])) { let children = build(wrapper.get(item[idKey]) as TreeNode[], wrapper); if (sort) { children = children.sort(sort); } return { ...item, children, }; } else { return item; } }); }; const parnetWrapper = parnetWrap(items); const topLevelWrapper = topLevelWrap(items); return build(topLevelWrapper, parnetWrapper); };
SELECT city, COUNT(*) AS num_customers FROM customers GROUP BY city;
<gh_stars>0 package speed // TODO: define the 'Car' type struct type Car struct{ battery int batteryDrain int speed int distance int } // NewCar creates a new remote controlled car with full battery and given specifications. func NewCar(speed, batteryDrain int) Car { car := Car{ speed: speed, batteryDrain: batteryDrain, battery: 100, distance: 0, } return car } // TODO: define the 'Track' type struct type Track struct{ distance int } // NewTrack created a new track func NewTrack(distance int) Track { track := Track{ distance: distance, } return track } // Drive drives the car one time. If there is not enough battery to drive on more time, // the car will not move. func Drive(car Car) Car { if(car.battery>=car.batteryDrain){ car.distance+=car.speed car.battery-=car.batteryDrain }else{ car.distance = 0 } return car } // CanFinish checks if a car is able to finish a certain track. func CanFinish(car Car, track Track) bool { if(car.battery>=car.batteryDrain){ for(car.distance<track.distance){ car.distance+=car.speed car.battery-=car.batteryDrain } if(car.battery<=0 || car.distance<track.distance){ return false }else{ return true } }else{ return false } }
<gh_stars>1-10 const assert = require('chai').assert; const Rejs = require('../index.js'); describe('Rejs', function () { beforeEach(function () { this.rejs = new Rejs(); this.rejs.createTable('testOne'); }); afterEach(function () { this.rejs.dropTable('testOne'); }); describe('getTable and newData', function () { it('appends new data and returns all the appended data', function () { this.rejs.newData('testOne', { test: 'test data 1' }); this.rejs.newData('testOne', { test: 'test data 2' }); const expected = { '0': { table: 'testOne', nextId: 3 }, '1': { test: 'test data 1' }, '2': { test: 'test data 2' }, }; assert.deepEqual(expected, this.rejs.getTable('testOne')); }); }); describe('where', function () { it('selects records that have a matching key', function () { this.rejs.newData('testOne', { test: 'test data 1' }); this.rejs.newData('testOne', { test: 'test data 2' }); this.rejs.newData('testOne', { test: 'test data 1' }); this.rejs.newData('testOne', { test: 'test data 4' }); const expected = [{ test: 'test data 1' }, { test: 'test data 1' }]; assert.deepEqual(expected, this.rejs.where('testOne', 'test data 1')); }); }); describe('findId', function () { it('returns the matching record if one exists', function () { this.rejs.newData('testOne', { test: 'test data 1' }); this.rejs.newData('testOne', { test: 'test data 2' }); assert.deepEqual( { test: 'test data 1' }, this.rejs.findId('testOne', '1'), ); assert.deepEqual( { test: 'test data 2' }, this.rejs.findId('testOne', '2'), ); assert.equal(null, this.rejs.findId('testOne', '3')); }); }); describe('deleteById', function () { it('deletes the correct object by ID in the correct table', function () { this.rejs.newData('testOne', { test: 'test data 1' }); this.rejs.newData('testOne', { test: 'test data 2' }); this.rejs.deleteById('testOne', '2'); assert.equal(null, this.rejs.findId('testOne', '2')); }); }); describe('updateTable', function () { it('replaces the data in a table', function () { this.rejs.newData('testOne', { test: 'old data' }); this.rejs.updateTable('testOne', { test: 'new data' }); const expected = { '0': { table: 'testOne', nextId: 2 }, '1': { test: 'new data' }, }; assert.deepEqual(expected, this.rejs.getTable('testOne')); }); }); describe('getTables: two', function () { it('returns an array of two tables', function () { this.rejs.createTable('firstTable'); this.rejs.createTable('secondTable'); const expected = [ { '0': { table: 'firstTable', nextId: 1 } }, { '0': { table: 'secondTable', nextId: 1 } }, ]; const tbls = this.rejs.getTables('firstTable', 'secondTable'); assert.deepEqual(expected, tbls); this.rejs.dropTable('firstTable'); this.rejs.dropTable('secondTable'); }); }); describe('getTables: three', function () { it('returns an array of four tables', function () { this.rejs.createTable('firstTable'); this.rejs.createTable('secondTable'); this.rejs.createTable('thirdTable'); this.rejs.createTable('fourthTable'); const expected = [ { '0': { table: 'firstTable', nextId: 1 } }, { '0': { table: 'secondTable', nextId: 1 } }, { '0': { table: 'thirdTable', nextId: 1 } }, ]; const tbls = this.rejs.getTables( 'firstTable', 'secondTable', 'thirdTable', ); assert.deepEqual(expected, tbls); this.rejs.dropTable('firstTable'); this.rejs.dropTable('secondTable'); this.rejs.dropTable('thirdTable'); }); }); describe('getTables: four - dropTables: four - createTable: four', function () { it('gets 4 - drops 4 - creates 4: tables', function () { this.rejs.createTables( 'firstTable', 'secondTable', 'thirdTable', 'fourthTable', ); const expected = [ { '0': { table: 'firstTable', nextId: 1 } }, { '0': { table: 'secondTable', nextId: 1 } }, { '0': { table: 'thirdTable', nextId: 1 } }, { '0': { table: 'fourthTable', nextId: 1 } }, ]; const tbls = this.rejs.getTables( 'firstTable', 'secondTable', 'thirdTable', 'fourthTable', ); assert.deepEqual(expected, tbls); this.rejs.dropTables( 'firstTable', 'secondTable', 'thirdTable', 'fourthTable', ); }); }); describe('newDatas and updateTables', function () { it('replaces the data in multiple tables', function () { this.rejs.createTables('firstTable', 'secondTable', 'thirdTable'); this.rejs.newDatas( ['firstTable', { test: 'old data' }], ['secondTable', { test: 'old data' }], ['thirdTable', { test: 'old data' }], ); this.rejs.updateTables( ['firstTable', { test: 'new data' }], ['secondTable', { test: 'new data' }], ['thirdTable', { test: 'new data' }], ); const expected = [ { '0': { table: 'firstTable', nextId: 2 }, '1': { test: 'new data' }, }, { '0': { table: 'secondTable', nextId: 2 }, '1': { test: 'new data' }, }, { '0': { table: 'thirdTable', nextId: 2 }, '1': { test: 'new data' }, }, ]; assert.deepEqual( expected, this.rejs.getTables('firstTable', 'secondTable', 'thirdTable'), ); this.rejs.dropTables('firstTable', 'secondTable', 'thirdTable'); }); }); describe('newAndGetBenchmark', function () { it('can append and fetch a good amount of data', function () { for (let i = 0; i < 10; i++) { this.rejs.newData('testOne', { test: 'test data 2' }); } for (let i = 0; i < 1000; i++) { this.rejs.getTable('testOne'); } }); }); });
var express = require('express'); var router = express.Router(); // ############################################################################################### // # Model // ############################################################################################### var mongoose = require('mongoose'); var Schema = mongoose.Schema; var SceneSchema = new Schema({ timestamp: Date, environment: { temperature: Number, humidity: Number, luminosity: Number, soundIntensity: Number }, action: Number }); var Scene = mongoose.model('Scene', SceneSchema); // ############################################################################################### // # Routes // ############################################################################################### // retorna a lista com todas as cenas registradas router.get('/', function(req, res) { Scene.find({}, function(err, scenes) { if (err) { res.send(err); } res.json(scenes); }); }); // cria uma nova cena e insere no banco de dados router.post('/', function(req, res) { // cria uma nova cena let scene = new Scene({ timestamp: new Date(), environment: { temperature: req.body.temperature, humidity: req.body.humidity, luminosity: req.body.luminosity, soundIntensity: req.body.soundIntensity }, action: req.body.action }); // salva no banco de dados e retorna scene.save(err => { if (err) { res.send(err); } res.json(scene); }); }); module.exports = router;
package dev.vality.sink.common.parser.impl; import dev.vality.machinegun.eventsink.MachineEvent; import dev.vality.sink.common.exception.ParseException; import dev.vality.sink.common.parser.Parser; import dev.vality.sink.common.serialization.BinaryDeserializer; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @Slf4j @RequiredArgsConstructor public class MachineEventParser<T> implements Parser<MachineEvent, T> { private final BinaryDeserializer<T> deserializer; @Override public T parse(MachineEvent data) { try { byte[] bin = data.getData().getBin(); return deserializer.deserialize(bin); } catch (Exception e) { log.error("Exception when parse message e: ", e); throw new ParseException(e); } } }
<reponame>thr-consulting/thr-addons<filename>packages/controls/src/inputs/MaskedInput/maskedinput.stories.tsx<gh_stars>1-10 import debug from 'debug'; import React, {useState} from 'react'; import {Form, Container, Button, Segment, Input} from 'semantic-ui-react'; import {InferType, object, string} from 'yup'; import {TForm} from '../../form/TForm'; import {MaskedInput} from './MaskedInput'; const d = debug('thx.controls.inputs.MaskedInput.maskedinput.stories'); export default {title: 'Inputs/MaskedInput'}; export const Main = () => { const [shown, setShown] = useState(true); const [value, setValue] = useState(); const [mask, setMask] = useState('99-999-99'); const [maskTemp, setMaskTemp] = useState('99-999-99'); if (!shown) { return ( <Container> <Button onClick={() => setShown(true)}>Show</Button> </Container> ); } return ( <Container> <Segment basic> <Form> <Form.Field inline width={6}> <label>Masked Input</label> <MaskedInput mask={{ mask, autoUnmask: true, showMaskOnHover: false, }} onChange={v => { d('onChange', v); setValue(v); }} onBlur={() => { d('onBlur'); }} value={value} /> </Form.Field> </Form> </Segment> <Segment basic> <Input action={{ content: 'Set Mask', onClick: () => { setMask(maskTemp); }, }} value={maskTemp} onChange={v => setMaskTemp(v.currentTarget.value)} /> </Segment> <Segment basic> <Button onClick={() => { setValue('8811245'); }} > Set value </Button> <Button onClick={() => setShown(false)}>Hide</Button> </Segment> <Segment>Value is: {value}</Segment> </Container> ); }; const formValidation = object().shape({ text: string().required(), masked: string().required(), }); type FormValidationType = InferType<typeof formValidation>; export const withTForm = () => ( <Container> <TForm<FormValidationType> initialValues={{text: '', masked: ''}} validationSchema={formValidation} onSubmit={() => {}}> {props => { const {values, handleSubmit, handleChange, handleBlur, setFieldValue} = props; return ( <Form onSubmit={handleSubmit}> <Form.Field width={6}> <label>Enter some text</label> <input name="text" value={values.text} onChange={handleChange} onBlur={handleBlur} /> </Form.Field> <Form.Field width={6}> <label>Enter some text</label> <Form.Input name="text" value={values.text} onChange={handleChange} onBlur={handleBlur} /> </Form.Field> <Form.Field width={6}> <label>Enter some text</label> <MaskedInput name="text" mask={{mask: '999-999'}} value={values.text} onChange={value => setFieldValue('text', value)} onBlur={handleBlur} /> </Form.Field> <Form.Button type="submit">Submit</Form.Button> </Form> ); }} </TForm> </Container> );
<gh_stars>1-10 /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "util/flags.h" #include <gtest/gtest.h> namespace panda::verifier::test { TEST(VerifierTest_FlagsForEnum, simple) { enum class Enum { E1, E2, E3 }; using F = panda::verifier::FlagsForEnum<size_t, Enum, Enum::E1, Enum::E2, Enum::E3>; F flags; flags[Enum::E2] = true; EXPECT_TRUE(flags[Enum::E2]); EXPECT_FALSE(flags[Enum::E1]); EXPECT_FALSE(flags[Enum::E3]); flags[Enum::E2] = false; EXPECT_FALSE(flags[Enum::E1]); EXPECT_FALSE(flags[Enum::E2]); EXPECT_FALSE(flags[Enum::E3]); flags[Enum::E2] = true; flags[Enum::E1] = true; EXPECT_TRUE(flags[Enum::E1]); EXPECT_TRUE(flags[Enum::E2]); EXPECT_FALSE(flags[Enum::E3]); flags[Enum::E1] = false; EXPECT_FALSE(flags[Enum::E1]); EXPECT_TRUE(flags[Enum::E2]); EXPECT_FALSE(flags[Enum::E3]); } } // namespace panda::verifier::test
package org.pantsbuild.testproject.jsresources; import com.google.common.base.Charsets; import com.google.common.io.Resources; import java.io.IOException; import java.net.URL; public class JsResourcesMain { private static String RESOURCE_PATH = "web-component-button-processed/Button.js"; private static String ALT_RESOURCE_PATH = ( "web-component-button-processed-with-dependency-artifacts/Button.js"); public static void main(String[] args) throws IOException { // Introduce a 3rdparty library so we can test if Manifest's Class-Path entry is // set properly for both internal and external dependencies. URL resourceUrl; try { resourceUrl = Resources.getResource(RESOURCE_PATH); } catch (IllegalArgumentException e) { resourceUrl = Resources.getResource(ALT_RESOURCE_PATH); } String content = Resources.toString(resourceUrl, Charsets.UTF_8); // Ensure resource is loaded properly. System.out.println(content); } private JsResourcesMain() { // not called. placates checkstyle } }
<filename>src/config/config.js var prodConfig = { BASE_URL: 'http://meet.tamada.of.by/rest/web' }; var devConfig = { BASE_URL: 'http://meet-api.loc/rest/web' }; export const isProduction = process.env.NODE_ENV === 'production'; const config = isProduction ? prodConfig : devConfig; export default config;
<filename>serving_template/templates/simple/servers/web/main.py from serving_agent import WebAgent from flask import Flask, jsonify, request from servers.web.config import AppConfig app = Flask(__name__) web_agent = WebAgent( redis_broker=AppConfig.REDIS_BROKER, redis_queue=AppConfig.REDIS_QUEUE, web_sleep=AppConfig.WEB_SLEEP, max_tries=AppConfig.WEB_MAX_TRIES ) @app.route('/api/test', methods=['POST']) def test(): parmas = request.get_json() data = parmas['data'] result = web_agent.process(data) return jsonify({'data': result}) if __name__ == '__main__': app.run(debug=True)
<reponame>pyramation/graphile-column-select-grants-example import express from 'express'; import { postgraphile } from 'postgraphile'; import { PgMutationUpdateDeletePlugin, PgMutationCreatePlugin } from 'graphile-column-privileges-mutations'; import PgSimplifyInflectorPlugin from './plugins/PgSimplifyInflectorPlugin'; import env from './env'; const app = express(); const getDbString = () => `postgres://${env.PGUSER}:${env.PGPASSWORD}@${env.PGHOST}:${env.PGPORT}/${env.PGDATABASE}`; app.use( postgraphile(getDbString(), env.SCHEMA, { graphiql: true, enhanceGraphiql: true, enableCors: true, dynamicJson: true, appendPlugins: [ PgSimplifyInflectorPlugin, PgMutationCreatePlugin, PgMutationUpdateDeletePlugin ], graphileBuildOptions: { // disable the default mutations pgDisableDefaultMutations: true } }) ); export default app;
import os import numpy as np import matplotlib.pyplot as plt def plot_and_save_waveforms(linear_waveform, nonlinear_waveform, output_directory): # Normalize waveforms norm_linear_waveform = linear_waveform / np.max(np.abs(linear_waveform)) norm_nonlinear_waveform = nonlinear_waveform / np.max(np.abs(nonlinear_waveform)) # Plot normalized waveforms plt.figure() plt.plot(norm_linear_waveform, color='blue') plt.plot(norm_nonlinear_waveform, color='orange') plt.legend(['Linear', 'Nonlinear']) plt.xlabel('Time') plt.ylabel('Amplitude') plt.title('Normalized Waveforms') plt.grid(True) # Save the plot as a PNG file outname = os.path.join(output_directory, 'waveform_comparison.png') plt.savefig(outname, dpi=300, transparent=True) plt.show() # Optional: Display the plot
# Generate spline prefactors to check code in MultiBspline.hpp # For code in test_prefactors() in test_multi_spline.cpp from sympy import * from bspline_funcs import transpose_interval_and_coefficients, get_base_interval def gen_prefactor(): xs = Symbol('x') Delta = Symbol('Delta', positive=True) nknots = 2 all_knots = [i*Delta for i in range(-3, nknots+3)] # Third-order bspline sym_basis = bspline_basis_set(3, all_knots, xs) #print("Number of basis functions = ",len(sym_basis)) cond_map = transpose_interval_and_coefficients(sym_basis) spline_exprs = get_base_interval(cond_map) spline_exprs = [(idx,s.subs(Delta, 1)) for idx,s in spline_exprs] # Adjust xval (between 0.0 and 1.0) and re-run the script xval = 0.1 print ' // Code from here to the end the of function generated by gen_prefactor.py' print # For values print ' tx = %g;'%xval print ' bd.compute_prefactors(a, tx);' for idx,s in spline_exprs: print ' REQUIRE(a[%d] == Approx(%g));'%(idx, s.subs(xs,xval)) print xval = 0.8 # For values, first and second derivatives print ' tx = %g;'%xval print ' bd.compute_prefactors(a, da, d2a, tx);' for idx,s in spline_exprs: print ' REQUIRE(a[%d] == Approx(%g));'%(idx, s.subs(xs,xval)) print ' REQUIRE(da[%d] == Approx(%g));'%(idx, diff(s,xs).subs(xs,xval)) print ' REQUIRE(d2a[%d] == Approx(%g));'%(idx, diff(s,xs,2).subs(xs,xval)) if __name__ == '__main__': gen_prefactor()
from django.contrib import admin from .models import IdDB class IdDBAdmin(admin.ModelAdmin): list_display = ('title', 'year', 'watched') # Display 'watched' status in the admin list view search_fields = ('kinopoisk_id', 'title',) list_filter = ('year',) empty_value_display = '-пусто-' def mark_as_watched(self, request, queryset): queryset.update(watched=True) # Update the 'watched' status for selected movies mark_as_watched.short_description = "Mark selected movies as watched" # Custom action button label actions = ['mark_as_watched'] # Register the custom method as an admin action admin.site.register(IdDB, IdDBAdmin)
#include "mgpch.h" #include "OpenGLContext.h" #include <glad/glad.h> namespace Magnus { OpenGLContext::OpenGLContext(GLFWwindow* _WindowHandle) :m_WindowHandle(_WindowHandle){ MG_CORE_ASSERT(_WindowHandle, "Window handle is null!") } void OpenGLContext::Init() { glfwMakeContextCurrent(m_WindowHandle); int status = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress); MG_CORE_ASSERT(status, "Failed to initialize Glad!"); MG_CORE_INFO("Vendor: {0}", glGetString(GL_VENDOR)); MG_CORE_INFO("Renderer: {0}", glGetString(GL_RENDERER)); MG_CORE_INFO("Version: {0}", glGetString(GL_VERSION)); #ifdef HZ_ENABLE_ASSERTS int versionMajor; int versionMinor; glGetIntegerv(GL_MAJOR_VERSION, &versionMajor); glGetIntegerv(GL_MINOR_VERSION, &versionMinor); HZ_CORE_ASSERT(versionMajor > 4 || (versionMajor == 4 && versionMinor >= 5), "Hazel requires at least OpenGL version 4.5!"); #endif } void OpenGLContext::SwapBuffer() { glfwSwapBuffers(m_WindowHandle); } }
require "fa-harness-tools/check_branch_protection" require "fa-harness-tools/check_forward_deploy" require "fa-harness-tools/check_recent_deploy" require "fa-harness-tools/check_schedule" require "fa-harness-tools/github_client" require "fa-harness-tools/harness_context" require "fa-harness-tools/version" module FaHarnessTools LookupError = Class.new(StandardError) end
#!/bin/bash # conda-autoenv automatically # (1) activates a conda environment per the environment.yml file in # a directory, when you enter it # (2) updates the file and deactivates the environment, when you # leave the directory # (3) installs and updates your pip requirements per the # requirements.txt in the directory as well # # To install, add this line to your .bashrc or .bash-profile: # # source /path/to/conda_autoenv.sh # function conda_autoenv() { if [ -e "environment.yml" ]; then ENV=$(head -n 1 environment.yml | cut -f2 -d ' ') # Check if you are already in the environment if [[ $PATH != *$ENV* ]]; then # Check if the environment exists if source activate $ENV && [[ $? -eq 0 ]]; then # Set root directory of active environment CONDA_ENV_ROOT="$(pwd)" else echo "Creating conda environment '$ENV' from environment.yml ('$ENV' was not found using 'conda env list')" conda env create -q -f environment.yml echo "'$ENV' successfully created and will automatically activate in this directory" source activate $ENV if [ -e "requirements.txt" ]; then echo "Installing pip requirements from requirements.txt" pip install -q -r requirements.txt echo "Pip requirements successfully installed" fi fi fi elif [[ $PATH = */envs/* ]]\ && [[ $(pwd) != $CONDA_ENV_ROOT ]]\ && [[ $(pwd) != $CONDA_ENV_ROOT/* ]] then echo "Deactivating conda environment" export PIP_FORMAT=columns echo "Updating conda environment.yml (and pip requirements.txt)" conda env export > $CONDA_ENV_ROOT/environment.yml pip freeze > $CONDA_ENV_ROOT/requirements.txt CONDA_ENV_ROOT="" echo "Successfully updated environment.yml and requirements.txt" source deactivate echo "Deactivated successfully" fi } export PROMPT_COMMAND=conda_autoenv
<filename>src/goDeclaration.ts /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------*/ 'use strict'; import vscode = require('vscode'); import cp = require('child_process'); import path = require('path'); import { getBinPath } from './goPath'; import { byteOffsetAt } from './util'; import { promptForMissingTool } from './goInstallTools'; import { execContainer } from './goDocker'; export interface GoDefinitionInformtation { file: string; line: number; col: number; lines: string[]; doc: string; } export function definitionLocation(document: vscode.TextDocument, position: vscode.Position, includeDocs = true): Promise<GoDefinitionInformtation> { return new Promise<GoDefinitionInformtation>((resolve, reject) => { let wordAtPosition = document.getWordRangeAtPosition(position); let offset = byteOffsetAt(document, position); let p = execContainer('godef', ['-t', '-i', '-f', document.fileName, '-o', offset.toString()], {}, (err, stdout, stderr) => { // console.log(err, stdout, stderr); // }); // let godef = getBinPath('godef'); // // Spawn `godef` process // let p = cp.execFile(godef, ['-t', '-i', '-f', document.fileName, '-o', offset.toString()], {}, (err, stdout, stderr) => { try { if (err && (<any>err).code === 'ENOENT') { promptForMissingTool('godef'); } if (err) return resolve(null); let result = stdout.toString(); let lines = result.split('\n'); let match = /(.*):(\d+):(\d+)/.exec(lines[0]); if (!match) { // TODO: Gotodef on pkg name: // /usr/local/go/src/html/template\n return resolve(null); } let [_, file, line, col] = match; let signature = lines[1]; let godoc = getBinPath('godoc'); let pkgPath = path.dirname(file); let definitionInformation: GoDefinitionInformtation = { file: file, line: +line - 1, col: + col - 1, lines, doc: undefined }; if (!includeDocs) { return resolve(definitionInformation); } execContainer('godoc', [pkgPath], {}, (err, stdout, stderr) => { // cp.execFile(godoc, [pkgPath], {}, (err, stdout, stderr) => { if (err && (<any>err).code === 'ENOENT') { vscode.window.showInformationMessage('The "godoc" command is not available.'); } let godocLines = stdout.toString().split('\n'); let doc = ''; let sigName = signature.substring(0, signature.indexOf(' ')); let sigParams = signature.substring(signature.indexOf(' func') + 5); let searchSignature = 'func ' + sigName + sigParams; for (let i = 0; i < godocLines.length; i++) { if (godocLines[i] === searchSignature) { while (godocLines[++i].startsWith(' ')) { doc += godocLines[i].substring(4) + '\n'; } break; } } definitionInformation.doc = doc; return resolve(definitionInformation); }); } catch (e) { reject(e); } }); p.stdin.end(document.getText()); }); } export class GoDefinitionProvider implements vscode.DefinitionProvider { public provideDefinition(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Thenable<vscode.Location> { return definitionLocation(document, position, false).then(definitionInfo => { if (definitionInfo == null) return null; let definitionResource = vscode.Uri.file(definitionInfo.file); let pos = new vscode.Position(definitionInfo.line, definitionInfo.col); return new vscode.Location(definitionResource, pos); }); } }
/* globals $, app, socket, define */ define('admin/plugins/sensitiveword', ['settings'], (settings) => { const ACP = {}; const settingHash = 'sensitiveword'; const formClass = `.${settingHash}-settings`; function saveSettings() { settings.save(settingHash, $(formClass), () => { socket.emit('plugins.sensitiveword.reload', null, (err) => { if (err) { app.alertError(err); } else { app.alertSuccess('保存成功'); } }); }); } ACP.init = () => { settings.load(settingHash, $(formClass)); $('#save').on('click', saveSettings); }; return ACP; });
<reponame>754340156/NQhsb<gh_stars>1-10 #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #import "Canvas.h" #import "CSAnimation.h" #import "CSAnimationView.h" #import "CSBlurView.h" #import "CSNavigationController.h" #import "UIButton+TCCustomFont.h" #import "UILabel+TCCustomFont.h" #import "UINavigationBar+TCCustomFont.h" #import "UITextField+PlaceholderColor.h" #import "UITextField+TCCustomFont.h" #import "UITextView+TCCustomFont.h" FOUNDATION_EXPORT double CanvasVersionNumber; FOUNDATION_EXPORT const unsigned char CanvasVersionString[];
"use strict"; exports.__esModule = true; var sort_1 = require("./sort"); var makeIterator_1 = require("../function/makeIterator_"); /* * Sort array by the result of the callback */ function sortBy(arr, callback, context) { callback = makeIterator_1["default"](callback, context); return sort_1["default"](arr, function (a, b) { a = callback(a); b = callback(b); return a < b ? -1 : a > b ? 1 : 0; }); } exports["default"] = sortBy;
#!/bin/sh # # Copyright (C) 2012, 2013 Internet Systems Consortium, Inc. ("ISC") # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # $Id: tests.sh,v 1.1.2.3 2010/06/01 06:57:31 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh status=0 n=0 rm -f dig.out.* DIGOPTS="+tcp +noadd +nosea +nostat +nocmd +dnssec -p 5300" n=`expr $n + 1` echo "I: checking that NSEC wildcard non-existance proof is returned auth ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec +norec @10.53.0.1 > dig.out.ns1.test$n || ret=1 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns1.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC wildcard non-existance proof is returned non-validating ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec @10.53.0.2 > dig.out.ns2.test$n || ret=1 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns2.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns2.test$n > /dev/null && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC wildcard non-existance proof is returned validating ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec @10.53.0.3 > dig.out.ns3.test$n || ret=1 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns3.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns3.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC wildcard non-existance proof is returned validating + CD ($n)" ret=0 $DIG $DIGOPTS +cd a b.wild.nsec @10.53.0.5 > dig.out.ns5.test$n || ret=1 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns5.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns5.test$n > /dev/null && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that returned NSEC wildcard non-existance proof validates ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec @10.53.0.4 > dig.out.ns4.test$n || ret=1 grep -i 'a\.wild\.nsec\..*NSEC.*nsec\..*NSEC' dig.out.ns4.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns4.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC wildcard non-existance proof is returned private, validating ($n)" ret=0 $DIG $DIGOPTS a b.wild.private.nsec @10.53.0.3 > dig.out.ns3.test$n || ret=1 grep -i 'a\.wild\.private\.nsec\..*NSEC.*private\.nsec\..*NSEC' dig.out.ns3.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns3.test$n > /dev/null && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that returned NSEC wildcard non-existance proof for private zone validates ($n)" ret=0 $DIG $DIGOPTS a b.wild.private.nsec @10.53.0.4 > dig.out.ns4.test$n || ret=1 grep -i 'a\.wild\.private\.nsec\..*NSEC.*private\.nsec\..*NSEC' dig.out.ns4.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns4.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC3 wildcard non-existance proof is returned auth ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec3 +norec @10.53.0.1 > dig.out.ns1.test$n || ret=1 grep -i 'O3TJ8D9AJ54CBTFCQCJ3QK49CH7SF6H9\.nsec3\..*V5DLFB6UJNHR94LQ61FO607KGK12H88A' dig.out.ns1.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC3 wildcard non-existance proof is returned non-validating ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec3 @10.53.0.2 > dig.out.ns2.test$n || ret=1 grep -i 'O3TJ8D9AJ54CBTFCQCJ3QK49CH7SF6H9\.nsec3\..*V5DLFB6UJNHR94LQ61FO607KGK12H88A' dig.out.ns2.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns2.test$n > /dev/null && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC3 wildcard non-existance proof is returned validating ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec3 @10.53.0.3 > dig.out.ns3.test$n || ret=1 grep -i 'O3TJ8D9AJ54CBTFCQCJ3QK49CH7SF6H9\.nsec3\..*V5DLFB6UJNHR94LQ61FO607KGK12H88A' dig.out.ns3.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns3.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC3 wildcard non-existance proof is returned validating + CD ($n)" ret=0 $DIG $DIGOPTS +cd a b.wild.nsec3 @10.53.0.5 > dig.out.ns5.test$n || ret=1 grep -i 'O3TJ8D9AJ54CBTFCQCJ3QK49CH7SF6H9\.nsec3\..*V5DLFB6UJNHR94LQ61FO607KGK12H88A' dig.out.ns5.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns5.test$n > /dev/null && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that returned NSEC3 wildcard non-existance proof validates ($n)" ret=0 $DIG $DIGOPTS a b.wild.nsec3 @10.53.0.4 > dig.out.ns4.test$n || ret=1 grep -i 'O3TJ8D9AJ54CBTFCQCJ3QK49CH7SF6H9\.nsec3\..*V5DLFB6UJNHR94LQ61FO607KGK12H88A' dig.out.ns4.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns4.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that NSEC3 wildcard non-existance proof is returned private, validating ($n)" ret=0 $DIG $DIGOPTS a b.wild.private.nsec3 @10.53.0.3 > dig.out.ns3.test$n || ret=1 grep -i 'UDBSP4R8OUOT6HSO39VD8B5LMOSHRD5N\.private\.nsec3\..*NSEC3.*ASDRUIB7GO00OR92S5OUGI404LT27RNU' dig.out.ns3.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns3.test$n > /dev/null && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` echo "I: checking that returned NSEC3 wildcard non-existance proof for private zone validates ($n)" ret=0 $DIG $DIGOPTS a b.wild.private.nsec3 @10.53.0.4 > dig.out.ns4.test$n || ret=1 grep -i 'UDBSP4R8OUOT6HSO39VD8B5LMOSHRD5N\.private\.nsec3\..*NSEC3.*ASDRUIB7GO00OR92S5OUGI404LT27RNU' dig.out.ns4.test$n > /dev/null || ret=1 grep -i 'flags:.* ad[ ;]' dig.out.ns4.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" exit $status
#!/bin/bash script_path="$( cd "$(dirname "$0")" ; pwd -P )" app_path="${script_path}/../src" . ${script_path}/func_util.sh function build_common() { echo "build common lib..." if [ ! -d "${HOME}/ascend_ddk" ];then mkdir $HOME/ascend_ddk if [[ $? -ne 0 ]];then echo "ERROR: Execute mkdir command failed, Please check your environment" return 1 fi fi bash ${script_path}/build_ezdvpp.sh ${remote_host} if [ $? -ne 0 ];then echo "ERROR: Failed to deploy ezdvpp" return 1 fi return 0 } check_param_configure() { for i in `cat ${app_path}/param_configure.conf | awk -F'[ =]+' '{print $2}'` do if [[ ${i} = "" ]];then echo "please check your param_configure.conf to make sure that each parameter has a value" return 1 fi done #get and check format of remost_host ip check_remote_host if [ $? -ne 0 ];then return 1 fi model_name="colorization.om" return 0 } function main() { check_param_configure if [ $? -ne 0 ];then return 1 fi build_common if [ $? -ne 0 ];then echo "ERROR: Failed to deploy common lib" return 1 fi echo "Modify param information in graph.config..." count=0 for om_name in $(find ${script_path}/ -name "${model_name}");do let count++ if [ $count -ge 1 ];then break fi done if [ $count -eq 0 ];then echo "please push your model file in sample_colorization/script/ " return 1 fi om_name=$(basename ${om_name}) cp ${script_path}/graph.template ${app_path}/graph.config sed -i "s#\${MODEL_PATH}#../../script/${om_name}#g" ${app_path}/graph.config if [ $? != 0 ];then echo "gengrate graph.config error !" return 1 fi return 0 } main
#!/bin/bash source activate clipseq echo $PWD snakemake --js $PWD/jobscript.sh\ --printshellcmds\ --cluster-config $PWD/cluster.yaml\ --jobname 'make.{jobid}.{rulename}'\ --keep-going\ --stats $PWD/snakemake.stats\ --timestamp\ --rerun-incomplete\ --restart-times 10\ -j 300\ --cluster 'qsub -q cmb -l walltime={cluster.time} -l mem={cluster.mem} -l vmem={cluster.mem} -l pmem={cluster.mem} -l nodes=1:ppn={cluster.cores} -o {cluster.logdir} -e {cluster.logdir}'
package epizza; import org.junit.Test; public class ConfigServerApplicationTests { @Test public void contextLoads() { ConfigServerApplication.main(new String[] { "--spring.profiles.active=native,test" }); } }
<filename>Identifiers/Id/main.go // Id renders an identifier package main import ( "fmt" . "github.com/dave/jennifer/jen" ) func main() { c := If(Id("i").Op("==").Id("j")).Block( Return(Id("i")), ) fmt.Printf("%#v", c) // as `c` is a *jen.Statement not a file so can not save it by c.Save as it is only for File.Save }
import aiohttp import discord async def get_random_fact(ctx): async with aiohttp.ClientSession() as session: async with session.get("https://some-random-api.ml/facts") as response: if response.status == 200: data = await response.json() if "fact" in data and "image" in data: fact_embed = discord.Embed() fact_embed.add_field(value=data["fact"], name="Fact") fact_embed.set_image(url=data["image"]) fact_embed.set_footer(icon_url=ctx.author.avatar, text="Facts by: https://some-random-api.ml/") await ctx.send(embed=fact_embed) else: await ctx.send("API response is missing required data fields.") else: await ctx.send("API returned a {} status.".format(response.status))
def f(x,y): return (4 * (y**3)) - (3 * (x**4)) + (x**7) def find_max(x,y): best_val = f(x,y) best_x = x best_y = y for i in range(-10,11): for j in range(-10,11): curr_val = f(i,j) if curr_val > best_val: best_val = curr_val best_x = i best_y = j return (best_x, best_y, best_val) print("Max value is {} at ({}, {}).".format(*find_max(-10,10)))
/** * Created by Administrator on 2017/4/27. */ (function ($, window) { $(function () { // bg switcher var $btns = $('.bg-switch .bg'); $btns.click(function (e) { e.preventDefault(); $btns.removeClass('active'); $(this).addClass('active'); var bg = $(this).data('img'); $('html').css('background-image', "url('/plugin/theme/default/img/bgs/" + bg + "')"); }); }); }(this.jQuery, this)); $("form[name='login']").validate({ rules: { login_name: 'required', password: { required: true, minlength: 2, maxlength: 16 } }, messages: { login_name: '你必须填写一个登录名!', name: { required: '密码必须填写', minlength: '密码至少2位字符', maxlength: '密码最多16位字符' } }, submitHandler: function (form) { $.post('/manage/signin', $('form[name="login"]').serialize(), function (data) { if (data.result) { window.location.href = '/manage/panel'; } else { noticeInfo('fail', data.message); } }).error(function (data) { noticeInfo('fail', '登录失败请检查您的网络!'); }); } });
<gh_stars>0 import React from "react"; import { Nav, NavItem, NavDropdown, MenuItem } from "react-bootstrap"; const NavbarItemRight = profile => ( <Nav pullright="true"> <NavItem href="#"> <svg alt="you have to unread notification" aria-hidden="true" className="octicon octicon-bell" height="16" version="1.1" viewBox="0 0 14 16" width="14" > <path d="M14 12v1H0v-1l.73-.58c.77-.77.81-2.55 1.19-4.42C2.69 3.23 6 2 6 2c0-.55.45-1 1-1s1 .45 1 1c0 0 3.39 1.23 4.16 5 .38 1.88.42 3.66 1.19 4.42l.66.58H14zm-7 4c1.11 0 2-.89 2-2H5c0 1.11.89 2 2 2z" /> </svg> </NavItem> <NavDropdown eventKey={6} title={ <svg aria-hidden="true" className="octicon octicon-plus float-left mr-1 mt-1" height="16" version="1.1" viewBox="0 0 12 16" width="12" > <path d="M12 9H7v5H5V9H0V7h5V2h2v5h5z" /> </svg> } id="basic-nav-dropdown" > {Object.keys(profile.dropDownPlusIconVal).map(key => ( <MenuItem key={key}>{profile.dropDownPlusIconVal[key]}</MenuItem> ))} </NavDropdown> <NavDropdown eventKey={7} title={ <img alt="" className="avatar float-left mr-1" src={profile.profile.iconImage} height="20" width="20" /> } id="basic-nav-dropdown" > {Object.keys(profile.dropDownLogVal).map(key => ( <MenuItem key={key}> {profile.dropDownLogVal[key]} {profile.dropDownLogVal[key] === "Signed in as" ? profile.profile.login : ""} </MenuItem> ))} </NavDropdown> </Nav> ); export default NavbarItemRight;
package demo._42.htmlunit; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.web.servlet.htmlunit.MockMvcWebClientBuilder; import org.springframework.web.context.WebApplicationContext; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlAnchor; import com.gargoylesoftware.htmlunit.html.HtmlPage; import demo.AbstractTest; /** * Created by nlabrot on 16/09/15. */ public class HtmlUnitTest extends AbstractTest { @Autowired WebApplicationContext context; private WebClient webClient; @Before public void setup() { webClient = MockMvcWebClientBuilder .webAppContextSetup(context) .build(); } @Test public void testHtmlUnit() throws Exception { HtmlPage homepage = webClient.getPage("http://localhost/"); Assert.assertEquals("home" , homepage.getTitleText()); HtmlAnchor form = homepage.getHtmlElementById("homeLink"); HtmlPage newPage = form.click(); Assert.assertEquals("home" , newPage.getTitleText()); } }
def getFactors(num): factors = [] for i in range(1, num + 1): if num % i == 0: factors.append(i) return factors num = 24 factors = getFactors(num) print("Factors of", num, "=", factors)
class PostConditionError(Exception): pass def post_conditions(conditions): def decorator(func): def wrapper(*args, **kwargs): result = func(*args, **kwargs) for condition, check in conditions.items(): if not check(result): raise PostConditionError(f"Post-condition '{condition}' not met") return result return wrapper return decorator class TestClassBase: @post_conditions({ "Return value should be greater than 10": lambda ret: ret > 10 }) def query(self, arg1, arg2): return arg1 * arg2 # Test the implementation try: test_instance = TestClassBase() result = test_instance.query(2, 3) # This should violate the post-condition print(result) # This line should not be reached except PostConditionError as e: print(f"Post-condition error: {e}")
package com.tao.time; import java.time.DayOfWeek; import java.time.Duration; import java.time.Instant; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.Period; import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.time.temporal.ChronoUnit; import java.time.temporal.TemporalAdjusters; import java.util.Date; /** * @author DongTao * @since 2018-08-27 */ public class Time { public static void main(String[] args) { LocalDate localDate = LocalDate.now(); LocalTime localTime = LocalTime.now(); LocalDateTime localDateTime = LocalDateTime.now(); System.out.println("localData is " + localDate); System.out.println("localTime is " + localTime); System.out.println("localDataTime is " + localDateTime); System.out.println(localTime.withNano(0)); // 去掉纳秒 System.out.println(localDate.withYear(1996).withMonth(5).withDayOfMonth(13)); // 调整时间 System.out.println(localDate.with(TemporalAdjusters.firstDayOfNextMonth())); // 下月第一天 System.out.println(localDate.with(TemporalAdjusters.next(DayOfWeek.MONDAY))); // 下个星期一,不包括今天 System.out .println(localDate .with(TemporalAdjusters.nextOrSame(DayOfWeek.MONDAY))); // 下个星期一,包括今天 LocalDate ofData = LocalDate.of(2018, 8, 15); System.out.println(localDate.isLeapYear()); //闰年 System.out.println(localDate.isBefore(ofData)); System.out.println(localDate.isAfter(ofData)); System.out.println(localDate.plusDays(1)); // +1 天 System.out.println(localDate.plusDays(-1)); // -1 天 System.out.println(localDate.minusDays(1)); // -1 天 System.out.println(localDate.plus(2, ChronoUnit.DAYS)); // // +2 天 System.out.println(localTime.withNano(0)); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd"); System.out.println(LocalDate.parse("2018 03 12", formatter)); System.out.println(formatter.format(LocalDate.now())); //获得所有可用的时区 size=595 ZoneId.getAvailableZoneIds(); //获取默认ZoneId对象 ZoneId.systemDefault(); //获取指定时区的ZoneId对象 ZoneId.of("Asia/Shanghai"); //ZoneId.SHORT_IDS返回一个Map<String, String> 是时区的简称与全称的映射。下面可以得到字符串 Asia/Shanghai ZoneId.SHORT_IDS.get("CTT"); Instant instant = localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant(); Instant instant1 = localDateTime.atZone(ZoneId.systemDefault()).toInstant(); System.out.println(instant.toEpochMilli()); System.out.println(instant1.toEpochMilli()); LocalDate specifyDate = LocalDate.of(2018, 9, 13); LocalTime specifyTime = LocalTime.of(14, 2, 58); Period period = Period.between(specifyDate, localDate); // 天 Duration duration = Duration.between(specifyTime, localTime); // 时分秒 System.out.println(period.getDays()); System.out.println(period.getMonths()); System.out.println(duration.getSeconds()); System.out.println(specifyDate.until(localDate, ChronoUnit.DAYS)); // 获取相距天数,前 - 后 Date date1 = Date.from(instant); Instant instant2 = new Date().toInstant(); System.out.println(date1); System.out.println(instant2); final DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd"); final LocalDate parse = LocalDate.parse("2019-01-13", formatter1); System.out.println(parse); final Date from = Date.from(LocalDate.parse("2019-01-13", formatter1).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); System.out.println(from); System.out.println(new Date()); } }
<reponame>Shigawire/eui<filename>src/components/icon/assets/popout.js<gh_stars>0 import React from "react"; const EuiIconPopout = props => <svg width={16} height={16} viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}><path fillRule="evenodd" d="M2 14.01h12.49a.5.5 0 1 1 0 1h-13a.5.5 0 0 1-.49-.597V1.5a.5.5 0 0 1 1 0v12.51zm2.354-1.656a.5.5 0 0 1-.708-.708l8-8a.5.5 0 0 1 .708.708l-8 8zM15 5.5a.5.5 0 1 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 1 1 0-1h3A1.5 1.5 0 0 1 15 2.5v3z" /></svg>; export const icon = EuiIconPopout;
#!/usr/bin/env bash # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ export ASCEND_HOME=/usr/local/Ascend export ASCEND_VERSION=nnrt/latest export ARCH_PATTERN=. export LD_LIBRARY_PATH=${MX_SDK_HOME}/lib/modelpostprocessors:${LD_LIBRARY_PATH} dataset_path=$1 model_path=$2 if [ -d build ] ;then rm -rf build; fi if [ ! -d infer_result ] ;then mkdir infer_result; fi cmake -S . -B build make -C ./build -j ./build/fqa_opencv $dataset_path $model_path
export const allSelected = [ { name: '<NAME>', username: 'aditansh', regNo: '21BCI0046', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'papaya147', regNo: '21BDS0349', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'bear', regNo: '21BBS0162', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Axernox_Luxia', regNo: '21BCE2173', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'E_Lucid_At0r', regNo: '21BEC0148', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Dharrsan', regNo: '21BCI0022', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'sanaa', regNo: '21BCE3348', domains: ['tech'], status: 'committee', }, { name: 'Jvnganesh', username: 'Jvnganesh', regNo: '21BDS0085', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'prokan', regNo: '21BCE3649', domains: ['tech'], status: 'committee', }, { name: 'mayhul', username: 'mayhul', regNo: '21BCE0300', domains: ['tech'], status: 'committee', }, { name: 'Nitish Ramaraj', username: 'nitish123', regNo: '21BCE0220', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'prabhavms', regNo: '21BCI0155', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Pratham', regNo: '21BDS0133', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Devrana', regNo: '21BCE0226', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'rohan-verma01', regNo: '21BCE0498', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'shivam.gutgutia', regNo: '21BCE2620', domains: ['tech'], status: 'committee', }, { name: 'Shreyas', username: 'Nimkar', regNo: '21BBS0085', domains: ['tech'], status: 'committee', }, { name: 'Siddharth', username: 'siddnikh', regNo: '21BCE3587', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Veer1516', regNo: '21BCE0577', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Adhiraj11', regNo: '21BCE3915', domains: ['tech'], status: 'committee', }, { name: 'akansh', username: 'bansal', regNo: '21BCE3280', domains: ['tech'], status: 'committee', }, { name: 'Aman', username: 'Deep', regNo: '21BIT0225', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Anni_CH', regNo: '21BCI0333', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Arjun_Raizada', regNo: '21BEC2404', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'AryanC19', regNo: '21BCE3768', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'ayush02', regNo: '21BCE0856', domains: ['tech'], status: 'committee', }, { name: 'D.S.Naveen', username: 'DiazOnFire', regNo: '21BCE0336', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'dhruv_123', regNo: '21BML0078', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'girish0606', regNo: '21BCE0182', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: '_harshitadutta', regNo: '21BCE2474', domains: ['tech'], status: 'committee', }, { name: 'K.Sriharri', username: 'Harri1703', regNo: '21BCE3318', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Manav', regNo: '21BCE3592', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'MohmikaKapoor', regNo: '21BCT0027', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'nakshatra_raghav', regNo: '21BCE2728', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Pradhyumna', regNo: '21BCE0095', domains: ['tech'], status: 'committee', }, { name: 'Pratyaksh', username: 'poggers', regNo: '21BKT0092', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'Pujam2003', regNo: '21BCE3172', domains: ['tech'], status: 'committee', }, { name: 'Rishit', username: 'rishitg32', regNo: '21BCE0842', domains: ['tech'], status: 'committee', }, { name: 'Sarthak', username: 'sarthxk09', regNo: '21BCE2748', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'SP4ND4N', regNo: '21BCE0301', domains: ['tech'], status: 'committee', }, { name: 'Sriram', username: 'Escanor_123', regNo: '21BCE2512', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'srishapoddar', regNo: '21BCI0015', domains: ['tech'], status: 'committee', }, { name: '<NAME>', username: 'techbox24', regNo: '21BCT0084', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'SubstantialCattle5', regNo: '21BEC0784', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'RoyalPotato96', regNo: '21BCE0331', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'ArjunSIR', regNo: '21BKT0120', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'mekken', regNo: '21BIT0180', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'anirudhgray', regNo: '21BCT0168', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'alisha0704', regNo: '21BCE2569', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'BHAVYA14JAN', regNo: '21BCE0499', domains: ['tech'], status: 'core', }, { name: 'Sankalp', username: 'Qualice', regNo: '21BCE0830', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'adityak', regNo: '21BCT0164', domains: ['tech'], status: 'core', }, { name: '<NAME>', username: 'RodRedline', regNo: '21BCT0066', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: '21BEE0035', regNo: '21BEE0035', domains: ['management'], status: 'committee', }, { name: 'akansh', username: 'bansal', regNo: '21BCE3280', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'akshat', regNo: '21BEE0019', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'arihant14', regNo: '21BCT0356', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'aryan.khatuwala', regNo: '21BCE0545', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'devinachauhann', regNo: '21BCE2684', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Divija', regNo: '21BCT0026', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Diya12', regNo: '21BIT0392', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'sanaa', regNo: '21BCE3348', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'jashan272', regNo: '21BEC2339', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'JehG', regNo: '21BEC0302', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'techbox24', regNo: '21BCT0084', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Krishnan', regNo: '21BIT0662', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Mihika', regNo: '21BCE0198', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'nitish123', regNo: '21BCE0220', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'priyanshidixit', regNo: '21BIT0228', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'R.Lahari', regNo: '21BCE0330', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Sanaharora21', regNo: '21BCE2776', domains: ['management'], status: 'committee', }, { name: 'Shreenath Siriyala', username: 'ShreeTheTree', regNo: '21BIT0190', domains: ['management'], status: 'committee', }, { name: 'Shreyas', username: 'Nimkar', regNo: '21BBS0085', domains: ['management'], status: 'committee', }, { name: 'shwetansh', username: 'shwetansh420', regNo: '21BCE3404', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'sidd1506', regNo: '21BEC0862', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Sumanth', regNo: '21BMM0008', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Aayushx393', regNo: '21BCE0346', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'AdiraP', regNo: '21BCE2192', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'drop_database', regNo: '21BEC2304', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'ab12', regNo: '21BDS0010', domains: ['management'], status: 'committee', }, { name: 'Amlan', username: 'Amlan', regNo: '21BCE2945', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'AnshumanG', regNo: '21BIT0271', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: '21BCE0822', regNo: '21BCE0822', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'AryanC19', regNo: '21BCE3768', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'aryan__1703', regNo: '21BCE0662', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'asimn7', regNo: '21BCE3888', domains: ['management'], status: 'committee', }, { name: 'Astha', username: 'astha', regNo: '21BCE0288', domains: ['management'], status: 'committee', }, { name: 'D.S.Naveen', username: 'DiazOnFire', regNo: '21BCE0336', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Djagwanii', regNo: '21BEE0126', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'harsh_vardhan121002', regNo: '21BCE2236', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'kavin', regNo: '21BCE0341', domains: ['management'], status: 'committee', }, { name: 'Kinjal', username: 'kinjal', regNo: '21BCE2666', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'kushagra.gupta03', regNo: '21BCE3567', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'pranjal_pratosh', regNo: '21BCE3291', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'samparakat', regNo: '21BBT0297', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'SHAUNAKPAL', regNo: '21BCE2372', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'shravani_raney', regNo: '21BCE2910', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Srinithi', regNo: '21BCE3553', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'srishapoddar', regNo: '21BCI0015', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'Ramien_Dice', regNo: '21BCE3610', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: '21BCE2431', regNo: '21BCE2431', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'siddharth.17', regNo: '21BCE2001', domains: ['management'], status: 'committee', }, { name: '<NAME>', username: 'tanvi.s', regNo: '21BCE3780', domains: ['management'], status: 'committee', }, { name: 'Varun ', username: 'Varun_0361', regNo: '21BCE0361', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'RTrivedi17', regNo: '21BCE0417', domains: ['management'], status: 'core', }, { name: 'Pratyaksh', username: 'poggers', regNo: '21BKT0092', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'zizi', regNo: '21BCE3370', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'sanvi_c', regNo: '21BDS0166', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'SohaJagtap', regNo: '21BML0091', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'anubhav08', regNo: '21BEC0726', domains: ['management'], status: 'core', }, { name: '<NAME>', username: '_adya', regNo: '21BCE3391', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'Vaishnavi', regNo: '21BCB0191', domains: ['management'], status: 'core', }, { name: '<NAME>', username: 'Shubhi1706', regNo: '21BCB0242', domains: ['management'], status: 'core', }, { name: 'anushka', username: 'Anushka', regNo: '21BCE0516', domains: ['design'], status: 'committee', }, { name: 'parth', username: 'parthdoesccsagain', regNo: '19BCE3322', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'shravani_raney', regNo: '21BCE2910', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'Satya1210', regNo: '21BCE0909', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'rashmi', regNo: '21BCE0174', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'aditya.vispute', regNo: '21BCI0031', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'aniket_perai', regNo: '21BEC0440', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'GLORY', regNo: '21BCE2913', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: '21BCE2672', regNo: '21BCE2672', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'aryanjain', regNo: '21BCE0186', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'gauransh18', regNo: '21BCE0494', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'JehG', regNo: '21BEC0302', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'MedhanshJain', regNo: '21BCB0183', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'ShaikSuhail', regNo: '21MIC0025', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'taneekul29', regNo: '21BCE2353', domains: ['design'], status: 'committee', }, { name: 'Yuvraj', username: 'Singh', regNo: '21BCE0234', domains: ['design'], status: 'committee', }, { name: '<NAME>', username: 'arjun1903', regNo: '21BCE3663', domains: ['design'], status: 'core', }, { name: 'Prakhar', username: 'prakhar965', regNo: '21BCE0579', domains: ['design'], status: 'core', }, { name: '<NAME>', username: 'khushi_28', regNo: '21BCT0096', domains: ['design'], status: 'core', }, { name: '<NAME>', username: 'anushka', regNo: '21BCE0256', domains: ['design'], status: 'core', }, { name: '<NAME>', username: 'jatinjakhar', regNo: '21BCE2511', domains: ['design'], status: 'core', }, { name: 'Tia', username: 'TiaMartin', regNo: '21BCE3536', domains: ['design'], status: 'core', }, { name: 'Sahil ', username: 'Chugh', regNo: '21BCE3585', domains: ['video'], status: 'core', }, { name: '<NAME>', username: 'Pratham', regNo: '21BDS0133', domains: ['video'], status: 'core', }, { name: '<NAME>', username: 'E_Lucid_At0r', regNo: '21BEC0148', domains: ['design'], status: 'core', }, { name: '<NAME>', username: 'Aayushisingh', regNo: '21BCB0195', domains: ['video'], status: 'committee', }, { name: '<NAME>', username: '<EMAIL>', regNo: '21BCE3078', domains: ['video'], status: 'committee', }, { name: '<NAME>', username: 'pranjal_pratosh', regNo: '21BCE3291', domains: ['video'], status: 'committee', }, { name: '<NAME>', username: 'Pravinth12', regNo: '21BEC2482', domains: ['tech'], status: 'committee', }, ];
def validate_and_set_loaders(template_loaders, app_dirs, custom_loaders): if custom_loaders: set_loaders('custom_loaders', (template_loaders, False)) else: if app_dirs: set_loaders('default_loaders', (None, True)) else: set_loaders('default_loaders', (None, False))
import request from '@/utils/request' export function getScienceList(params) { return request({ url: '/vue-admin-template/science-area/List', method: 'post', params }) }
cd engine/src make cd ../python cp -r ../src cmaboss $PYTHON setup.py install
// Custom useDebounce hook implementation import { useEffect, useState } from 'react'; export const useDebounce = (callback, delay) => { const [debouncedCallback, setDebouncedCallback] = useState(null); useEffect(() => { const handler = setTimeout(() => { setDebouncedCallback(callback); }, delay); return () => { clearTimeout(handler); }; }, [callback, delay]); return debouncedCallback; }; // Usage in a React component import React, { useEffect, useContext, useState } from 'react'; import { useDebounce } from '../hooks/useDebounce'; import { useResource } from '../hooks/useResource'; import { CartContext } from './CartContext'; const Navbar = (props) => { const [products, productService] = useResource('api/products'); const { cartItems } = useContext(CartContext); const debouncedFetchProducts = useDebounce(() => { productService.fetchProducts(); }, 500); useEffect(() => { debouncedFetchProducts(); }, [cartItems]); // Rest of the component code };
<reponame>yupiik/bundlebee<filename>bundlebee-core/src/main/java/io/yupiik/bundlebee/core/kube/KubeConfig.java /* * Copyright (c) 2021 - <NAME> - https://www.yupiik.com * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package io.yupiik.bundlebee.core.kube; import lombok.Data; import javax.json.JsonObject; import javax.json.bind.annotation.JsonbProperty; import java.util.List; @Data public class KubeConfig { private String apiVersion; private String kind; @JsonbProperty("current-context") private String currentContext; private List<NamedCluster> clusters; private List<NamedContext> contexts; private List<NamedUser> users; @Data public static class NamedExtension { @JsonbProperty("name") // to let arthur detect it with our conf, not strictly needed in jvm mode private String name; private JsonObject extension; } @Data public static class NamedCluster { @JsonbProperty("name") // to let arthur detect it with our conf, not strictly needed in jvm mode private String name; private Cluster cluster; } @Data public static class NamedContext { @JsonbProperty("name") // to let arthur detect it with our conf, not strictly needed in jvm mode private String name; private Context context; } @Data public static class NamedUser { @JsonbProperty("name") // to let arthur detect it with our conf, not strictly needed in jvm mode private String name; private User user; } @Data public static class User { private String username; private String password; private String token; private String tokenFile; @JsonbProperty("client-certificate") private String clientCertificate; @JsonbProperty("client-certificate-data") private String clientCertificateData; @JsonbProperty("client-key") private String clientKey; @JsonbProperty("client-key-data") private String clientKeyData; } @Data public static class Context { private String cluster; private String namespace; private String user; @JsonbProperty("certificate-authority") private String certificateAuthority; private List<NamedExtension> extensions; } @Data public static class Cluster { private String server; @JsonbProperty("certificate-authority") private String certificateAuthority; @JsonbProperty("certificate-authority-data") private String certificateAuthorityData; @JsonbProperty("insecure-skip-tls-verify") private boolean insecureSkipTlsVerify; private List<NamedExtension> extensions; } }
#!/bin/sh python3 -m rasa_nlu.train --config config.yml --data training/rasa_dataset_training.json --path tarot_rasa
#!/bin/bash # INSTALA DEPENDENCIAS RSERVE sudo R -e 'dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)' sudo R -e '.libPaths(Sys.getenv("R_LIBS_USER"))' sudo R -e 'install.packages(c("R2HTML", "rjson", "DescTools", "Rserve", "haven"), repos="https://cloud.r-project.org/")' # sudo -i R # dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE) # .libPaths(Sys.getenv("R_LIBS_USER")) # install.packages("R2HTML", repos="https://cloud.r-project.org/" ) # install.packages("rjson", repos="https://cloud.r-project.org/" ) # install.packages("DescTools", repos="https://cloud.r-project.org/" ) # install.packages("Rserve", repos="https://cloud.r-project.org/" ) # install.packages("haven", repos="https://cloud.r-project.org/" ) # q() # n
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDefinitionNode = isDefinitionNode; exports.isExecutableDefinitionNode = isExecutableDefinitionNode; exports.isSelectionNode = isSelectionNode; exports.isValueNode = isValueNode; exports.isTypeNode = isTypeNode; exports.isTypeSystemDefinitionNode = isTypeSystemDefinitionNode; exports.isTypeDefinitionNode = isTypeDefinitionNode; exports.isTypeSystemExtensionNode = isTypeSystemExtensionNode; exports.isTypeExtensionNode = isTypeExtensionNode; var _kinds = require("./kinds"); /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ function isDefinitionNode(node) { return isExecutableDefinitionNode(node) || isTypeSystemDefinitionNode(node) || isTypeSystemExtensionNode(node); } function isExecutableDefinitionNode(node) { return node.kind === _kinds.Kind.OPERATION_DEFINITION || node.kind === _kinds.Kind.FRAGMENT_DEFINITION; } function isSelectionNode(node) { return node.kind === _kinds.Kind.FIELD || node.kind === _kinds.Kind.FRAGMENT_SPREAD || node.kind === _kinds.Kind.INLINE_FRAGMENT; } function isValueNode(node) { return node.kind === _kinds.Kind.VARIABLE || node.kind === _kinds.Kind.INT || node.kind === _kinds.Kind.FLOAT || node.kind === _kinds.Kind.STRING || node.kind === _kinds.Kind.BOOLEAN || node.kind === _kinds.Kind.NULL || node.kind === _kinds.Kind.ENUM || node.kind === _kinds.Kind.LIST || node.kind === _kinds.Kind.OBJECT; } function isTypeNode(node) { return node.kind === _kinds.Kind.NAMED_TYPE || node.kind === _kinds.Kind.LIST_TYPE || node.kind === _kinds.Kind.NON_NULL_TYPE; } function isTypeSystemDefinitionNode(node) { return node.kind === _kinds.Kind.SCHEMA_DEFINITION || isTypeDefinitionNode(node) || node.kind === _kinds.Kind.DIRECTIVE_DEFINITION; } function isTypeDefinitionNode(node) { return node.kind === _kinds.Kind.SCALAR_TYPE_DEFINITION || node.kind === _kinds.Kind.OBJECT_TYPE_DEFINITION || node.kind === _kinds.Kind.INTERFACE_TYPE_DEFINITION || node.kind === _kinds.Kind.UNION_TYPE_DEFINITION || node.kind === _kinds.Kind.ENUM_TYPE_DEFINITION || node.kind === _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION; } function isTypeSystemExtensionNode(node) { return node.kind === _kinds.Kind.SCHEMA_EXTENSION || isTypeExtensionNode(node); } function isTypeExtensionNode(node) { return node.kind === _kinds.Kind.SCALAR_TYPE_EXTENSION || node.kind === _kinds.Kind.OBJECT_TYPE_EXTENSION || node.kind === _kinds.Kind.INTERFACE_TYPE_EXTENSION || node.kind === _kinds.Kind.UNION_TYPE_EXTENSION || node.kind === _kinds.Kind.ENUM_TYPE_EXTENSION || node.kind === _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION; }
#!/bin/sh /src/manage.py migrate --noinput /src/manage.py generatefakedata /src/manage.py runserver 0.0.0.0:8080
#!/bin/bash set -eou pipefail cd "$( dirname "${BASH_SOURCE[0]}" )/.." printf '#!/bin/bash\nset -e\nnpm test\n' > .git/hooks/pre-push chmod +x .git/hooks/pre-push cp .git/hooks/pre-push .git/hooks/pre-commit printf '#!/bin/bash\nset -e\nnpm install\nnpm test\n' > .git/hooks/post-merge chmod +x .git/hooks/post-merge cp .git/hooks/post-merge .git/hooks/post-rewrite
#!/bin/bash # Copyright (C) 2021, Raffaello Bonghi <raffaello@rnext.it> # All rights reserved # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. Neither the name of the copyright holder nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. bold=`tput bold` red=`tput setaf 1` green=`tput setaf 2` yellow=`tput setaf 3` reset=`tput sgr0` PLATFORM="$(uname -m)" usage() { if [ "$1" != "" ]; then echo "${red}$1${reset}" >&2 fi local name=$(basename ${0}) echo "nanosaur-jetson-runner installer." >&2 echo "" >&2 echo "Options:" >&2 echo " -h|--help | This help" >&2 echo " -y | Run this script silent" >&2 } install_jetson() { echo "Install on ${bold}${green}NVIDIA${reset} ${green}Jetson platform${reset}" # Check if is installed docker-compose if ! command -v docker-compose &> /dev/null ; then echo " - ${bold}${green}Install docker-compose${reset}" sudo apt-get install -y libffi-dev python-openssl libssl-dev sudo -H pip3 install -U pip sudo pip3 install -U docker-compose fi local PATH_HOST_FILES4CONTAINER="/etc/nvidia-container-runtime/host-files-for-container.d" echo "${green} - Enable dockers to build jetson_multimedia api folder${reset}" sudo cp docker-config/jetson_multimedia_api.csv $PATH_HOST_FILES4CONTAINER/jetson_multimedia_api.csv } install_x86() { # Check if is running on NVIDIA Jetson platform echo "Install on ${bold}${green}Desktop${reset} ${green}platform${reset}" # Check if GPU is installed if type nvidia-smi &>/dev/null; then GPU_ATTACHED=(`nvidia-smi -a | grep "Attached GPUs"`) if [ ! -z $GPU_ATTACHED ]; then echo "${bold}${green}GPU attached!${reset}" else echo "${red}Install NVIDIA grafic card drivers and rerun!${reset}" exit 33 fi fi # https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html # https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/user-guide.html # https://stackoverflow.com/questions/1298066/how-can-i-check-if-a-package-is-installed-and-install-it-if-not REQUIRED_PKG="nvidia-docker2" PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG|grep "install ok installed") echo Checking for $REQUIRED_PKG: $PKG_OK if [ "" = "$PKG_OK" ]; then echo "No $REQUIRED_PKG. Setting up $REQUIRED_PKG." # Add distribution distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \ && curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list # Install nvidia-docker2 sudo apt-get install -y nvidia-docker2 fi } main() { local SILENT=false # Decode all information from startup while [ -n "$1" ]; do case "$1" in -h|--help) # Load help usage exit 0 ;; -y) SILENT=true ;; *) usage "[ERROR] Unknown option: $1" >&2 exit 1 ;; esac shift 1 done while ! $SILENT; do read -p "Do you wish to install nanosaur-runner? [Y/n] " yn case $yn in [Yy]* ) break;; [Nn]* ) exit;; * ) echo "Please answer yes or no.";; esac done # Setup enviroment if [ ! -f .env ] ; then touch .env echo "GITHUB_ACTIONS_RUNNER_NAME=$HOSTNAME" >> .env read -p "Enter GitHub Action token: " TOKEN echo "GITHUB_ACTIONS_ACCESS_TOKEN=$TOKEN" >> .env echo "HOME=$HOME" >> .env fi sudo -v # Check if is running on NVIDIA Jetson platform if [[ $PLATFORM = "aarch64" ]]; then install_jetson else install_x86 fi if ! getent group docker | grep -q "\b$USER\b" ; then echo " - Add docker permissions to ${bold}${green}user=$USER${reset}" sudo usermod -aG docker $USER fi # Make sure the nvidia docker runtime will be used for builds DEFAULT_RUNTIME=$(docker info | grep "Default Runtime: nvidia" ; true) if [[ -z "$DEFAULT_RUNTIME" ]]; then echo "${yellow} - Set runtime nvidia on /etc/docker/daemon.json${reset}" sudo mv /etc/docker/daemon.json /etc/docker/daemon.json.bkp sudo cp docker-config/daemon.json /etc/docker/daemon.json fi echo "${yellow} - Restart docker server${reset}" sudo systemctl restart docker.service } main $@ exit 0 #EOF
<gh_stars>1-10 // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. import { generateRandomTables, // generateDictionaryTables } from '../../../data/tables'; import { ArrowIOTestHelper } from '../helpers'; import { RecordBatchReader, RecordBatchFileReader, RecordBatchStreamReader, AsyncRecordBatchFileReader, AsyncRecordBatchStreamReader } from '../../../Arrow'; const { parse: bignumJSONParse } = require('json-bignum'); for (const table of generateRandomTables([10, 20, 30])) { const name = `[\n ${table.schema.fields.join(',\n ')}\n]`; // eslint-disable-next-line jest/valid-describe describe('RecordBatchReader.from', ((table, name) => () => { testFromFile(ArrowIOTestHelper.file(table), name); testFromJSON(ArrowIOTestHelper.json(table), name); testFromStream(ArrowIOTestHelper.stream(table), name); })(table, name)); } function testFromJSON(io: ArrowIOTestHelper, name: string) { describe(`should return a RecordBatchJSONReader (${name})`, () => { test(`Uint8Array`, io.buffer((buffer) => { const json = bignumJSONParse(`${Buffer.from(buffer)}`); const reader = RecordBatchReader.from(json); expect(reader.isSync()).toEqual(true); expect(reader.isAsync()).toEqual(false); expect(reader).toBeInstanceOf(RecordBatchStreamReader); })); }); } function testFromFile(io: ArrowIOTestHelper, name: string) { describe(`should return a RecordBatchFileReader (${name})`, () => { test(`Uint8Array`, io.buffer(syncSync)); test(`Iterable`, io.iterable(syncSync)); test('AsyncIterable', io.asyncIterable(asyncSync)); test('fs.FileHandle', io.fsFileHandle(asyncAsync)); test('fs.ReadStream', io.fsReadableStream(asyncSync)); test('stream.Readable', io.nodeReadableStream(asyncSync)); test('whatwg.ReadableStream', io.whatwgReadableStream(asyncSync)); test('whatwg.ReadableByteStream', io.whatwgReadableByteStream(asyncSync)); test(`Promise<Uint8Array>`, io.buffer((source) => asyncSync(Promise.resolve(source)))); test(`Promise<Iterable>`, io.iterable((source) => asyncSync(Promise.resolve(source)))); test('Promise<AsyncIterable>', io.asyncIterable((source) => asyncSync(Promise.resolve(source)))); test('Promise<fs.FileHandle>', io.fsFileHandle((source) => asyncAsync(Promise.resolve(source)))); test('Promise<fs.ReadStream>', io.fsReadableStream((source) => asyncSync(Promise.resolve(source)))); test('Promise<stream.Readable>', io.nodeReadableStream((source) => asyncSync(Promise.resolve(source)))); test('Promise<whatwg.ReadableStream>', io.whatwgReadableStream((source) => asyncSync(Promise.resolve(source)))); test('Promise<whatwg.ReadableByteStream>', io.whatwgReadableByteStream((source) => asyncSync(Promise.resolve(source)))); }); function syncSync(source: any) { const reader = RecordBatchReader.from(source); expect(reader.isSync()).toEqual(true); expect(reader.isAsync()).toEqual(false); expect(reader).toBeInstanceOf(RecordBatchFileReader); } async function asyncSync(source: any) { const pending = RecordBatchReader.from(source); expect(pending).toBeInstanceOf(Promise); const reader = await pending; expect(reader.isSync()).toEqual(true); expect(reader.isAsync()).toEqual(false); expect(reader).toBeInstanceOf(RecordBatchFileReader); } async function asyncAsync(source: any) { const pending = RecordBatchReader.from(source); expect(pending).toBeInstanceOf(Promise); const reader = await pending; expect(reader.isSync()).toEqual(false); expect(reader.isAsync()).toEqual(true); expect(reader).toBeInstanceOf(AsyncRecordBatchFileReader); } } function testFromStream(io: ArrowIOTestHelper, name: string) { describe(`should return a RecordBatchStreamReader (${name})`, () => { test(`Uint8Array`, io.buffer(syncSync)); test(`Iterable`, io.iterable(syncSync)); test('AsyncIterable', io.asyncIterable(asyncAsync)); test('fs.FileHandle', io.fsFileHandle(asyncAsync)); test('fs.ReadStream', io.fsReadableStream(asyncAsync)); test('stream.Readable', io.nodeReadableStream(asyncAsync)); test('whatwg.ReadableStream', io.whatwgReadableStream(asyncAsync)); test('whatwg.ReadableByteStream', io.whatwgReadableByteStream(asyncAsync)); test(`Promise<Uint8Array>`, io.buffer((source) => asyncSync(Promise.resolve(source)))); test(`Promise<Iterable>`, io.iterable((source) => asyncSync(Promise.resolve(source)))); test('Promise<AsyncIterable>', io.asyncIterable((source) => asyncAsync(Promise.resolve(source)))); test('Promise<fs.FileHandle>', io.fsFileHandle((source) => asyncAsync(Promise.resolve(source)))); test('Promise<fs.ReadStream>', io.fsReadableStream((source) => asyncAsync(Promise.resolve(source)))); test('Promise<stream.Readable>', io.nodeReadableStream((source) => asyncAsync(Promise.resolve(source)))); test('Promise<whatwg.ReadableStream>', io.whatwgReadableStream((source) => asyncAsync(Promise.resolve(source)))); test('Promise<whatwg.ReadableByteStream>', io.whatwgReadableByteStream((source) => asyncAsync(Promise.resolve(source)))); }); function syncSync(source: any) { const reader = RecordBatchReader.from(source); expect(reader.isSync()).toEqual(true); expect(reader.isAsync()).toEqual(false); expect(reader).toBeInstanceOf(RecordBatchStreamReader); } async function asyncSync(source: any) { const pending = RecordBatchReader.from(source); expect(pending).toBeInstanceOf(Promise); const reader = await pending; expect(reader.isSync()).toEqual(true); expect(reader.isAsync()).toEqual(false); expect(reader).toBeInstanceOf(RecordBatchStreamReader); } async function asyncAsync(source: any) { const pending = RecordBatchReader.from(source); expect(pending).toBeInstanceOf(Promise); const reader = await pending; expect(reader.isSync()).toEqual(false); expect(reader.isAsync()).toEqual(true); expect(reader).toBeInstanceOf(AsyncRecordBatchStreamReader); } }
/** * This file is part of ORB-SLAM2. * */ #ifndef MAP_H #define MAP_H #include "MapPoint.h" #include "KeyFrame.h" #include <set> #include <mutex> namespace ORB_SLAM2 { class MapPoint; class KeyFrame; class Map { public: Map(); void AddKeyFrame(KeyFrame* pKF); void AddMapPoint(MapPoint* pMP); void EraseMapPoint(MapPoint* pMP); void EraseKeyFrame(KeyFrame* pKF); void SetReferenceMapPoints(const std::vector<MapPoint*> &vpMPs); void InformNewBigChange(); int GetLastBigChangeIdx(); std::vector<KeyFrame*> GetAllKeyFrames(); std::vector<MapPoint*> GetAllMapPoints(); std::vector<MapPoint*> GetReferenceMapPoints(); long unsigned int MapPointsInMap(); long unsigned KeyFramesInMap(); long unsigned int GetMaxKFid(); void clear(); vector<KeyFrame*> mvpKeyFrameOrigins; std::mutex mMutexMapUpdate; // This avoid that two points are created simultaneously in separate threads (id conflict) std::mutex mMutexPointCreation; protected: std::set<MapPoint*> mspMapPoints; std::set<KeyFrame*> mspKeyFrames; std::vector<MapPoint*> mvpReferenceMapPoints; long unsigned int mnMaxKFid; // Index related to a big change in the map (loop closure, global BA) int mnBigChangeIdx; std::mutex mMutexMap; }; } //namespace ORB_SLAM #endif // MAP_H
db.collection.find({ "key": { $regex: "textvalue" } })
<filename>services/api/.prettierrc.js module.exports = { ...require('@bedrockio/prettier-config'), printWidth: 120, };
// -------------------------------------------- // sbt plugins for this Skinny app project // -------------------------------------------- resolvers += Classpaths.sbtPluginReleases // -------- // Scalatra sbt plugin addSbtPlugin("org.scalatra.sbt" % "scalatra-sbt" % "0.3.5" excludeAll( ExclusionRule(organization = "org.mortbay.jetty"), ExclusionRule(organization = "org.eclipse.jetty"), ExclusionRule(organization = "org.apache.tomcat.embed"), ExclusionRule(organization = "com.earldouglas") )) // scalatra-sbt depends on xsbt-web-plugin // TODO: scalatra-sbt 0.3.5 is incompatible with xsbt-web-plugin 1.0.0 // https://github.com/scalatra/scalatra-sbt/issues/9 addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.9.1" excludeAll( ExclusionRule(organization = "org.mortbay.jetty"), ExclusionRule(organization = "org.eclipse.jetty"), ExclusionRule(organization = "org.apache.tomcat.embed") )) // for Scalate template compilaion addSbtPlugin("com.mojolly.scalate" % "xsbt-scalate-generator" % "0.5.0") // -------- // scalarifrom for code formatting // NOTE: Disabled by default because this is confusing for beginners // //addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0") // -------- // IntelliJ IDEA addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0") // -------- // scoverage for test coverage (./skinny test:coverage) addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.4") // -------- // scalac options for sbt scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature") // addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.1.8") // addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
-- noinspection SqlNoDataSourceInspectionForFile -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.1 -- Dumped by pg_dump version 9.6.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; -- -- Name: fridam; Type: SCHEMA; Schema: -; Owner: openidm -- CREATE SCHEMA fridam; ALTER SCHEMA fridam OWNER TO openidm; -- -- Name: openidm; Type: SCHEMA; Schema: -; Owner: openidm -- CREATE SCHEMA openidm; ALTER SCHEMA openidm OWNER TO openidm; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; -- -- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA openidm; -- -- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams'; SET search_path = fridam, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: clustercache; Type: TABLE; Schema: fridam; Owner: openidm -- CREATE TABLE clustercache ( key text NOT NULL, assignments text[] NOT NULL ); ALTER TABLE clustercache OWNER TO openidm; -- -- Name: service; Type: TABLE; Schema: fridam; Owner: openidm -- CREATE TABLE service ( label text NOT NULL, description text NOT NULL, allowedroles text[], onboardingendpoint text, onboardingroles text[], oauth2clientid text NOT NULL, activationredirecturl text, selfregistrationallowed boolean NOT NULL ); ALTER TABLE service OWNER TO openidm; SET search_path = openidm, pg_catalog; -- -- Name: act_ge_bytearray; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ge_bytearray ( id_ character varying(64) NOT NULL, rev_ integer, name_ character varying(255), deployment_id_ character varying(64), bytes_ bytea, generated_ boolean ); ALTER TABLE act_ge_bytearray OWNER TO openidm; -- -- Name: act_ge_property; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ge_property ( name_ character varying(64) NOT NULL, value_ character varying(300), rev_ integer ); ALTER TABLE act_ge_property OWNER TO openidm; -- -- Name: act_hi_actinst; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_actinst ( id_ character varying(64) NOT NULL, proc_def_id_ character varying(64) NOT NULL, proc_inst_id_ character varying(64) NOT NULL, execution_id_ character varying(64) NOT NULL, act_id_ character varying(255) NOT NULL, task_id_ character varying(64), call_proc_inst_id_ character varying(64), act_name_ character varying(255), act_type_ character varying(255) NOT NULL, assignee_ character varying(255), start_time_ timestamp without time zone NOT NULL, end_time_ timestamp without time zone, duration_ bigint, tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_hi_actinst OWNER TO openidm; -- -- Name: act_hi_attachment; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_attachment ( id_ character varying(64) NOT NULL, rev_ integer, user_id_ character varying(255), name_ character varying(255), description_ character varying(4000), type_ character varying(255), task_id_ character varying(64), proc_inst_id_ character varying(64), url_ character varying(4000), content_id_ character varying(64) ); ALTER TABLE act_hi_attachment OWNER TO openidm; -- -- Name: act_hi_comment; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_comment ( id_ character varying(64) NOT NULL, type_ character varying(255), time_ timestamp without time zone NOT NULL, user_id_ character varying(255), task_id_ character varying(64), proc_inst_id_ character varying(64), action_ character varying(255), message_ character varying(4000), full_msg_ bytea ); ALTER TABLE act_hi_comment OWNER TO openidm; -- -- Name: act_hi_detail; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_detail ( id_ character varying(64) NOT NULL, type_ character varying(255) NOT NULL, proc_inst_id_ character varying(64), execution_id_ character varying(64), task_id_ character varying(64), act_inst_id_ character varying(64), name_ character varying(255) NOT NULL, var_type_ character varying(64), rev_ integer, time_ timestamp without time zone NOT NULL, bytearray_id_ character varying(64), double_ double precision, long_ bigint, text_ character varying(4000), text2_ character varying(4000) ); ALTER TABLE act_hi_detail OWNER TO openidm; -- -- Name: act_hi_identitylink; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_identitylink ( id_ character varying(64) NOT NULL, group_id_ character varying(255), type_ character varying(255), user_id_ character varying(255), task_id_ character varying(64), proc_inst_id_ character varying(64) ); ALTER TABLE act_hi_identitylink OWNER TO openidm; -- -- Name: act_hi_procinst; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_procinst ( id_ character varying(64) NOT NULL, proc_inst_id_ character varying(64) NOT NULL, business_key_ character varying(255), proc_def_id_ character varying(64) NOT NULL, start_time_ timestamp without time zone NOT NULL, end_time_ timestamp without time zone, duration_ bigint, start_user_id_ character varying(255), start_act_id_ character varying(255), end_act_id_ character varying(255), super_process_instance_id_ character varying(64), delete_reason_ character varying(4000), tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_hi_procinst OWNER TO openidm; -- -- Name: act_hi_taskinst; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_taskinst ( id_ character varying(64) NOT NULL, proc_def_id_ character varying(64), task_def_key_ character varying(255), proc_inst_id_ character varying(64), execution_id_ character varying(64), name_ character varying(255), parent_task_id_ character varying(64), description_ character varying(4000), owner_ character varying(255), assignee_ character varying(255), start_time_ timestamp without time zone NOT NULL, claim_time_ timestamp without time zone, end_time_ timestamp without time zone, duration_ bigint, delete_reason_ character varying(4000), priority_ integer, due_date_ timestamp without time zone, form_key_ character varying(255), category_ character varying(255), tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_hi_taskinst OWNER TO openidm; -- -- Name: act_hi_varinst; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_hi_varinst ( id_ character varying(64) NOT NULL, proc_inst_id_ character varying(64), execution_id_ character varying(64), task_id_ character varying(64), name_ character varying(255) NOT NULL, var_type_ character varying(100), rev_ integer, bytearray_id_ character varying(64), double_ double precision, long_ bigint, text_ character varying(4000), text2_ character varying(4000), create_time_ timestamp without time zone, last_updated_time_ timestamp without time zone ); ALTER TABLE act_hi_varinst OWNER TO openidm; -- -- Name: act_id_group; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_id_group ( id_ character varying(64) NOT NULL, rev_ integer, name_ character varying(255), type_ character varying(255) ); ALTER TABLE act_id_group OWNER TO openidm; -- -- Name: act_id_info; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_id_info ( id_ character varying(64) NOT NULL, rev_ integer, user_id_ character varying(64), type_ character varying(64), key_ character varying(255), value_ character varying(255), password_ bytea, parent_id_ character varying(255) ); ALTER TABLE act_id_info OWNER TO openidm; -- -- Name: act_id_membership; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_id_membership ( user_id_ character varying(64) NOT NULL, group_id_ character varying(64) NOT NULL ); ALTER TABLE act_id_membership OWNER TO openidm; -- -- Name: act_id_user; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_id_user ( id_ character varying(64) NOT NULL, rev_ integer, first_ character varying(255), last_ character varying(255), email_ character varying(255), pwd_ character varying(255), picture_id_ character varying(64) ); ALTER TABLE act_id_user OWNER TO openidm; -- -- Name: act_re_deployment; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_re_deployment ( id_ character varying(64) NOT NULL, name_ character varying(255), category_ character varying(255), tenant_id_ character varying(255) DEFAULT ''::character varying, deploy_time_ timestamp without time zone ); ALTER TABLE act_re_deployment OWNER TO openidm; -- -- Name: act_re_model; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_re_model ( id_ character varying(64) NOT NULL, rev_ integer, name_ character varying(255), key_ character varying(255), category_ character varying(255), create_time_ timestamp without time zone, last_update_time_ timestamp without time zone, version_ integer, meta_info_ character varying(4000), deployment_id_ character varying(64), editor_source_value_id_ character varying(64), editor_source_extra_value_id_ character varying(64), tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_re_model OWNER TO openidm; -- -- Name: act_re_procdef; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_re_procdef ( id_ character varying(64) NOT NULL, rev_ integer, category_ character varying(255), name_ character varying(255), key_ character varying(255) NOT NULL, version_ integer NOT NULL, deployment_id_ character varying(64), resource_name_ character varying(4000), dgrm_resource_name_ character varying(4000), description_ character varying(4000), has_start_form_key_ boolean, suspension_state_ integer, tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_re_procdef OWNER TO openidm; -- -- Name: act_ru_event_subscr; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ru_event_subscr ( id_ character varying(64) NOT NULL, rev_ integer, event_type_ character varying(255) NOT NULL, event_name_ character varying(255), execution_id_ character varying(64), proc_inst_id_ character varying(64), activity_id_ character varying(64), configuration_ character varying(255), created_ timestamp without time zone NOT NULL, proc_def_id_ character varying(64), tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_ru_event_subscr OWNER TO openidm; -- -- Name: act_ru_execution; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ru_execution ( id_ character varying(64) NOT NULL, rev_ integer, proc_inst_id_ character varying(64), business_key_ character varying(255), parent_id_ character varying(64), proc_def_id_ character varying(64), super_exec_ character varying(64), act_id_ character varying(255), is_active_ boolean, is_concurrent_ boolean, is_scope_ boolean, is_event_scope_ boolean, suspension_state_ integer, cached_ent_state_ integer, tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_ru_execution OWNER TO openidm; -- -- Name: act_ru_identitylink; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ru_identitylink ( id_ character varying(64) NOT NULL, rev_ integer, group_id_ character varying(255), type_ character varying(255), user_id_ character varying(255), task_id_ character varying(64), proc_inst_id_ character varying(64), proc_def_id_ character varying(64) ); ALTER TABLE act_ru_identitylink OWNER TO openidm; -- -- Name: act_ru_job; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ru_job ( id_ character varying(64) NOT NULL, rev_ integer, type_ character varying(255) NOT NULL, lock_exp_time_ timestamp without time zone, lock_owner_ character varying(255), exclusive_ boolean, execution_id_ character varying(64), process_instance_id_ character varying(64), proc_def_id_ character varying(64), retries_ integer, exception_stack_id_ character varying(64), exception_msg_ character varying(4000), duedate_ timestamp without time zone, repeat_ character varying(255), handler_type_ character varying(255), handler_cfg_ character varying(4000), tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_ru_job OWNER TO openidm; -- -- Name: act_ru_task; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ru_task ( id_ character varying(64) NOT NULL, rev_ integer, execution_id_ character varying(64), proc_inst_id_ character varying(64), proc_def_id_ character varying(64), name_ character varying(255), parent_task_id_ character varying(64), description_ character varying(4000), task_def_key_ character varying(255), owner_ character varying(255), assignee_ character varying(255), delegation_ character varying(64), priority_ integer, create_time_ timestamp without time zone, due_date_ timestamp without time zone, category_ character varying(255), suspension_state_ integer, tenant_id_ character varying(255) DEFAULT ''::character varying ); ALTER TABLE act_ru_task OWNER TO openidm; -- -- Name: act_ru_variable; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE act_ru_variable ( id_ character varying(64) NOT NULL, rev_ integer, type_ character varying(255) NOT NULL, name_ character varying(255) NOT NULL, execution_id_ character varying(64), proc_inst_id_ character varying(64), task_id_ character varying(64), bytearray_id_ character varying(64), double_ double precision, long_ bigint, text_ character varying(4000), text2_ character varying(4000) ); ALTER TABLE act_ru_variable OWNER TO openidm; -- -- Name: auditaccess; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE auditaccess ( objectid character varying(56) NOT NULL, activitydate character varying(29) NOT NULL, eventname character varying(255), transactionid character varying(255) NOT NULL, userid character varying(255) DEFAULT NULL::character varying, trackingids text, server_ip character varying(40), server_port character varying(5), client_ip character varying(40), client_port character varying(5), request_protocol character varying(255), request_operation character varying(255), request_detail text, http_request_secure character varying(255), http_request_method character varying(255), http_request_path character varying(255), http_request_queryparameters text, http_request_headers text, http_request_cookies text, http_response_headers text, response_status character varying(255), response_statuscode character varying(255), response_elapsedtime character varying(255), response_elapsedtimeunits character varying(255), response_detail text, roles text ); ALTER TABLE auditaccess OWNER TO openidm; -- -- Name: auditactivity; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE auditactivity ( objectid character varying(56) NOT NULL, activitydate character varying(29) NOT NULL, eventname character varying(255) DEFAULT NULL::character varying, transactionid character varying(255) NOT NULL, userid character varying(255) DEFAULT NULL::character varying, trackingids text, runas character varying(255) DEFAULT NULL::character varying, activityobjectid character varying(255), operation character varying(255), subjectbefore text, subjectafter text, changedfields text, subjectrev character varying(255) DEFAULT NULL::character varying, passwordchanged character varying(5) DEFAULT NULL::character varying, message text, provider character varying(255) DEFAULT NULL::character varying, context character varying(25) DEFAULT NULL::character varying, status character varying(20) ); ALTER TABLE auditactivity OWNER TO openidm; -- -- Name: auditauthentication; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE auditauthentication ( objectid character varying(56) NOT NULL, transactionid character varying(255) NOT NULL, activitydate character varying(29) NOT NULL, userid character varying(255) DEFAULT NULL::character varying, eventname character varying(50) DEFAULT NULL::character varying, provider character varying(255) DEFAULT NULL::character varying, method character varying(15) DEFAULT NULL::character varying, result character varying(255) DEFAULT NULL::character varying, principals text, context text, entries text, trackingids text ); ALTER TABLE auditauthentication OWNER TO openidm; -- -- Name: auditconfig; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE auditconfig ( objectid character varying(56) NOT NULL, activitydate character varying(29) NOT NULL, eventname character varying(255) DEFAULT NULL::character varying, transactionid character varying(255) NOT NULL, userid character varying(255) DEFAULT NULL::character varying, trackingids text, runas character varying(255) DEFAULT NULL::character varying, configobjectid character varying(255), operation character varying(255), beforeobject text, afterobject text, changedfields text, rev character varying(255) DEFAULT NULL::character varying ); ALTER TABLE auditconfig OWNER TO openidm; -- -- Name: auditrecon; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE auditrecon ( objectid character varying(56) NOT NULL, transactionid character varying(255) NOT NULL, activitydate character varying(29) NOT NULL, eventname character varying(50) DEFAULT NULL::character varying, userid character varying(255) DEFAULT NULL::character varying, trackingids text, activity character varying(24) DEFAULT NULL::character varying, exceptiondetail text, linkqualifier character varying(255) DEFAULT NULL::character varying, mapping character varying(511) DEFAULT NULL::character varying, message text, messagedetail text, situation character varying(24) DEFAULT NULL::character varying, sourceobjectid character varying(511) DEFAULT NULL::character varying, status character varying(20) DEFAULT NULL::character varying, targetobjectid character varying(511) DEFAULT NULL::character varying, reconciling character varying(12) DEFAULT NULL::character varying, ambiguoustargetobjectids text, reconaction character varying(36) DEFAULT NULL::character varying, entrytype character varying(7) DEFAULT NULL::character varying, reconid character varying(56) DEFAULT NULL::character varying ); ALTER TABLE auditrecon OWNER TO openidm; -- -- Name: auditsync; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE auditsync ( objectid character varying(56) NOT NULL, transactionid character varying(255) NOT NULL, activitydate character varying(29) NOT NULL, eventname character varying(50) DEFAULT NULL::character varying, userid character varying(255) DEFAULT NULL::character varying, trackingids text, activity character varying(24) DEFAULT NULL::character varying, exceptiondetail text, linkqualifier character varying(255) DEFAULT NULL::character varying, mapping character varying(511) DEFAULT NULL::character varying, message text, messagedetail text, situation character varying(24) DEFAULT NULL::character varying, sourceobjectid character varying(511) DEFAULT NULL::character varying, status character varying(20) DEFAULT NULL::character varying, targetobjectid character varying(511) DEFAULT NULL::character varying ); ALTER TABLE auditsync OWNER TO openidm; -- -- Name: clusteredrecontargetids; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE clusteredrecontargetids ( objectid character varying(38) NOT NULL, rev character varying(38) NOT NULL, reconid character varying(255) NOT NULL, targetids json NOT NULL ); ALTER TABLE clusteredrecontargetids OWNER TO openidm; -- -- Name: clusterobjectproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE clusterobjectproperties ( clusterobjects_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(32) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE clusterobjectproperties OWNER TO openidm; -- -- Name: clusterobjects; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE clusterobjects ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE clusterobjects OWNER TO openidm; -- -- Name: clusterobjects_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE clusterobjects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE clusterobjects_id_seq OWNER TO openidm; -- -- Name: clusterobjects_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE clusterobjects_id_seq OWNED BY clusterobjects.id; -- -- Name: configobjectproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE configobjectproperties ( configobjects_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(255) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE configobjectproperties OWNER TO openidm; -- -- Name: configobjects; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE configobjects ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE configobjects OWNER TO openidm; -- -- Name: configobjects_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE configobjects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE configobjects_id_seq OWNER TO openidm; -- -- Name: configobjects_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE configobjects_id_seq OWNED BY configobjects.id; -- -- Name: genericobjectproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE genericobjectproperties ( genericobjects_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(32) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE genericobjectproperties OWNER TO openidm; -- -- Name: genericobjects; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE genericobjects ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE genericobjects OWNER TO openidm; -- -- Name: genericobjects_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE genericobjects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE genericobjects_id_seq OWNER TO openidm; -- -- Name: genericobjects_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE genericobjects_id_seq OWNED BY genericobjects.id; -- -- Name: internalrole; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE internalrole ( objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, description character varying(510) DEFAULT NULL::character varying ); ALTER TABLE internalrole OWNER TO openidm; -- -- Name: internaluser; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE internaluser ( objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, pwd character varying(510) DEFAULT NULL::character varying, roles character varying(1024) DEFAULT NULL::character varying ); ALTER TABLE internaluser OWNER TO openidm; -- -- Name: links; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE links ( objectid character varying(38) NOT NULL, rev character varying(38) NOT NULL, linktype character varying(50) NOT NULL, linkqualifier character varying(50) NOT NULL, firstid character varying(255) NOT NULL, secondid character varying(255) NOT NULL ); ALTER TABLE links OWNER TO openidm; -- -- Name: managedobjectproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE managedobjectproperties ( managedobjects_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(32) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE managedobjectproperties OWNER TO openidm; -- -- Name: managedobjects; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE managedobjects ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE managedobjects OWNER TO openidm; -- -- Name: managedobjects_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE managedobjects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE managedobjects_id_seq OWNER TO openidm; -- -- Name: managedobjects_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE managedobjects_id_seq OWNED BY managedobjects.id; -- -- Name: objecttypes; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE objecttypes ( id bigint NOT NULL, objecttype character varying(255) DEFAULT NULL::character varying ); ALTER TABLE objecttypes OWNER TO openidm; -- -- Name: objecttypes_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE objecttypes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE objecttypes_id_seq OWNER TO openidm; -- -- Name: objecttypes_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE objecttypes_id_seq OWNED BY objecttypes.id; -- -- Name: relationshipproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE relationshipproperties ( relationships_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(32) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE relationshipproperties OWNER TO openidm; -- -- Name: relationships; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE relationships ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE relationships OWNER TO openidm; -- -- Name: relationships_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE relationships_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE relationships_id_seq OWNER TO openidm; -- -- Name: relationships_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE relationships_id_seq OWNED BY relationships.id; -- -- Name: schedulerobjectproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE schedulerobjectproperties ( schedulerobjects_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(32) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE schedulerobjectproperties OWNER TO openidm; -- -- Name: schedulerobjects; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE schedulerobjects ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE schedulerobjects OWNER TO openidm; -- -- Name: schedulerobjects_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE schedulerobjects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE schedulerobjects_id_seq OWNER TO openidm; -- -- Name: schedulerobjects_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE schedulerobjects_id_seq OWNED BY schedulerobjects.id; -- -- Name: securitykeys; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE securitykeys ( objectid character varying(38) NOT NULL, rev character varying(38) NOT NULL, keypair text ); ALTER TABLE securitykeys OWNER TO openidm; -- -- Name: uinotification; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE uinotification ( objectid character varying(38) NOT NULL, rev character varying(38) NOT NULL, notificationtype character varying(255) NOT NULL, createdate character varying(255) NOT NULL, message text NOT NULL, requester character varying(255), receiverid character varying(255) NOT NULL, requesterid character varying(255), notificationsubtype character varying(255) ); ALTER TABLE uinotification OWNER TO openidm; -- -- Name: updateobjectproperties; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE updateobjectproperties ( updateobjects_id bigint NOT NULL, propkey character varying(255) NOT NULL, proptype character varying(32) DEFAULT NULL::character varying, propvalue text ); ALTER TABLE updateobjectproperties OWNER TO openidm; -- -- Name: updateobjects; Type: TABLE; Schema: openidm; Owner: openidm -- CREATE TABLE updateobjects ( id bigint NOT NULL, objecttypes_id bigint NOT NULL, objectid character varying(255) NOT NULL, rev character varying(38) NOT NULL, fullobject json ); ALTER TABLE updateobjects OWNER TO openidm; -- -- Name: updateobjects_id_seq; Type: SEQUENCE; Schema: openidm; Owner: openidm -- CREATE SEQUENCE updateobjects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE updateobjects_id_seq OWNER TO openidm; -- -- Name: updateobjects_id_seq; Type: SEQUENCE OWNED BY; Schema: openidm; Owner: openidm -- ALTER SEQUENCE updateobjects_id_seq OWNED BY updateobjects.id; -- -- Name: clusterobjects id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY clusterobjects ALTER COLUMN id SET DEFAULT nextval('clusterobjects_id_seq'::regclass); -- -- Name: configobjects id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY configobjects ALTER COLUMN id SET DEFAULT nextval('configobjects_id_seq'::regclass); -- -- Name: genericobjects id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY genericobjects ALTER COLUMN id SET DEFAULT nextval('genericobjects_id_seq'::regclass); -- -- Name: managedobjects id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY managedobjects ALTER COLUMN id SET DEFAULT nextval('managedobjects_id_seq'::regclass); -- -- Name: objecttypes id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY objecttypes ALTER COLUMN id SET DEFAULT nextval('objecttypes_id_seq'::regclass); -- -- Name: relationships id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY relationships ALTER COLUMN id SET DEFAULT nextval('relationships_id_seq'::regclass); -- -- Name: schedulerobjects id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY schedulerobjects ALTER COLUMN id SET DEFAULT nextval('schedulerobjects_id_seq'::regclass); -- -- Name: updateobjects id; Type: DEFAULT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY updateobjects ALTER COLUMN id SET DEFAULT nextval('updateobjects_id_seq'::regclass); SET search_path = fridam, pg_catalog; -- -- Data for Name: clustercache; Type: TABLE DATA; Schema: fridam; Owner: openidm -- COPY clustercache (key, assignments) FROM stdin; \. -- -- Data for Name: service; Type: TABLE DATA; Schema: fridam; Owner: openidm -- COPY service (label, description, allowedroles, onboardingendpoint, onboardingroles, oauth2clientid, activationredirecturl, selfregistrationallowed) FROM stdin; ccd_gateway ccd_gateway {a116f566-b548-4b48-b95a-d2f758d6dc37} \N {} ccd_gateway \N f sscs sscs {81cafa26-6d3d-4afc-a10c-d0b5df01ab6d,2cc3c15e-277e-4281-bfb4-5efd372dccbb,6d5b60a4-2e96-459d-93a3-3642d019eabc,0086da2d-5cf4-46fd-a7d4-59018982ed88,0e30b8d1-534b-476e-bacb-025328800d21,86a2595d-0daf-4f7c-974d-f54ecae57832,ce646a01-8d62-42b9-9941-226620e1e3a1,d782a3c8-7140-4240-ab4c-43da97765b86,72d23e7d-9ee9-4195-805f-11fb226eaad7,c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae,0cd2d788-0859-4870-8e06-710112fafe82,ba40315a-59d7-4b23-acdb-039282082d60,a069a459-dd5f-442f-a09b-1c2d8555af94} \N {} sscs \N f \. SET search_path = openidm, pg_catalog; -- -- Data for Name: act_ge_bytearray; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ge_bytearray (id_, rev_, name_, deployment_id_, bytes_, generated_) FROM stdin; \. -- -- Data for Name: act_ge_property; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ge_property (name_, value_, rev_) FROM stdin; schema.version 5.15 1 schema.history create(5.15) 1 next.dbid 1 1 \. -- -- Data for Name: act_hi_actinst; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_actinst (id_, proc_def_id_, proc_inst_id_, execution_id_, act_id_, task_id_, call_proc_inst_id_, act_name_, act_type_, assignee_, start_time_, end_time_, duration_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_hi_attachment; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_attachment (id_, rev_, user_id_, name_, description_, type_, task_id_, proc_inst_id_, url_, content_id_) FROM stdin; \. -- -- Data for Name: act_hi_comment; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_comment (id_, type_, time_, user_id_, task_id_, proc_inst_id_, action_, message_, full_msg_) FROM stdin; \. -- -- Data for Name: act_hi_detail; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_detail (id_, type_, proc_inst_id_, execution_id_, task_id_, act_inst_id_, name_, var_type_, rev_, time_, bytearray_id_, double_, long_, text_, text2_) FROM stdin; \. -- -- Data for Name: act_hi_identitylink; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_identitylink (id_, group_id_, type_, user_id_, task_id_, proc_inst_id_) FROM stdin; \. -- -- Data for Name: act_hi_procinst; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_procinst (id_, proc_inst_id_, business_key_, proc_def_id_, start_time_, end_time_, duration_, start_user_id_, start_act_id_, end_act_id_, super_process_instance_id_, delete_reason_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_hi_taskinst; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_taskinst (id_, proc_def_id_, task_def_key_, proc_inst_id_, execution_id_, name_, parent_task_id_, description_, owner_, assignee_, start_time_, claim_time_, end_time_, duration_, delete_reason_, priority_, due_date_, form_key_, category_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_hi_varinst; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_hi_varinst (id_, proc_inst_id_, execution_id_, task_id_, name_, var_type_, rev_, bytearray_id_, double_, long_, text_, text2_, create_time_, last_updated_time_) FROM stdin; \. -- -- Data for Name: act_id_group; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_id_group (id_, rev_, name_, type_) FROM stdin; \. -- -- Data for Name: act_id_info; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_id_info (id_, rev_, user_id_, type_, key_, value_, password_, parent_id_) FROM stdin; \. -- -- Data for Name: act_id_membership; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_id_membership (user_id_, group_id_) FROM stdin; \. -- -- Data for Name: act_id_user; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_id_user (id_, rev_, first_, last_, email_, pwd_, picture_id_) FROM stdin; \. -- -- Data for Name: act_re_deployment; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_re_deployment (id_, name_, category_, tenant_id_, deploy_time_) FROM stdin; \. -- -- Data for Name: act_re_model; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_re_model (id_, rev_, name_, key_, category_, create_time_, last_update_time_, version_, meta_info_, deployment_id_, editor_source_value_id_, editor_source_extra_value_id_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_re_procdef; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_re_procdef (id_, rev_, category_, name_, key_, version_, deployment_id_, resource_name_, dgrm_resource_name_, description_, has_start_form_key_, suspension_state_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_ru_event_subscr; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ru_event_subscr (id_, rev_, event_type_, event_name_, execution_id_, proc_inst_id_, activity_id_, configuration_, created_, proc_def_id_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_ru_execution; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ru_execution (id_, rev_, proc_inst_id_, business_key_, parent_id_, proc_def_id_, super_exec_, act_id_, is_active_, is_concurrent_, is_scope_, is_event_scope_, suspension_state_, cached_ent_state_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_ru_identitylink; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ru_identitylink (id_, rev_, group_id_, type_, user_id_, task_id_, proc_inst_id_, proc_def_id_) FROM stdin; \. -- -- Data for Name: act_ru_job; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ru_job (id_, rev_, type_, lock_exp_time_, lock_owner_, exclusive_, execution_id_, process_instance_id_, proc_def_id_, retries_, exception_stack_id_, exception_msg_, duedate_, repeat_, handler_type_, handler_cfg_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_ru_task; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ru_task (id_, rev_, execution_id_, proc_inst_id_, proc_def_id_, name_, parent_task_id_, description_, task_def_key_, owner_, assignee_, delegation_, priority_, create_time_, due_date_, category_, suspension_state_, tenant_id_) FROM stdin; \. -- -- Data for Name: act_ru_variable; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY act_ru_variable (id_, rev_, type_, name_, execution_id_, proc_inst_id_, task_id_, bytearray_id_, double_, long_, text_, text2_) FROM stdin; \. -- -- Data for Name: auditaccess; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY auditaccess (objectid, activitydate, eventname, transactionid, userid, trackingids, server_ip, server_port, client_ip, client_port, request_protocol, request_operation, request_detail, http_request_secure, http_request_method, http_request_path, http_request_queryparameters, http_request_headers, http_request_cookies, http_response_headers, response_status, response_statuscode, response_elapsedtime, response_elapsedtimeunits, response_detail, roles) FROM stdin; \. -- -- Data for Name: auditactivity; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY auditactivity (objectid, activitydate, eventname, transactionid, userid, trackingids, runas, activityobjectid, operation, subjectbefore, subjectafter, changedfields, subjectrev, passwordchanged, message, provider, context, status) FROM stdin; \. -- -- Data for Name: auditauthentication; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY auditauthentication (objectid, transactionid, activitydate, userid, eventname, provider, method, result, principals, context, entries, trackingids) FROM stdin; \. -- -- Data for Name: auditconfig; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY auditconfig (objectid, activitydate, eventname, transactionid, userid, trackingids, runas, configobjectid, operation, beforeobject, afterobject, changedfields, rev) FROM stdin; \. -- -- Data for Name: auditrecon; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY auditrecon (objectid, transactionid, activitydate, eventname, userid, trackingids, activity, exceptiondetail, linkqualifier, mapping, message, messagedetail, situation, sourceobjectid, status, targetobjectid, reconciling, ambiguoustargetobjectids, reconaction, entrytype, reconid) FROM stdin; \. -- -- Data for Name: auditsync; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY auditsync (objectid, transactionid, activitydate, eventname, userid, trackingids, activity, exceptiondetail, linkqualifier, mapping, message, messagedetail, situation, sourceobjectid, status, targetobjectid) FROM stdin; \. -- -- Data for Name: clusteredrecontargetids; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY clusteredrecontargetids (objectid, rev, reconid, targetids) FROM stdin; \. -- -- Data for Name: clusterobjectproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY clusterobjectproperties (clusterobjects_id, propkey, proptype, propvalue) FROM stdin; \. -- -- Data for Name: clusterobjects; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY clusterobjects (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; 2 2 493c85e00ab7 637 {"recoveryAttempts":0,"_rev":"637","detectedDown":"0000000000000000000","type":"state","recoveryFinished":"0000000000000000000","instanceId":"493c85e00ab7","startup":"0000001564405945657","recoveringInstanceId":null,"state":1,"recoveringTimestamp":"0000000000000000000","recoveryStarted":"0000000000000000000","_id":"493c85e00ab7","shutdown":"0000000000000000000","timestamp":"0000001564409130486"} \. -- -- Name: clusterobjects_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('clusterobjects_id_seq', 2, true); -- -- Data for Name: configobjectproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY configobjectproperties (configobjects_id, propkey, proptype, propvalue) FROM stdin; \. -- -- Data for Name: configobjects; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY configobjects (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; 1 1 org.forgerock.openidm.managed 1 {"_rev":"1","service__pid":"org.forgerock.openidm.managed","_id":"org.forgerock.openidm.managed","jsonconfig":{"objects":[{"name":"user","onCreate":{"type":"text/javascript","source":"require('ui/onCreateUser').setDefaultFields(object);require('ui/onCreateUser').createIdpRelationships(object);require('roles/conditionalRoles').updateConditionalGrantsForUser(object, 'roles');require('ui/onCreateUser').emailUser(object);require('ui/lastChanged').updateLastChanged(object);"},"onUpdate":{"type":"text/javascript","source":"require('ui/onUpdateUser').preserveLastSync(object, oldObject, request);require('ui/onUpdateUser').updateIdpRelationships(object);require('roles/conditionalRoles').updateConditionalGrantsForUser(object, 'roles');require('ui/onUpdateUser').createNotification(object, oldObject);require('ui/lastChanged').updateLastChanged(object);"},"onDelete":{"type":"text/javascript","file":"ui/onDelete-user-cleanup.js"},"postCreate":{"type":"text/javascript","file":"roles/postOperation-roles.js"},"postUpdate":{"type":"text/javascript","file":"roles/postOperation-roles.js"},"postDelete":{"type":"text/javascript","file":"roles/postOperation-roles.js"},"actions":{"resetPassword":{"type":"text/javascript","source":"require('ui/resetPassword').sendMail(object);"}},"schema":{"$schema":"http://forgerock.org/json-schema#","type":"object","title":"User","viewable":true,"id":"urn:jsonschema:org:forgerock:openidm:managed:api:User","description":"","icon":"fa-user","properties":{"_id":{"description":"User ID","type":"string","viewable":false,"searchable":false,"userEditable":false,"usageDescription":"","isPersonal":false,"policies":[{"policyId":"cannot-contain-characters","params":{"forbiddenChars":["/"]}}]},"userName":{"title":"Username","description":"Username","viewable":true,"type":"string","searchable":true,"userEditable":true,"minLength":1,"usageDescription":"","isPersonal":true,"policies":[{"policyId":"unique"},{"policyId":"no-internal-user-conflict"},{"policyId":"cannot-contain-characters","params":{"forbiddenChars":"*()&!%;/"}}]},"password":{"title":"Password","description":"Password","type":"string","viewable":false,"searchable":false,"minLength":8,"userEditable":true,"encryption":{"key":"openidm-sym-default"},"scope":"private","isProtected":true,"usageDescription":"","isPersonal":false,"policies":[{"policyId":"at-least-X-capitals","params":{"numCaps":1}},{"policyId":"at-least-X-numbers","params":{"numNums":1}},{"policyId":"cannot-contain-others","params":{"disallowedFields":["userName","givenName","sn"]}},{"policyId":"maximum-length","params":{"maxLength":"256"}},{"policyId":"password-blacklisted","params":{"filePath":"conf/blacklist.txt"}}]},"givenName":{"title":"First Name","description":"First Name","viewable":true,"type":"string","searchable":true,"userEditable":true,"usageDescription":"","isPersonal":true},"sn":{"title":"Last Name","description":"Last Name","viewable":true,"type":"string","searchable":true,"userEditable":true,"usageDescription":"","isPersonal":true},"mail":{"title":"Email Address","description":"Email Address","viewable":true,"type":"string","searchable":true,"userEditable":true,"usageDescription":"","isPersonal":true,"policies":[{"policyId":"valid-email-address-format"},{"policyId":"cannot-contain-characters","params":{"forbiddenChars":"*()&!%;/"}}]},"description":{"title":"Description","description":"Description","viewable":true,"type":"string","searchable":true,"userEditable":true,"usageDescription":"","isPersonal":false},"accountStatus":{"title":"Status","description":"Status","viewable":true,"type":"string","searchable":true,"userEditable":false,"usageDescription":"","isPersonal":false},"telephoneNumber":{"type":"string","title":"Mobile Phone","description":"Mobile Phone","viewable":true,"userEditable":true,"pattern":"^\\\\+?([0-9\\\\- \\\\(\\\\)])*$","usageDescription":"","isPersonal":true},"postalAddress":{"type":"string","title":"Address 1","description":"Address 1","viewable":true,"userEditable":true,"usageDescription":"","isPersonal":true},"address2":{"type":"string","title":"Address 2","description":"Address 2","viewable":true,"userEditable":true,"usageDescription":"","isPersonal":true},"city":{"type":"string","title":"City","description":"City","viewable":true,"userEditable":true,"usageDescription":"","isPersonal":false},"postalCode":{"type":"string","title":"Postal Code","description":"Postal Code","viewable":true,"userEditable":true,"usageDescription":"","isPersonal":false},"country":{"type":"string","title":"Country","description":"Country","viewable":true,"userEditable":true,"usageDescription":"","isPersonal":false},"stateProvince":{"type":"string","title":"State/Province","description":"State/Province","viewable":true,"userEditable":true,"usageDescription":"","isPersonal":false},"roles":{"description":"Provisioning Roles","title":"Provisioning Roles","id":"urn:jsonschema:org:forgerock:openidm:managed:api:User:roles","viewable":true,"userEditable":false,"returnByDefault":false,"usageDescription":"","isPersonal":false,"type":"array","items":{"type":"relationship","id":"urn:jsonschema:org:forgerock:openidm:managed:api:User:roles:items","title":"Provisioning Roles Items","reverseRelationship":true,"reversePropertyName":"members","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Provisioning Roles Items _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"},"_grantType":{"description":"Grant Type","type":"string","label":"Grant Type"}}}},"resourceCollection":[{"path":"managed/role","label":"Role","query":{"queryFilter":"true","fields":["name"]}}]}},"manager":{"type":"relationship","validate":true,"reverseRelationship":true,"reversePropertyName":"reports","description":"Manager","title":"Manager","viewable":true,"searchable":false,"usageDescription":"","isPersonal":false,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Manager _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"}}}},"resourceCollection":[{"path":"managed/user","label":"User","query":{"queryFilter":"true","fields":["userName","givenName","sn"]}}],"userEditable":false},"authzRoles":{"description":"Authorization Roles","title":"Authorization Roles","id":"urn:jsonschema:org:forgerock:openidm:managed:api:User:authzRoles","viewable":true,"type":"array","userEditable":false,"returnByDefault":false,"usageDescription":"","isPersonal":false,"items":{"type":"relationship","title":"Authorization Roles Items","id":"urn:jsonschema:org:forgerock:openidm:managed:api:User:authzRoles:items","reverseRelationship":true,"reversePropertyName":"authzMembers","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Authorization Roles Items _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"}}}},"resourceCollection":[{"path":"repo/internal/role","label":"Internal Role","query":{"queryFilter":"true","fields":["_id","description"]}},{"path":"managed/role","label":"Role","query":{"queryFilter":"true","fields":["name"]}}]}},"reports":{"description":"Direct Reports","title":"Direct Reports","viewable":true,"userEditable":false,"type":"array","returnByDefault":false,"usageDescription":"","isPersonal":false,"items":{"type":"relationship","id":"urn:jsonschema:org:forgerock:openidm:managed:api:User:reports:items","title":"Direct Reports Items","reverseRelationship":true,"reversePropertyName":"manager","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Direct Reports Items _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"}}}},"resourceCollection":[{"path":"managed/user","label":"User","query":{"queryFilter":"true","fields":["userName","givenName","sn"]}}]}},"effectiveRoles":{"type":"array","title":"Effective Roles","description":"Effective Roles","viewable":false,"returnByDefault":true,"isVirtual":true,"usageDescription":"","isPersonal":false,"onRetrieve":{"type":"text/javascript","source":"require('roles/effectiveRoles').calculateEffectiveRoles(object, 'roles');"},"items":{"type":"object","title":"Effective Roles Items"}},"effectiveAssignments":{"type":"array","title":"Effective Assignments","description":"Effective Assignments","viewable":false,"returnByDefault":true,"isVirtual":true,"usageDescription":"","isPersonal":false,"onRetrieve":{"type":"text/javascript","file":"roles/effectiveAssignments.js","effectiveRolesPropName":"effectiveRoles"},"items":{"type":"object","title":"Effective Assignments Items"}},"lastSync":{"description":"Last Sync timestamp","title":"Last Sync timestamp","type":"object","scope":"private","viewable":false,"searchable":false,"usageDescription":"","isPersonal":false,"properties":{"effectiveAssignments":{"description":"Effective Assignments","title":"Effective Assignments","type":"array","items":{"type":"object","title":"Effective Assignments Items"}},"timestamp":{"description":"Timestamp","type":"string"}},"required":[],"order":["effectiveAssignments","timestamp"]},"kbaInfo":{"description":"KBA Info","type":"array","userEditable":true,"viewable":false,"usageDescription":"","isPersonal":true,"items":{"type":"object","title":"KBA Info Items","properties":{"answer":{"description":"Answer","type":"string"},"customQuestion":{"description":"Custom question","type":"string"},"questionId":{"description":"Question ID","type":"string"}},"order":["answer","customQuestion","questionId"],"required":[]}},"preferences":{"title":"Preferences","description":"Preferences","viewable":true,"searchable":false,"userEditable":true,"type":"object","usageDescription":"","isPersonal":false,"properties":{"updates":{"description":"Send me news and updates","type":"boolean"},"marketing":{"description":"Send me special offers and services","type":"boolean"}},"required":[],"order":["updates","marketing"]},"termsAccepted":{"title":"Terms Accepted","type":"object","viewable":false,"searchable":false,"userEditable":true,"usageDescription":"","isPersonal":false,"properties":{"termsVersion":{"title":"","description":"Terms & Conditions Version","type":"string","viewable":true,"userEditable":false},"iso8601date":{"title":"","description":"ISO 8601 Date and time format","type":"string","viewable":true,"userEditable":false}},"order":["termsVersion","iso8601date"],"required":[],"description":"Terms Accepted","returnByDefault":true,"isVirtual":false},"lastChanged":{"title":"Last Changed","type":"object","viewable":false,"searchable":false,"userEditable":false,"usageDescription":"","isPersonal":false,"properties":{"date":{"title":"","description":"Last changed date","type":"string","viewable":true,"searchable":true,"userEditable":true}},"required":["date"],"order":["date"],"description":"Last Changed","returnByDefault":true,"isVirtual":false},"consentedMappings":{"title":"Consented Mappings","description":"Consented Mappings","type":"array","viewable":false,"searchable":false,"userEditable":true,"usageDescription":"","isPersonal":false,"items":{"type":"array","title":"Consented Mappings Items","items":{"type":"object","title":"Consented Mappings Item","properties":{"mapping":{"title":"Mapping","description":"Mapping","type":"string","viewable":true,"searchable":true,"userEditable":true},"consentDate":{"title":"Consent Date","description":"Consent Date","type":"string","viewable":true,"searchable":true,"userEditable":true}},"order":["mapping","consentDate"],"required":["mapping","consentDate"]}},"returnByDefault":false,"isVirtual":false},"sunset":{"title":"Sunset","type":"object","viewable":true,"searchable":false,"userEditable":true,"properties":{"date":{"title":"Date","type":"string","viewable":true,"searchable":true,"userEditable":true}},"order":["date"],"description":"","isVirtual":false,"required":[]},"tacticalPassword":{"title":"Tactical Password (hashed)","type":["string","null"],"viewable":true,"searchable":true,"userEditable":false,"description":"","minLength":"","isVirtual":false,"scope":"private"},"tacticalRoles":{"title":"Tactical roles (comma-separated)","type":["string","null"],"viewable":true,"searchable":true,"userEditable":false,"description":"","minLength":"","isVirtual":false}},"order":["_id","userName","password","givenName","sn","mail","description","accountStatus","telephoneNumber","postalAddress","address2","city","postalCode","country","stateProvince","roles","manager","authzRoles","reports","effectiveRoles","effectiveAssignments","lastSync","kbaInfo","preferences","termsAccepted","lastChanged","consentedMappings","sunset","tacticalPassword","tacticalRoles"],"required":["userName","givenName","sn","mail"]}},{"name":"role","onDelete":{"type":"text/javascript","file":"roles/onDelete-roles.js"},"onSync":{"type":"text/javascript","source":"require('roles/onSync-roles').syncUsersOfRoles(resourceName, oldObject, newObject, ['members']);"},"onCreate":{"type":"text/javascript","source":"require('roles/conditionalRoles').roleCreate(object);"},"onUpdate":{"type":"text/javascript","source":"require('roles/conditionalRoles').roleUpdate(oldObject, object);"},"postCreate":{"type":"text/javascript","file":"roles/postOperation-roles.js"},"postUpdate":{"type":"text/javascript","file":"roles/postOperation-roles.js"},"postDelete":{"type":"text/javascript","file":"roles/postOperation-roles.js"},"schema":{"id":"urn:jsonschema:org:forgerock:openidm:managed:api:Role","$schema":"http://forgerock.org/json-schema#","type":"object","title":"Role","icon":"fa-check-square-o","description":"","properties":{"_id":{"description":"Role ID","title":"Name","viewable":false,"searchable":false,"type":"string"},"name":{"description":"The role name, used for display purposes.","title":"Name","viewable":true,"searchable":true,"type":"string"},"description":{"description":"The role description, used for display purposes.","title":"Description","viewable":true,"searchable":true,"type":"string"},"members":{"description":"Role Members","title":"Role Members","viewable":true,"type":"array","returnByDefault":false,"items":{"type":"relationship","id":"urn:jsonschema:org:forgerock:openidm:managed:api:Role:members:items","title":"Role Members Items","reverseRelationship":true,"reversePropertyName":"roles","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Role Members Items _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"},"_grantType":{"description":"Grant Type","type":"string","label":"Grant Type"}}}},"resourceCollection":[{"path":"managed/user","label":"User","query":{"queryFilter":"true","fields":["userName","givenName","sn"]}}]}},"authzMembers":{"description":"Authorization Role Members","title":"Authorization Role Members","viewable":true,"type":"array","returnByDefault":false,"items":{"type":"relationship","id":"urn:jsonschema:org:forgerock:openidm:managed:api:Role:authzMembers:items","title":"Authorization Role Members Items","reverseRelationship":true,"reversePropertyName":"authzRoles","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Authorization Role Members Items _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"}}}},"resourceCollection":[{"path":"managed/user","label":"User","query":{"queryFilter":"true","fields":["userName","givenName","sn"]}}]}},"assignments":{"description":"Managed Assignments","title":"Managed Assignments","viewable":true,"returnByDefault":false,"type":"array","items":{"type":"relationship","id":"urn:jsonschema:org:forgerock:openidm:managed:api:Role:assignments:items","title":"Managed Assignments Items","reverseRelationship":true,"reversePropertyName":"roles","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","title":"Managed Assignments Items _refProperties","type":"object","properties":{"_id":{"description":"_refProperties object ID","type":"string"}}}},"resourceCollection":[{"path":"managed/assignment","label":"Assignment","query":{"queryFilter":"true","fields":["name"]}}]}},"condition":{"description":"A conditional filter for this role","title":"Condition","viewable":false,"searchable":false,"type":"string"},"temporalConstraints":{"description":"An array of temporal constraints for a role","title":"Temporal Constraints","viewable":false,"returnByDefault":true,"type":"array","items":{"type":"object","title":"Temporal Constraints Items","properties":{"duration":{"description":"Duration","type":"string"}},"required":["duration"],"order":["duration"]}}},"required":["name"],"order":["_id","name","description","assignments","members","condition","temporalConstraints"]}},{"name":"assignment","onSync":{"type":"text/javascript","source":"require('roles/onSync-assignments').syncUsersOfRolesWithAssignment(resourceName, oldObject, newObject, ['roles']);"},"schema":{"id":"urn:jsonschema:org:forgerock:openidm:managed:api:Assignment","$schema":"http://forgerock.org/json-schema#","type":"object","title":"Assignment","icon":"fa-key","description":"A role assignment","properties":{"_id":{"description":"The assignment ID","title":"Name","viewable":false,"searchable":false,"type":"string"},"name":{"description":"The assignment name, used for display purposes.","title":"Name","viewable":true,"searchable":true,"type":"string"},"description":{"description":"The assignment description, used for display purposes.","title":"Description","viewable":true,"searchable":true,"type":"string"},"mapping":{"description":"The name of the mapping this assignment applies to","title":"Mapping","viewable":true,"searchable":true,"type":"string","policies":[{"policyId":"mapping-exists"}]},"attributes":{"description":"The attributes operated on by this assignment.","title":"Assignment Attributes","viewable":true,"type":"array","items":{"type":"object","title":"Assignment Attributes Items","properties":{"assignmentOperation":{"description":"Assignment operation","type":"string"},"unassignmentOperation":{"description":"Unassignment operation","type":"string"},"name":{"description":"Name","type":"string"},"value":{"description":"Value","type":"string"}},"order":["assignmentOperation","unassignmentOperation","name","value"],"required":[]}},"linkQualifiers":{"description":"Conditional link qualifiers to restrict this assignment to.","title":"Link Qualifiers","viewable":true,"type":"array","items":{"type":"string","title":"Link Qualifiers Items"}},"roles":{"description":"Managed Roles","title":"Managed Roles","viewable":true,"userEditable":false,"type":"array","returnByDefault":false,"items":{"type":"relationship","id":"urn:jsonschema:org:forgerock:openidm:managed:api:Assignment:roles:items","title":"Managed Roles Items","reverseRelationship":true,"reversePropertyName":"assignments","validate":true,"properties":{"_ref":{"description":"References a relationship from a managed object","type":"string"},"_refProperties":{"description":"Supports metadata within the relationship","type":"object","title":"Managed Roles Items _refProperties","properties":{"_id":{"description":"_refProperties object ID","type":"string"}}}},"resourceCollection":[{"path":"managed/role","label":"Role","query":{"queryFilter":"true","fields":["name"]}}]}}},"required":["name","description","mapping"],"order":["_id","name","description","attributes","linkQualifiers"]}}],"_id":"managed"}} 2 1 org.forgerock.openidm.authentication 1 {"_rev":"1","service__pid":"org.forgerock.openidm.authentication","_id":"org.forgerock.openidm.authentication","jsonconfig":{"serverAuthContext":{"sessionModule":{"name":"JWT_SESSION","properties":{"keyAlias":"&{openidm.https.keystore.cert.alias}","privateKeyPassword":"&{<PASSWORD>}","keystoreType":"&{openidm.keystore.type}","keystoreFile":"&{openidm.keystore.location}","keystorePassword":"&{openid<PASSWORD>.password}","maxTokenLifeMinutes":"120","tokenIdleTimeMinutes":"30","sessionOnly":true,"isHttpOnly":true}},"authModules":[{"enabled":true,"properties":{"queryOnResource":"managed/user","queryId":"credential-query","defaultUserRoles":[],"augmentSecurityContext":{"type":"text/javascript","globals":{},"source":"require('auth/customAuthz').setProtectedAttributes(security)"},"propertyMapping":{"authenticationId":"username","userCredential":"password","userRoles":"roles"}},"name":"MANAGED_USER"},{"name":"INTERNAL_USER","properties":{"queryId":"credential-internaluser-query","queryOnResource":"repo/internal/user","propertyMapping":{"authenticationId":"username","userCredential":"password","userRoles":"roles"},"defaultUserRoles":[]},"enabled":true},{"name":"CLIENT_CERT","properties":{"queryOnResource":"security/truststore","defaultUserRoles":["openidm-cert"],"allowedAuthenticationIdPatterns":[]},"enabled":true},{"name":"SOCIAL_PROVIDERS","properties":{"defaultUserRoles":["openidm-authorized"],"augmentSecurityContext":{"type":"text/javascript","globals":{},"file":"auth/populateAsManagedUserFromRelationship.js"},"propertyMapping":{"userRoles":"authzRoles"}},"enabled":true}]},"_id":"authentication"}} 3 1 org.forgerock.openidm.cluster 1 {"_rev":"1","service__pid":"org.forgerock.openidm.cluster","_id":"org.forgerock.openidm.cluster","jsonconfig":{"instanceId":"&{openidm.node.id}","instanceTimeout":"30000","instanceRecoveryTimeout":"30000","instanceCheckInInterval":"5000","instanceCheckInOffset":"0","enabled":true,"_id":"cluster"}} 4 1 org.forgerock.openidm.selfservice.01df6cfe-e030-4b3d-a97b-29dfb725f476 0 {"config__factory-pid":"registration","felix__fileinstall__filename":"file:/opt/openidm/conf/selfservice-registration.json","_rev":"0","service__pid":"org.forgerock.openidm.selfservice.01df6cfe-e030-4b3d-a97b-29dfb725f476","_id":"org.forgerock.openidm.selfservice.01df6cfe-e030-4b3d-a97b-29dfb725f476","jsonconfig":{"allInOneRegistration":false,"stageConfigs":[{"name":"idmUserDetails","identityEmailField":"mail","socialRegistrationEnabled":false,"registrationProperties":["userName","givenName","sn","mail"],"identityServiceUrl":"managed/user"},{"name":"emailValidation","identityEmailField":"mail","emailServiceUrl":"external/email","emailServiceParameters":{"waitForCompletion":false},"from":"<EMAIL>","subject":"Register new account","mimeType":"text/html","subjectTranslations":{"en":"Complete your registration request"},"messageTranslations":{"en":"<h1>Activate your account</h1>\\nHello,<br/><br/>\\n\\nPlease click <a href=\\"%link%\\" target=\\"_self\\">here</a> to activate your account.<br/><br/>\\n \\nThe HMCTS IdAM team.\\n "},"verificationLinkToken":"%link%","verificationLink":"http://localhost:3501/users/register?"},{"class":"org.forgerock.selfservice.custom.UserInfoConfig","identityServiceUrl":"managed/user"},{"name":"selfRegistration","identityServiceUrl":"managed/user"}],"snapshotToken":{"type":"jwt","jweAlgorithm":"RSAES_PKCS1_V1_5","encryptionMethod":"A128CBC_HS256","jwsAlgorithm":"HS256","tokenExpiry":"172800"},"storage":"stateless","_id":"selfservice/registration"},"service__factoryPid":"org.forgerock.openidm.selfservice"} 6 1 org.forgerock.openidm.endpoint.a8b5220d-3b35-4f9c-a7df-115bac574a4a 0 {"config__factory-pid":"getprocessesforuser","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-getprocessesforuser.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.a8b5220d-3b35-4f9c-a7df-115bac574a4a","_id":"org.forgerock.openidm.endpoint.a8b5220d-3b35-4f9c-a7df-115bac574a4a","jsonconfig":{"type":"text/javascript","file":"workflow/getprocessesforuser.js","_id":"endpoint/getprocessesforuser"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 8 1 org.forgerock.openidm.schedule.9e295777-1688-44a9-82d8-dca00cb4317d 0 {"config__factory-pid":"reconcile-roles","felix__fileinstall__filename":"file:/opt/openidm/conf/schedule-reconcile-roles.json","_rev":"0","service__pid":"org.forgerock.openidm.schedule.9e295777-1688-44a9-82d8-dca00cb4317d","_id":"org.forgerock.openidm.schedule.9e295777-1688-44a9-82d8-dca00cb4317d","jsonconfig":{"enabled":true,"type":"cron","schedule":"0 0 20 * * ?","timezone":"GMT","persisted":true,"invokeService":"sync","invokeContext":{"action":"reconcile","mapping":"managedRole_systemLdapGroup0"},"_id":"schedule/reconcile-roles"},"service__factoryPid":"org.forgerock.openidm.schedule"} 10 1 org.forgerock.openidm.repo.jdbc 1 {"_rev":"1","service__pid":"org.forgerock.openidm.repo.jdbc","_id":"org.forgerock.openidm.repo.jdbc","jsonconfig":{"dbType":"POSTGRESQL","useDataSource":"default","maxBatchSize":100,"maxTxRetry":5,"queries":{"genericTables":{"credential-query":"SELECT fullobject::text FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE lower(json_extract_path_text(fullobject, 'userName')) = lower(${username}) AND json_extract_path_text(fullobject, 'accountStatus') = 'active' AND objtype.objecttype = ${_resource}","get-by-field-value":"SELECT fullobject::text FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE json_extract_path_text(fullobject, ${field}) = ${value} AND objtype.objecttype = ${_resource}","query-all-ids":"SELECT obj.objectid FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON obj.objecttypes_id = objtype.id WHERE objtype.objecttype = ${_resource} LIMIT ${int:_pageSize} OFFSET ${int:_pagedResultsOffset}","query-all-ids-count":"SELECT COUNT(obj.objectid) AS total FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON obj.objecttypes_id = objtype.id WHERE objtype.objecttype = ${_resource}","query-all":"SELECT obj.fullobject::text FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON obj.objecttypes_id = objtype.id WHERE objtype.objecttype = ${_resource} LIMIT ${int:_pageSize} OFFSET ${int:_pagedResultsOffset}","query-all-count":"SELECT COUNT(obj.fullobject) AS total FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON obj.objecttypes_id = objtype.id WHERE objtype.objecttype = ${_resource}","for-userName":"SELECT fullobject::text FROM ${_dbSchema}.${_mainTable} obj INNER JOIN ${_dbSchema}.objecttypes objtype ON objtype.id = obj.objecttypes_id WHERE lower(json_extract_path_text(fullobject, 'userName')) = lower(${uid}) AND objtype.objecttype = ${_resource}","query-cluster-failed-instances":"SELECT fullobject::text FROM ${_dbSchema}.${_mainTable} obj WHERE json_extract_path_text(fullobject, 'timestamp') <= ${timestamp} AND json_extract_path_text(fullobject, 'state') IN ('1','2')","query-cluster-instances":"SELECT fullobject::text FROM ${_dbSchema}.${_mainTable} obj WHERE json_extract_path_text(fullobject, 'type') = 'state'","query-cluster-events":"SELECT fullobject::text FROM ${_dbSchema}.${_mainTable} obj WHERE json_extract_path_text(fullobject, 'type') = 'event' AND json_extract_path_text(fullobject, 'instanceId') = ${instanceId}","find-relationships-for-resource":"SELECT fullobject::text FROM ${_dbSchema}.relationships obj WHERE (((json_extract_path_text(obj.fullobject, 'firstId') = (${fullResourceId})) AND (json_extract_path_text(obj.fullobject, 'firstPropertyName') = (${resourceFieldName})))) OR (((json_extract_path_text(obj.fullobject, 'secondId') = (${fullResourceId})) AND (json_extract_path_text(obj.fullobject, 'secondPropertyName') = (${resourceFieldName}))))","find-relationship-edges":"SELECT fullobject::text FROM ${_dbSchema}.relationships obj WHERE (((json_extract_path_text(obj.fullobject, 'firstId') = (${vertex1Id})) AND (json_extract_path_text(obj.fullobject, 'firstPropertyName') = (${vertex1FieldName})) AND (json_extract_path_text(obj.fullobject, 'secondId') = (${vertex2Id})) AND (json_extract_path_text(obj.fullobject, 'secondPropertyName') = (${vertex2FieldName}))) OR ((json_extract_path_text(obj.fullobject, 'firstId') = (${vertex2Id})) AND (json_extract_path_text(obj.fullobject, 'firstPropertyName') = (${vertex2FieldName})) AND (json_extract_path_text(obj.fullobject, 'secondId') = (${vertex1Id})) AND (json_extract_path_text(obj.fullobject, 'secondPropertyName') = (${vertex1FieldName}))))"},"explicitTables":{"query-all-ids":"SELECT objectid FROM ${_dbSchema}.${_table}","for-internalcredentials":"select * FROM ${_dbSchema}.${_table} WHERE objectid = ${uid}","get-notifications-for-user":"select * FROM ${_dbSchema}.${_table} WHERE receiverId = ${userId} order by createDate desc","credential-query":"SELECT * FROM ${_dbSchema}.${_table} WHERE objectid = ${username}","credential-internaluser-query":"SELECT objectid, pwd, roles FROM ${_dbSchema}.${_table} WHERE objectid = ${username}","links-for-firstId":"SELECT * FROM ${_dbSchema}.${_table} WHERE linkType = ${linkType} AND firstid = ${firstId}","links-for-linkType":"SELECT * FROM ${_dbSchema}.${_table} WHERE linkType = ${linkType}","query-all":"SELECT * FROM ${_dbSchema}.${_table}","get-recons":"SELECT reconid, activitydate, mapping FROM ${_dbSchema}.${_table} WHERE mapping LIKE ${includeMapping} AND mapping NOT LIKE ${excludeMapping} AND entrytype = 'summary' ORDER BY activitydate DESC"}},"commands":{"genericTables":{},"explicitTables":{"purge-by-recon-ids-to-keep":"DELETE FROM ${_dbSchema}.${_table} WHERE mapping LIKE ${includeMapping} AND mapping NOT LIKE ${excludeMapping} AND reconId NOT IN (${list:reconIds})","purge-by-recon-expired":"DELETE FROM ${_dbSchema}.${_table} WHERE mapping LIKE ${includeMapping} AND mapping NOT LIKE ${excludeMapping} AND activitydate < ${timestamp}","delete-mapping-links":"DELETE FROM ${_dbSchema}.${_table} WHERE linktype = ${mapping}","delete-target-ids-for-recon":"DELETE FROM ${_dbSchema}.${_table} WHERE reconId = ${reconId}"}},"resourceMapping":{"default":{"mainTable":"genericobjects","propertiesTable":"genericobjectproperties","searchableDefault":true},"genericMapping":{"managed/*":{"mainTable":"managedobjects","propertiesTable":"managedobjectproperties","searchableDefault":true},"managed/user":{"mainTable":"managedobjects","propertiesTable":"managedobjectproperties","searchableDefault":false},"scheduler":{"mainTable":"schedulerobjects","propertiesTable":"schedulerobjectproperties","searchableDefault":false},"scheduler/*":{"mainTable":"schedulerobjects","propertiesTable":"schedulerobjectproperties","searchableDefault":false},"cluster":{"mainTable":"clusterobjects","propertiesTable":"clusterobjectproperties","searchableDefault":false},"config":{"mainTable":"configobjects","propertiesTable":"configobjectproperties","searchableDefault":false},"relationships":{"mainTable":"relationships","propertiesTable":"relationshipproperties","searchableDefault":false},"updates":{"mainTable":"updateobjects","propertiesTable":"updateobjectproperties","searchableDefault":false},"reconprogressstate":{"mainTable":"genericobjects","propertiesTable":"genericobjectproperties","searchableDefault":false,"properties":{"/reconId":{"searchable":true},"/startTime":{"searchable":true}}},"jsonstorage":{"mainTable":"genericobjects","propertiesTable":"genericobjectproperties","searchableDefault":false,"properties":{"/timestamp":{"searchable":true}}}},"explicitMapping":{"link":{"table":"links","objectToColumn":{"_id":"objectid","_rev":"rev","linkType":"linktype","firstId":"firstid","secondId":"secondid","linkQualifier":"linkqualifier"}},"ui/notification":{"table":"uinotification","objectToColumn":{"_id":"objectid","_rev":"rev","requester":"requester","requesterId":"requesterId","receiverId":"receiverId","createDate":"createDate","notificationType":"notificationType","notificationSubtype":"notificationSubtype","message":"message"}},"internal/user":{"table":"internaluser","objectToColumn":{"_id":"objectid","_rev":"rev","password":"<PASSWORD>","roles":{"column":"roles","type":"JSON_LIST"}}},"internal/role":{"table":"internalrole","objectToColumn":{"_id":"objectid","_rev":"rev","description":"description"}},"audit/authentication":{"table":"auditauthentication","objectToColumn":{"_id":"objectid","transactionId":"transactionid","timestamp":"activitydate","userId":"userid","eventName":"eventname","provider":"provider","method":"method","result":"result","principal":{"column":"principals","type":"JSON_LIST"},"context":{"column":"context","type":"JSON_MAP"},"entries":{"column":"entries","type":"JSON_LIST"},"trackingIds":{"column":"trackingids","type":"JSON_LIST"}}},"audit/config":{"table":"auditconfig","objectToColumn":{"_id":"objectid","timestamp":"activitydate","eventName":"eventname","transactionId":"transactionid","userId":"userid","trackingIds":{"column":"trackingids","type":"JSON_LIST"},"runAs":"runas","objectId":"configobjectid","operation":"operation","before":"beforeObject","after":"afterObject","changedFields":{"column":"changedfields","type":"JSON_LIST"},"revision":"rev"}},"audit/activity":{"table":"auditactivity","objectToColumn":{"_id":"objectid","timestamp":"activitydate","eventName":"eventname","transactionId":"transactionid","userId":"userid","trackingIds":{"column":"trackingids","type":"JSON_LIST"},"runAs":"runas","objectId":"activityobjectid","operation":"operation","before":"subjectbefore","after":"subjectafter","changedFields":{"column":"changedfields","type":"JSON_LIST"},"revision":"subjectrev","passwordChanged":"<PASSWORD>","message":"message","provider":"provider","context":"context","status":"status"}},"audit/recon":{"table":"auditrecon","objectToColumn":{"_id":"objectid","transactionId":"transactionid","timestamp":"activitydate","eventName":"eventname","userId":"userid","trackingIds":{"column":"trackingids","type":"JSON_LIST"},"action":"activity","exception":"exceptiondetail","linkQualifier":"linkqualifier","mapping":"mapping","message":"message","messageDetail":{"column":"messagedetail","type":"JSON_MAP"},"situation":"situation","sourceObjectId":"sourceobjectid","status":"status","targetObjectId":"targetobjectid","reconciling":"reconciling","ambiguousTargetObjectIds":"ambiguoustargetobjectids","reconAction":"reconaction","entryType":"entrytype","reconId":"reconid"}},"audit/sync":{"table":"auditsync","objectToColumn":{"_id":"objectid","transactionId":"transactionid","timestamp":"activitydate","eventName":"eventname","userId":"userid","trackingIds":{"column":"trackingids","type":"JSON_LIST"},"action":"activity","exception":"exceptiondetail","linkQualifier":"linkqualifier","mapping":"mapping","message":"message","messageDetail":{"column":"messagedetail","type":"JSON_MAP"},"situation":"situation","sourceObjectId":"sourceobjectid","status":"status","targetObjectId":"targetobjectid"}},"audit/access":{"table":"auditaccess","objectToColumn":{"_id":"objectid","timestamp":"activitydate","eventName":"eventname","transactionId":"transactionid","userId":"userid","trackingIds":{"column":"trackingids","type":"JSON_LIST"},"server/ip":"server_ip","server/port":"server_port","client/ip":"client_ip","client/port":"client_port","request/protocol":"request_protocol","request/operation":"request_operation","request/detail":{"column":"request_detail","type":"JSON_MAP"},"http/request/secure":"http_request_secure","http/request/method":"http_request_method","http/request/path":"http_request_path","http/request/queryParameters":{"column":"http_request_queryparameters","type":"JSON_MAP"},"http/request/headers":{"column":"http_request_headers","type":"JSON_MAP"},"http/request/cookies":{"column":"http_request_cookies","type":"JSON_MAP"},"http/response/headers":{"column":"http_response_headers","type":"JSON_MAP"},"response/status":"response_status","response/statusCode":"response_statuscode","response/elapsedTime":"response_elapsedtime","response/elapsedTimeUnits":"response_elapsedtimeunits","response/detail":{"column":"response_detail","type":"JSON_MAP"},"roles":"roles"}},"security/keys":{"table":"securitykeys","objectToColumn":{"_id":"objectid","_rev":"rev","keyPair":"keypair"}},"clusteredrecontargetids":{"table":"clusteredrecontargetids","objectToColumn":{"_id":"objectid","_rev":"rev","reconId":"reconid","targetIds":{"column":"targetids","type":"JSON_LIST"}}}}},"_id":"repo.jdbc"}} 11 1 org.forgerock.openidm.ui.context.d2796db5-f915-4d22-b976-8957365c62fa 0 {"config__factory-pid":"api","felix__fileinstall__filename":"file:/opt/openidm/conf/ui.context-api.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.context.d2796db5-f915-4d22-b976-8957365c62fa","_id":"org.forgerock.openidm.ui.context.d2796db5-f915-4d22-b976-8957365c62fa","jsonconfig":{"enabled":true,"urlContextRoot":"/api","defaultDir":"&{launcher.install.location}/ui/api/default","extensionDir":"&{launcher.install.location}/ui/api/extension","_id":"ui.context/api"},"service__factoryPid":"org.forgerock.openidm.ui.context"} 12 1 org.forgerock.openidm.ui.context.factory 3 {"factory__pid":"org.forgerock.openidm.ui.context","factory__pidList":["org.forgerock.openidm.ui.context.207d191d-22f0-45c3-80c3-e1383dfa2c4f","org.forgerock.openidm.ui.context.d2796db5-f915-4d22-b976-8957365c62fa","org.forgerock.openidm.ui.context.caa966f5-5cd8-4582-bf77-3a4e3a1c5f8e","org.forgerock.openidm.ui.context.c2a77b43-8206-4005-a134-c526a2e95069","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"3","_id":"org.forgerock.openidm.ui.context.factory","jsonconfig":null} 5 1 org.forgerock.openidm.selfservice.factory 1 {"factory__pid":"org.forgerock.openidm.selfservice","factory__pidList":["org.forgerock.openidm.selfservice.b61e1b34-5823-4d8d-bdd8-da96ac9458f6","org.forgerock.openidm.selfservice.01df6cfe-e030-4b3d-a97b-29dfb725f476","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"1","_id":"org.forgerock.openidm.selfservice.factory","jsonconfig":null} 9 1 org.forgerock.openidm.schedule.factory 2 {"factory__pid":"org.forgerock.openidm.schedule","factory__pidList":["org.forgerock.openidm.schedule.9e295777-1688-44a9-82d8-dca00cb4317d","org.forgerock.openidm.schedule.832d9581-d9ae-4736-aa63-ad87e830d32a","org.forgerock.openidm.schedule.7eb4c308-dfb8-4814-95a6-a6eeecf006c6","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"2","_id":"org.forgerock.openidm.schedule.factory","jsonconfig":null} 13 1 org.forgerock.openidm.selfservice.propertymap 1 {"_rev":"1","service__pid":"org.forgerock.openidm.selfservice.propertymap","_id":"org.forgerock.openidm.selfservice.propertymap","jsonconfig":{"properties":[{"source":"givenName","target":"givenName"},{"source":"familyName","target":"sn"},{"source":"email","target":"mail"},{"source":"postalAddress","target":"postalAddress","condition":"/object/postalAddress pr"},{"source":"addressLocality","target":"city","condition":"/object/addressLocality pr"},{"source":"addressRegion","target":"stateProvince","condition":"/object/addressRegion pr"},{"source":"postalCode","target":"postalCode","condition":"/object/postalCode pr"},{"source":"country","target":"country","condition":"/object/country pr"},{"source":"phone","target":"telephoneNumber","condition":"/object/phone pr"},{"source":"username","target":"userName"}],"_id":"selfservice.propertymap"}} 14 1 org.forgerock.openidm.metrics 1 {"_rev":"1","service__pid":"org.forgerock.openidm.metrics","_id":"org.forgerock.openidm.metrics","jsonconfig":{"enabled":false,"_id":"metrics"}} 15 1 org.forgerock.openidm.endpoint.601e78e1-11b1-46a5-b356-900c4d47940f 0 {"config__factory-pid":"getavailableuserstoassign","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-getavailableuserstoassign.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.601e78e1-11b1-46a5-b356-900c4d47940f","_id":"org.forgerock.openidm.endpoint.601e78e1-11b1-46a5-b356-900c4d47940f","jsonconfig":{"type":"text/javascript","file":"workflow/getavailableuserstoassign.js","_id":"endpoint/getavailableuserstoassign"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 16 1 org.forgerock.openidm.endpoint.52e65bdd-5982-477d-9a8c-af6077b004d2 0 {"config__factory-pid":"gettasksview","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-gettasksview.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.52e65bdd-5982-477d-9a8c-af6077b004d2","_id":"org.forgerock.openidm.endpoint.52e65bdd-5982-477d-9a8c-af6077b004d2","jsonconfig":{"type":"text/javascript","file":"workflow/gettasksview.js","_id":"endpoint/gettasksview"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 17 1 org.forgerock.openidm.servletfilter.cc742f00-3aa1-4469-a633-693534d9e779 0 {"config__factory-pid":"cors","felix__fileinstall__filename":"file:/opt/openidm/conf/servletfilter-cors.json","_rev":"0","service__pid":"org.forgerock.openidm.servletfilter.cc742f00-3aa1-4469-a633-693534d9e779","_id":"org.forgerock.openidm.servletfilter.cc742f00-3aa1-4469-a633-693534d9e779","jsonconfig":{"classPathURLs":[],"systemProperties":{},"requestAttributes":{},"scriptExtensions":{},"initParams":{"allowedOrigins":"https://localhost:&{openidm.port.https}","allowedMethods":"GET,POST,PUT,DELETE,PATCH","allowedHeaders":"accept,x-openidm-password,x-openidm-nosession,x-openidm-username,content-type,origin,x-requested-with","allowCredentials":"true","chainPreflight":"false"},"urlPatterns":["/*"],"filterClass":"org.eclipse.jetty.servlets.CrossOriginFilter","_id":"servletfilter/cors"},"service__factoryPid":"org.forgerock.openidm.servletfilter"} 19 1 org.forgerock.openidm.process.f8ad846f-d54a-414a-bc6b-6382d7a09d74 0 {"config__factory-pid":"access","felix__fileinstall__filename":"file:/opt/openidm/conf/process-access.json","_rev":"0","service__pid":"org.forgerock.openidm.process.f8ad846f-d54a-414a-bc6b-6382d7a09d74","_id":"org.forgerock.openidm.process.f8ad846f-d54a-414a-bc6b-6382d7a09d74","jsonconfig":{"workflowAccess":[{"propertiesCheck":{"property":"_id","matches":".*","requiresRole":"openidm-authorized"}},{"propertiesCheck":{"property":"_id","matches":".*","requiresRole":"openidm-admin"}}],"_id":"process/access"},"service__factoryPid":"org.forgerock.openidm.process"} 20 1 org.forgerock.openidm.process.factory 0 {"factory__pid":"org.forgerock.openidm.process","factory__pidList":["org.forgerock.openidm.process.f8ad846f-d54a-414a-bc6b-6382d7a09d74","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"0","_id":"org.forgerock.openidm.process.factory","jsonconfig":null} 21 1 org.forgerock.openidm.felix.webconsole 1 {"_rev":"1","service__pid":"org.forgerock.openidm.felix.webconsole","_id":"org.forgerock.openidm.felix.webconsole","jsonconfig":{"username":"admin","password":{"$crypto":{"type":"x-simple-encryption","value":{"cipher":"AES/CBC/PKCS5Padding","salt":"6rWQ+w5aFyfz01VyDGqQag==","data":"ofVg6er2fxzbDH6A2Asb7A==","iv":"M0rdVRJ28u40EnQ5L/kINQ==","key":"openidm-sym-default","mac":"+<KEY>}}},"_id":"felix.webconsole"}} 22 1 org.forgerock.openidm.selfservice.kba 1 {"_rev":"1","service__pid":"org.forgerock.openidm.selfservice.kba","_id":"org.forgerock.openidm.selfservice.kba","jsonconfig":{"kbaPropertyName":"kbaInfo","minimumAnswersToDefine":2,"minimumAnswersToVerify":1,"questions":{"1":{"en":"What's your favorite color?","en_GB":"What is your favourite colour?","fr":"Quelle est votre couleur préférée?"},"2":{"en":"Who was your first employer?"}},"_id":"selfservice.kba"}} 41 1 org.forgerock.openidm.emailTemplate.8b230c01-5808-4de9-8807-605f3e5c415b 0 {"config__factory-pid":"welcome","felix__fileinstall__filename":"file:/opt/openidm/conf/emailTemplate-welcome.json","_rev":"0","service__pid":"org.forgerock.openidm.emailTemplate.8b230c01-5808-4de9-8807-605f3e5c415b","_id":"org.forgerock.openidm.emailTemplate.8b230c01-5808-4de9-8807-605f3e5c415b","jsonconfig":{"enabled":false,"from":"","subject":{"en":"Your account has been created"},"message":{"en":"<html><body><html><body><p>Welcome to OpenIDM. Your username is '{{object.userName}}'.</p></body></html></body></html>"},"defaultLocale":"en","_id":"emailTemplate/welcome"},"service__factoryPid":"org.forgerock.openidm.emailTemplate"} 43 1 org.forgerock.openidm.endpoint.2bc5fef9-5b31-4d03-998f-f0eeafae3871 0 {"config__factory-pid":"oauthproxy","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-oauthproxy.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.2bc5fef9-5b31-4d03-998f-f0eeafae3871","_id":"org.forgerock.openidm.endpoint.2bc5fef9-5b31-4d03-998f-f0eeafae3871","jsonconfig":{"context":"endpoint/oauthproxy","type":"text/javascript","file":"ui/oauthProxy.js","_id":"endpoint/oauthproxy"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 18 1 org.forgerock.openidm.servletfilter.factory 1 {"factory__pid":"org.forgerock.openidm.servletfilter","factory__pidList":["org.forgerock.openidm.servletfilter.cc742f00-3aa1-4469-a633-693534d9e779","org.forgerock.openidm.servletfilter.d180ed1f-7c1a-42ac-8b0d-4b104f72176a","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"1","_id":"org.forgerock.openidm.servletfilter.factory","jsonconfig":null} 44 1 org.forgerock.openidm.servletfilter.d180ed1f-7c1a-42ac-8b0d-4b104f72176a 0 {"config__factory-pid":"gzip","felix__fileinstall__filename":"file:/opt/openidm/conf/servletfilter-gzip.json","_rev":"0","service__pid":"org.forgerock.openidm.servletfilter.d180ed1f-7c1a-42ac-8b0d-4b104f72176a","_id":"org.forgerock.openidm.servletfilter.d180ed1f-7c1a-42ac-8b0d-4b104f72176a","jsonconfig":{"classPathURLs":[],"systemProperties":{},"requestAttributes":{},"initParams":{},"scriptExtensions":{},"urlPatterns":["/*"],"filterClass":"org.eclipse.jetty.servlets.GzipFilter","_id":"servletfilter/gzip"},"service__factoryPid":"org.forgerock.openidm.servletfilter"} 23 1 org.forgerock.openidm.sync 1 {"_rev":"1","service__pid":"org.forgerock.openidm.sync","_id":"org.forgerock.openidm.sync","jsonconfig":{"mappings":[{"target":"system/ldap/account","source":"managed/user","name":"managedUser_systemLdapAccount","properties":[{"target":"givenName","source":"givenName"},{"target":"sn","source":"sn"},{"target":"cn","transform":{"type":"text/javascript","globals":{},"source":"source.displayName || (source.givenName + ' ' + source.sn)"},"source":""},{"target":"uid","source":"userName"},{"target":"mail","source":"mail"},{"target":"userPassword","transform":{"type":"text/javascript","globals":{},"source":"openidm.decrypt(source)"},"source":"password","condition":{"type":"text/javascript","globals":{},"source":"object.password != null"}},{"target":"userPassword","source":"tacticalPassword","transform":{"type":"text/javascript","globals":{},"source":"\\"{BCRYPT}\\" + source"},"condition":{"type":"text/javascript","globals":{},"source":"(object.password == null && object.tacticalPassword != null)"}},{"target":"dn","source":"userName","transform":{"type":"text/javascript","globals":{},"source":"username = source.replace(/[\\\\,\\\\+\\\\=\\\\;\\\\/]/g, \\"\\\\\\\\\\\\$&\\");\\nusername = username.replace(/[%]/g, \\"%25\\");\\n\\"uid=\\" + username + \\",ou=people,dc=reform,dc=hmcts,dc=net\\""}},{"target":"inetUserStatus","source":"accountStatus"}],"policies":[{"action":"EXCEPTION","situation":"AMBIGUOUS"},{"action":"DELETE","situation":"SOURCE_MISSING"},{"action":"UNLINK","situation":"MISSING"},{"action":"EXCEPTION","situation":"FOUND_ALREADY_LINKED"},{"action":"DELETE","situation":"UNQUALIFIED"},{"action":"EXCEPTION","situation":"UNASSIGNED"},{"action":"EXCEPTION","situation":"LINK_ONLY"},{"action":"IGNORE","situation":"TARGET_IGNORED"},{"action":"IGNORE","situation":"SOURCE_IGNORED"},{"action":"IGNORE","situation":"ALL_GONE"},{"action":"UPDATE","situation":"CONFIRMED"},{"action":"UPDATE","situation":"FOUND"},{"action":"CREATE","situation":"ABSENT"}],"enableSync":true,"correlationQuery":[{"linkQualifier":"default","type":"text/javascript","globals":{},"source":"var map = {'_queryFilter': 'uid eq \\\\\\"' + source.userName + '\\\\\\"'}; map;\\n"}]},{"target":"system/ldap/group","source":"managed/role","name":"managedRole_systemLdapGroup0","properties":[{"target":"dn","transform":{"type":"text/javascript","globals":{},"source":"\\"cn=\\" + source.name + \\",ou=groups,dc=reform,dc=hmcts,dc=net\\""},"source":""},{"target":"cn","transform":{"type":"text/javascript","globals":{},"source":"source.name"},"source":""}],"policies":[{"action":"EXCEPTION","situation":"AMBIGUOUS"},{"action":"DELETE","situation":"SOURCE_MISSING"},{"action":"CREATE","situation":"MISSING"},{"action":"EXCEPTION","situation":"FOUND_ALREADY_LINKED"},{"action":"DELETE","situation":"UNQUALIFIED"},{"action":"EXCEPTION","situation":"UNASSIGNED"},{"action":"EXCEPTION","situation":"LINK_ONLY"},{"action":"IGNORE","situation":"TARGET_IGNORED"},{"action":"IGNORE","situation":"SOURCE_IGNORED"},{"action":"IGNORE","situation":"ALL_GONE"},{"action":"UPDATE","situation":"CONFIRMED"},{"action":"UPDATE","situation":"FOUND"},{"action":"CREATE","situation":"ABSENT"}],"correlationQuery":[{"linkQualifier":"default","expressionTree":{"any":["dn","cn"]},"mapping":"managedRole_systemLdapGroup0","type":"text/javascript","file":"ui/correlateTreeToQueryFilter.js"}]},{"target":"managed/user","source":"system/CsvTacticalUsers/RegisteredUser","name":"TacticalUser__managedUser","icon":null,"properties":[{"target":"_id","source":"__UID__"},{"target":"userName","source":"","transform":{"type":"text/javascript","globals":{},"source":"if (source.pin != null) { \\n source.pin; \\n} else { \\n source.email; \\n}"}},{"target":"tacticalPassword","source":"","transform":{"type":"text/javascript","globals":{},"source":"if (source.pin != null && source.password == null) { \\n \\"$2a$12$WBqkE.0Fk80hlY0WPp0HF.XnYppE7qEOccR4gw4sFoLCsVicwzFFO\\"; \\n} else {\\n source.password; \\n}"}},{"target":"tacticalRoles","source":"roles"},{"target":"givenName","source":"forename"},{"target":"sn","source":"surname"},{"target":"accountStatus","source":"enabled","transform":{"type":"text/javascript","globals":{},"source":"if (source == \\"f\\") { \\n \\"inactive\\"; \\n} else { \\n \\"active\\"; \\n}"}},{"target":"mail","transform":{"type":"text/javascript","globals":{},"source":"if (source.pin != null) { \\n var firstName = source.forename; \\n var lastName = source.surname; \\n var pin = source.pin; \\n \\"${firstName}.${lastName}@${pin}.idampin\\"\\n .replace(\\"${firstName}\\", firstName)\\n .replace(\\"${lastName}\\", lastName)\\n .replace(\\"${pin}\\", pin); \\n} else { \\n source.email; \\n}"},"source":""},{"target":"sunset","source":"","transform":{"type":"text/javascript","globals":{},"source":"var sunset = {};\\nif (source.pin != null) { \\n var expirationDate = new Date(); \\n expirationDate.setSeconds(expirationDate.getSeconds() + 1728000); \\n sunset = {\\"date\\" : expirationDate.toISOString()};\\n \\n} \\nsunset;"}}],"policies":[{"action":"EXCEPTION","situation":"AMBIGUOUS"},{"action":"EXCEPTION","situation":"SOURCE_MISSING"},{"action":"CREATE","situation":"MISSING"},{"action":"EXCEPTION","situation":"FOUND_ALREADY_LINKED"},{"action":"EXCEPTION","situation":"UNQUALIFIED"},{"action":"EXCEPTION","situation":"UNASSIGNED"},{"action":"IGNORE","situation":"LINK_ONLY"},{"action":"IGNORE","situation":"TARGET_IGNORED"},{"action":"IGNORE","situation":"SOURCE_IGNORED"},{"action":"IGNORE","situation":"ALL_GONE"},{"action":"UPDATE","situation":"CONFIRMED"},{"action":"UPDATE","situation":"FOUND"},{"action":"CREATE","situation":"ABSENT"}],"enableSync":false}],"_id":"sync"}} 24 1 org.forgerock.openidm.ui.f4a3a484-d582-4f24-ac36-43a0f0039866 0 {"config__factory-pid":"themeconfig","felix__fileinstall__filename":"file:/opt/openidm/conf/ui-themeconfig.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.f4a3a484-d582-4f24-ac36-43a0f0039866","_id":"org.forgerock.openidm.ui.f4a3a484-d582-4f24-ac36-43a0f0039866","jsonconfig":{"icon":"favicon.ico","path":"","stylesheets":["css/bootstrap-3.3.5-custom.css","css/structure.css","css/theme.css"],"settings":{"logo":{"src":"images/logo-horizontal.png","title":"ForgeRock","alt":"ForgeRock"},"loginLogo":{"src":"images/login-logo.png","title":"ForgeRock","alt":"ForgeRock","height":"104px","width":"210px"},"footer":{"mailto":"<EMAIL>"}},"_id":"ui/themeconfig"},"service__factoryPid":"org.forgerock.openidm.ui"} 26 1 org.forgerock.openidm.scheduler 1 {"_rev":"1","service__pid":"org.forgerock.openidm.scheduler","_id":"org.forgerock.openidm.scheduler","jsonconfig":{"threadPool":{"threadCount":"10"},"scheduler":{"executePersistentSchedules":"&{openidm.scheduler.execute.persistent.schedules}"},"_id":"scheduler"}} 27 1 org.forgerock.openidm.endpoint.a8bb1458-4286-4f0b-8101-600f2006b3ba 0 {"config__factory-pid":"reconResults","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-reconResults.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.a8bb1458-4286-4f0b-8101-600f2006b3ba","_id":"org.forgerock.openidm.endpoint.a8bb1458-4286-4f0b-8101-600f2006b3ba","jsonconfig":{"type":"text/javascript","context":"endpoint/reconResults","file":"ui/reconResults.js","_id":"endpoint/reconResults"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 28 1 org.forgerock.openidm.ui.context.207d191d-22f0-45c3-80c3-e1383dfa2c4f 0 {"config__factory-pid":"selfservice","felix__fileinstall__filename":"file:/opt/openidm/conf/ui.context-selfservice.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.context.207d191d-22f0-45c3-80c3-e1383dfa2c4f","_id":"org.forgerock.openidm.ui.context.207d191d-22f0-45c3-80c3-e1383dfa2c4f","jsonconfig":{"enabled":true,"urlContextRoot":"/","defaultDir":"&{launcher.install.location}/ui/selfservice/default","extensionDir":"&{launcher.install.location}/ui/selfservice/extension","responseHeaders":{"X-Frame-Options":"DENY"},"_id":"ui.context/selfservice"},"service__factoryPid":"org.forgerock.openidm.ui.context"} 29 1 org.forgerock.openidm.ui.d0b71f50-f715-49c3-82a7-c38734859a03 0 {"config__factory-pid":"configuration","felix__fileinstall__filename":"file:/opt/openidm/conf/ui-configuration.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.d0b71f50-f715-49c3-82a7-c38734859a03","_id":"org.forgerock.openidm.ui.d0b71f50-f715-49c3-82a7-c38734859a03","jsonconfig":{"configuration":{"selfRegistration":true,"passwordReset":true,"forgotUsername":false,"lang":"en","passwordResetLink":"","roles":{"openidm-authorized":"ui-user","openidm-admin":"ui-admin"},"notificationTypes":{"info":{"name":"common.notification.types.info","iconPath":"images/notifications/info.png"},"warning":{"name":"common.notification.types.warning","iconPath":"images/notifications/warning.png"},"error":{"name":"common.notification.types.error","iconPath":"images/notifications/error.png"}},"defaultNotificationType":"info","kbaDefinitionEnabled":true,"kbaEnabled":true},"_id":"ui/configuration"},"service__factoryPid":"org.forgerock.openidm.ui"} 30 1 org.forgerock.openidm.info.bf2b6da5-3dae-4d16-8bad-95f49d9b9890 0 {"config__factory-pid":"uiconfig","felix__fileinstall__filename":"file:/opt/openidm/conf/info-uiconfig.json","_rev":"0","service__pid":"org.forgerock.openidm.info.bf2b6da5-3dae-4d16-8bad-95f49d9b9890","_id":"org.forgerock.openidm.info.bf2b6da5-3dae-4d16-8bad-95f49d9b9890","jsonconfig":{"file":"info/uiconfig.js","type":"text/javascript","apiDescription":{"title":"Information","description":"Service that provides OpenIDM UI information.","mvccSupported":false,"read":{"description":"Provides the UI configuration of this OpenIDM instance."},"resourceSchema":{"title":"UI Info","type":"object","required":["configuration"],"properties":{"configuration":{"type":"object","title":"OpenIDM UI configuration","required":["selfRegistration","passwordReset","forgottenUsername","roles","notificationTypes","defaultNotificationType"],"properties":{"selfRegistration":{"type":"boolean","description":"Whether self-registration is enabled"},"passwordReset":{"type":"boolean","description":"Whether password reset is enabled"},"forgottenUsername":{"type":"boolean","description":"Whether forgotten username is enabled"},"lang":{"type":"string","description":"The user-agent requested language, or default language if not supplied"},"passwordResetLink":{"type":"string","description":"Link to an external application that can perform password reset"},"roles":{"type":"object","title":"Maps OpenIDM users' authzRoles to UI roles"},"notificationTypes":{"type":"object","title":"Configuration for UI notification icons","required":["info","warning","error"],"properties":{"info":{"type":"object","title":"Information notification","required":["name","iconPath"],"properties":{"name":{"type":"string","description":"The translation key for the notification text"},"iconPath":{"type":"string","description":"The path to the notification icon"}}},"warning":{"type":"object","title":"Warning notification","required":["name","iconPath"],"properties":{"name":{"type":"string","description":"The translation key for the notification text"},"iconPath":{"type":"string","description":"The path to the notification icon"}}},"error":{"type":"object","title":"Error notification","required":["name","iconPath"],"properties":{"name":{"type":"string","description":"The translation key for the notification text"},"iconPath":{"type":"string","description":"The path to the notification icon"}}}}},"defaultNotificationType":{"type":"object","description":"The default notification type"}}}}}},"_id":"info/uiconfig"},"service__factoryPid":"org.forgerock.openidm.info"} 42 1 org.forgerock.openidm.emailTemplate.factory 1 {"factory__pid":"org.forgerock.openidm.emailTemplate","factory__pidList":["org.forgerock.openidm.emailTemplate.7e21bcdc-e079-4d20-b004-27de218c8e19","org.forgerock.openidm.emailTemplate.8b230c01-5808-4de9-8807-605f3e5c415b","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"1","_id":"org.forgerock.openidm.emailTemplate.factory","jsonconfig":null} 25 1 org.forgerock.openidm.ui.factory 3 {"factory__pid":"org.forgerock.openidm.ui","factory__pidList":["org.forgerock.openidm.ui.f4a3a484-d582-4f24-ac36-43a0f0039866","org.forgerock.openidm.ui.d0b71f50-f715-49c3-82a7-c38734859a03","org.forgerock.openidm.ui.8a2fd12d-5c33-4d1e-86c6-54b75f73e15d","org.forgerock.openidm.ui.172f1099-94c9-423e-ae40-03df70a5f672","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"3","_id":"org.forgerock.openidm.ui.factory","jsonconfig":null} 32 1 org.forgerock.openidm.info.25633d08-9464-497f-b838-b84bb35416c9 0 {"config__factory-pid":"login","felix__fileinstall__filename":"file:/opt/openidm/conf/info-login.json","_rev":"0","service__pid":"org.forgerock.openidm.info.25633d08-9464-497f-b838-b84bb35416c9","_id":"org.forgerock.openidm.info.25633d08-9464-497f-b838-b84bb35416c9","jsonconfig":{"file":"info/login.js","type":"text/javascript","apiDescription":{"title":"Information","description":"Service that provides information about an authenticated account.","mvccSupported":false,"read":{"description":"Provides authentication and authorization details, for the authenticated caller (e.g., User)."},"resourceSchema":{"title":"Auth Info","type":"object","required":["authorization","authenticationId"],"properties":{"authorization":{"type":"object","title":"Authorization","description":"Authorization details","required":["component","roles","ipAddress","id","moduleId"],"properties":{"component":{"type":"string","description":"Resource path (e.g., repo/internal/user)"},"roles":{"type":"array","items":{"type":"string"},"description":"Roles"},"ipAddress":{"type":"string","description":"Client IP Address"},"id":{"type":"string","description":"Resource ID (e.g., User ID)"},"moduleId":{"type":"string","description":"Auth Module ID","enum":["JWT_SESSION","OPENAM_SESSION","CLIENT_CERT","DELEGATED","MANAGED_USER","INTERNAL_USER","STATIC_USER","PASSTHROUGH","IWA","SOCIAL_PROVIDERS","OAUTH_CLIENT","TRUSTED_ATTRIBUTE"],"enum_titles":["JSON Web Token Session","OpenAM Session","Client Certificate","Delegated","Managed User","Internal User","Static User","Passthrough","Integrated Windows Authentication","Social Providers","Single OAuth Client","Trusted Attribute"]}}},"authenticationId":{"type":"string","description":"Resource ID (e.g., User ID)"}}}},"_id":"info/login"},"service__factoryPid":"org.forgerock.openidm.info"} 33 1 org.forgerock.openidm.datasource.jdbc.47095bd4-dcb9-457d-95f4-41d75d833140 0 {"config__factory-pid":"default","felix__fileinstall__filename":"file:/opt/openidm/conf/datasource.jdbc-default.json","_rev":"0","service__pid":"org.forgerock.openidm.datasource.jdbc.47095bd4-dcb9-457d-95f4-41d75d833140","_id":"org.forgerock.openidm.datasource.jdbc.47095bd4-dcb9-457d-95f4-41d75d833140","jsonconfig":{"driverClass":"org.postgresql.Driver","jdbcUrl":"jdbc:postgresql://shared-db:5432/openidm","databaseName":"openidm","username":"openidm","password":{"$crypto":{"type":"x-simple-encryption","value":{"cipher":"AES/CBC/PKCS5Padding","salt":"mYvOTSMQrsE+pf59sv3H+A==","data":"eHEvlAd0EdeiB9gC7UbgUw==","iv":"JnQ4I17VP9HTXjMCiBYV9Q==","key":"openidm-sym-default","mac":"QOft2ptPGbaF/eDKi9t5Tw=="}}},"connectionTimeout":30000,"connectionPool":{"type":"hikari","minimumIdle":20,"maximumPoolSize":50},"_id":"datasource.jdbc/default"},"service__factoryPid":"org.forgerock.openidm.datasource.jdbc"} 34 1 org.forgerock.openidm.datasource.jdbc.factory 0 {"factory__pid":"org.forgerock.openidm.datasource.jdbc","factory__pidList":["org.forgerock.openidm.datasource.jdbc.47095bd4-dcb9-457d-95f4-41d75d833140","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"0","_id":"org.forgerock.openidm.datasource.jdbc.factory","jsonconfig":null} 35 1 org.forgerock.openidm.info.4ba76273-40ff-44bf-8307-8d5e1b29b08c 0 {"config__factory-pid":"version","felix__fileinstall__filename":"file:/opt/openidm/conf/info-version.json","_rev":"0","service__pid":"org.forgerock.openidm.info.4ba76273-40ff-44bf-8307-8d5e1b29b08c","_id":"org.forgerock.openidm.info.4ba76273-40ff-44bf-8307-8d5e1b29b08c","jsonconfig":{"file":"info/version.js","type":"text/javascript","apiDescription":{"title":"Information","description":"Service that provides OpenIDM version information.","mvccSupported":false,"read":{"description":"Provides the software version of this OpenIDM instance."},"resourceSchema":{"title":"Version Info","type":"object","required":["productVersion","productRevision"],"properties":{"productVersion":{"type":"string","description":"OpenIDM version number"},"productRevision":{"type":"string","description":"OpenIDM source-code revision","default":"unknown"}}}},"_id":"info/version"},"service__factoryPid":"org.forgerock.openidm.info"} 36 1 org.forgerock.openidm.jsonstore 1 {"_rev":"1","service__pid":"org.forgerock.openidm.jsonstore","_id":"org.forgerock.openidm.jsonstore","jsonconfig":{"cleanupDwellSeconds":3600,"entryExpireSeconds":1800,"_id":"jsonstore"}} 37 1 org.forgerock.openidm.endpoint.5a6f7be3-e04d-4a18-928f-e0532b2d5d76 0 {"config__factory-pid":"usernotifications","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-usernotifications.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.5a6f7be3-e04d-4a18-928f-e0532b2d5d76","_id":"org.forgerock.openidm.endpoint.5a6f7be3-e04d-4a18-928f-e0532b2d5d76","jsonconfig":{"type":"text/javascript","file":"ui/notification/userNotifications.js","_id":"endpoint/usernotifications"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 38 1 org.forgerock.openidm.schedule.7eb4c308-dfb8-4814-95a6-a6eeecf006c6 0 {"config__factory-pid":"reconcile-accounts","felix__fileinstall__filename":"file:/opt/openidm/conf/schedule-reconcile-accounts.json","_rev":"0","service__pid":"org.forgerock.openidm.schedule.7eb4c308-dfb8-4814-95a6-a6eeecf006c6","_id":"org.forgerock.openidm.schedule.7eb4c308-dfb8-4814-95a6-a6eeecf006c6","jsonconfig":{"enabled":true,"type":"cron","schedule":"0 0 22 * * ?","timezone":"GMT","persisted":true,"invokeService":"sync","invokeContext":{"action":"reconcile","mapping":"managedUser_systemLdapAccount"},"_id":"schedule/reconcile-accounts"},"service__factoryPid":"org.forgerock.openidm.schedule"} 39 1 org.forgerock.openidm.ui.172f1099-94c9-423e-ae40-03df70a5f672 0 {"config__factory-pid":"profile","felix__fileinstall__filename":"file:/opt/openidm/conf/ui-profile.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.172f1099-94c9-423e-ae40-03df70a5f672","_id":"org.forgerock.openidm.ui.172f1099-94c9-423e-ae40-03df70a5f672","jsonconfig":{"tabs":[{"name":"personalInfoTab","view":"org/forgerock/openidm/ui/user/profile/personalInfo/PersonalInfoTab"},{"name":"signInAndSecurity","view":"org/forgerock/openidm/ui/user/profile/signInAndSecurity/SignInAndSecurityTab"},{"name":"preference","view":"org/forgerock/openidm/ui/user/profile/PreferencesTab"},{"name":"trustedDevice","view":"org/forgerock/openidm/ui/user/profile/TrustedDevicesTab"},{"name":"oauthApplication","view":"org/forgerock/openidm/ui/user/profile/OauthApplicationsTab"},{"name":"privacyAndConsent","view":"org/forgerock/openidm/ui/user/profile/PrivacyAndConsentTab"},{"name":"sharing","view":"org/forgerock/openidm/ui/user/profile/uma/SharingTab"},{"name":"auditHistory","view":"org/forgerock/openidm/ui/user/profile/uma/ActivityTab"},{"name":"accountControls","view":"org/forgerock/openidm/ui/user/profile/accountControls/AccountControlsTab"}],"_id":"ui/profile"},"service__factoryPid":"org.forgerock.openidm.ui"} 40 1 org.forgerock.openidm.endpoint.91afa283-a85f-45f1-b6dc-ce8897be4a5d 0 {"config__factory-pid":"linkedView","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-linkedView.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.91afa283-a85f-45f1-b6dc-ce8897be4a5d","_id":"org.forgerock.openidm.endpoint.91afa283-a85f-45f1-b6dc-ce8897be4a5d","jsonconfig":{"context":"endpoint/linkedView/*","type":"text/javascript","source":"require('linkedView').fetch(request.resourcePath);","_id":"endpoint/linkedView"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 45 1 org.forgerock.openidm.selfservice.b61e1b34-5823-4d8d-bdd8-da96ac9458f6 0 {"config__factory-pid":"reset","felix__fileinstall__filename":"file:/opt/openidm/conf/selfservice-reset.json","_rev":"0","service__pid":"org.forgerock.openidm.selfservice.b61e1b34-5823-4d8d-bdd8-da96ac9458f6","_id":"org.forgerock.openidm.selfservice.b61e1b34-5823-4d8d-bdd8-da96ac9458f6","jsonconfig":{"stageConfigs":[{"name":"userQuery","validQueryFields":["userName","mail","givenName","sn"],"identityIdField":"_id","identityEmailField":"mail","identityUsernameField":"userName","identityServiceUrl":"managed/user"},{"name":"emailValidation","identityEmailField":"mail","emailServiceUrl":"external/email","from":"<EMAIL>","subject":"Reset password email","mimeType":"text/html","subjectTranslations":{"en":"Complete your password reset request"},"messageTranslations":{"en":"<h1>Reset your password</h1>\\n Hello,<br/><br/>\\n \\n Please click <a href=\\"%link%\\" target=\\"_self\\">here</a> to reset your password.<br/><br/>\\n \\n The HMCTS IdAM team.\\n "},"verificationLinkToken":"%link%","verificationLink":"http://localhost:3501/passwordReset?action=start"},{"name":"resetStage","identityServiceUrl":"managed/user","identityPasswordField":"password"}],"snapshotToken":{"type":"jwt","jweAlgorithm":"RSAES_PKCS1_V1_5","encryptionMethod":"A128CBC_HS256","jwsAlgorithm":"HS256","tokenExpiry":"172800"},"storage":"stateless","_id":"selfservice/reset"},"service__factoryPid":"org.forgerock.openidm.selfservice"} 46 1 org.forgerock.openidm.endpoint.d19fb0e2-0e8f-469d-97f8-715e21fae1c8 0 {"config__factory-pid":"mappingDetails","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-mappingDetails.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.d19fb0e2-0e8f-469d-97f8-715e21fae1c8","_id":"org.forgerock.openidm.endpoint.d19fb0e2-0e8f-469d-97f8-715e21fae1c8","jsonconfig":{"type":"text/javascript","context":"endpoint/mappingDetails","file":"ui/mappingDetails.js","_id":"endpoint/mappingDetails"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 47 1 org.forgerock.openidm.info.c792bc28-88d7-4dfb-8cfa-b7a5139e1f05 0 {"config__factory-pid":"ping","felix__fileinstall__filename":"file:/opt/openidm/conf/info-ping.json","_rev":"0","service__pid":"org.forgerock.openidm.info.c792bc28-88d7-4dfb-8cfa-b7a5139e1f05","_id":"org.forgerock.openidm.info.c792bc28-88d7-4dfb-8cfa-b7a5139e1f05","jsonconfig":{"source":"require('info/ping').checkState(request, healthinfo)","type":"text/javascript","apiDescription":{"title":"Information","description":"Service that allows you to ping the server.","mvccSupported":false,"read":{"description":"Returns OpenIDM status information, and is an endpoint suitable for pinging the server."},"resourceSchema":{"title":"Status Info","type":"object","required":["shortDesc","state"],"properties":{"shortDesc":{"type":"string","description":"Short description of OpenIDM's state"},"state":{"type":"string","description":"OpenIDM's current state","enum":["STARTING","ACTIVE_READY","ACTIVE_NOT_READY","STOPPING"],"enum_titles":["Starting","Ready","Not Ready","Stopping"]}}}},"_id":"info/ping"},"service__factoryPid":"org.forgerock.openidm.info"} 31 1 org.forgerock.openidm.info.factory 3 {"factory__pid":"org.forgerock.openidm.info","factory__pidList":["org.forgerock.openidm.info.25633d08-9464-497f-b838-b84bb35416c9","org.forgerock.openidm.info.4ba76273-40ff-44bf-8307-8d5e1b29b08c","org.forgerock.openidm.info.bf2b6da5-3dae-4d16-8bad-95f49d9b9890","org.forgerock.openidm.info.c792bc28-88d7-4dfb-8cfa-b7a5139e1f05","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"3","_id":"org.forgerock.openidm.info.factory","jsonconfig":null} 48 1 org.forgerock.openidm.external.email 1 {"_rev":"1","service__pid":"org.forgerock.openidm.external.email","_id":"org.forgerock.openidm.external.email","jsonconfig":{"host":"smtp-server","port":"1025","auth":{"enable":false,"username":"<EMAIL>","password":{"$crypto":{"type":"x-simple-encryption","value":{"cipher":"AES/CBC/PKCS5Padding","salt":"p5SZxlKdmh11FO8qXO665Q==","data":"1ncP3eAlBXE75BsASgOFeg==","iv":"2bXiBkg9cDNii42TgyqkAw==","key":"openidm-sym-default","mac":"0hRJ0OfFp6KEX6mL/j9Y9A=="}}}},"starttls":{"enable":true},"from":"<EMAIL>","_id":"external.email"}} 49 1 org.forgerock.openidm.identityProviders 1 {"_rev":"1","service__pid":"org.forgerock.openidm.identityProviders","_id":"org.forgerock.openidm.identityProviders","jsonconfig":{"providers":[{"provider":"google","authorizationEndpoint":"https://accounts.google.com/o/oauth2/v2/auth","tokenEndpoint":"https://www.googleapis.com/oauth2/v4/token","userInfoEndpoint":"https://www.googleapis.com/oauth2/v3/userinfo","wellKnownEndpoint":"https://accounts.google.com/.well-known/openid-configuration","clientId":"","clientSecret":"","uiConfig":{"iconBackground":"#4184f3","iconClass":"fa-google","iconFontColor":"white","buttonImage":"images/g-logo.png","buttonClass":"","buttonCustomStyle":"background-color: #fff; color: #757575; border-color: #ddd;","buttonCustomStyleHover":"color: #6d6d6d; background-color: #eee; border-color: #ccc;","buttonDisplayName":"Google"},"scope":["openid","profile","email"],"authenticationIdKey":"sub","schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Google","title":"Google","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"sub":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"name":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"given_name":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"family_name":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"picture":{"description":"Profile Picture URL","title":"Profile Picture URL","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true},"locale":{"description":"Locale Code","title":"Locale Code","viewable":true,"type":"string","searchable":true}},"order":["sub","name","given_name","family_name","picture","email","locale"],"required":[]},"propertyMap":[{"source":"sub","target":"id"},{"source":"name","target":"displayName"},{"source":"given_name","target":"givenName"},{"source":"family_name","target":"familyName"},{"source":"picture","target":"photoUrl"},{"source":"email","target":"email"},{"source":"email","target":"username"},{"source":"locale","target":"locale"}],"redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oidc.OpenIDConnectClientConfiguration","basicAuth":false},{"provider":"facebook","authorizationEndpoint":"https://www.facebook.com/dialog/oauth","tokenEndpoint":"https://graph.facebook.com/v2.7/oauth/access_token","userInfoEndpoint":"https://graph.facebook.com/me?fields=id,name,picture,email,first_name,last_name,locale","clientId":"","clientSecret":"","scope":["email","user_birthday"],"uiConfig":{"iconBackground":"#3b5998","iconClass":"fa-facebook","iconFontColor":"white","buttonImage":"","buttonClass":"fa-facebook-official","buttonDisplayName":"Facebook","buttonCustomStyle":"background-color: #3b5998;border-color: #3b5998; color: white;","buttonCustomStyleHover":"background-color: #334b7d;border-color: #334b7d; color: white;"},"basicAuth":false,"authenticationIdKey":"id","schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Facebook","title":"Facebook","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"id":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"name":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"first_name":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"last_name":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true},"locale":{"description":"Locale Code","title":"Locale Code","viewable":true,"type":"string","searchable":true}},"order":["id","name","first_name","last_name","email","locale"],"required":[]},"propertyMap":[{"source":"id","target":"id"},{"source":"name","target":"displayName"},{"source":"first_name","target":"givenName"},{"source":"last_name","target":"familyName"},{"source":"email","target":"email"},{"source":"email","target":"username"},{"source":"locale","target":"locale"}],"redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration"},{"provider":"linkedIn","authorizationEndpoint":"https://www.linkedin.com/oauth/v2/authorization","tokenEndpoint":"https://www.linkedin.com/oauth/v2/accessToken","userInfoEndpoint":"https://api.linkedin.com/v1/people/~:(id,formatted-name,first-name,last-name,email-address,location)?format=json","clientId":"","clientSecret":"","scope":["r_basicprofile","r_emailaddress"],"authenticationIdKey":"id","basicAuth":false,"uiConfig":{"iconBackground":"#0077b5","iconClass":"fa-linkedin","iconFontColor":"white","buttonImage":"","buttonClass":"fa-linkedin","buttonDisplayName":"LinkedIn","buttonCustomStyle":"background-color:#0077b5;border-color:#0077b5;color:white;","buttonCustomStyleHover":"background-color:#006ea9; border-color:#006ea9;color:white;"},"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:LinkedIn","title":"LinkedIn","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"id":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":false},"formattedName":{"description":"Formatted Name","title":"Formatted Name","viewable":true,"type":"string","searchable":true},"firstName":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"lastName":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"emailAddress":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true},"location":{"description":"Location","title":"Location","viewable":true,"type":"object","searchable":true,"properties":{"country":{"description":"Country","title":"Country","type":"object","properties":{"code":{"description":"Locale Code","title":"Locale Code","type":"string"}}},"name":{"description":"Area Name","type":"string","title":"Area Name"}}}},"order":["id","formattedName","emailAddress","firstName","lastName","location"],"required":[]},"propertyMap":[{"source":"id","target":"id"},{"source":"formattedName","target":"displayName"},{"source":"firstName","target":"givenName"},{"source":"lastName","target":"familyName"},{"source":"emailAddress","target":"email"},{"source":"emailAddress","target":"username"},{"source":"location","target":"locale","transform":{"type":"text/javascript","source":"source.country.code"}}],"redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration"},{"provider":"amazon","authorizationEndpoint":"https://www.amazon.com/ap/oa","tokenEndpoint":"https://api.amazon.com/auth/o2/token","userInfoEndpoint":"https://api.amazon.com/user/profile","enabled":false,"clientId":"","clientSecret":"","scope":["profile"],"authenticationIdKey":"user_id","basicAuth":false,"uiConfig":{"iconBackground":"#f0c14b","iconClass":"fa-amazon","iconFontColor":"black","buttonImage":"","buttonClass":"fa-amazon","buttonDisplayName":"Amazon","buttonCustomStyle":"background: linear-gradient(to bottom, #f7e09f 15%,#f5c646 85%);color: black;border-color: #b48c24;","buttonCustomStyleHover":"background: linear-gradient(to bottom, #f6c94e 15%,#f6c94e 85%);color: black;border-color: #b48c24;"},"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Amazon","title":"Amazon","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"user_id":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"name":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true}},"order":["user_id","name","email"],"required":[]},"propertyMap":[{"source":"user_id","target":"id"},{"source":"name","target":"displayName"},{"source":"email","target":"email"},{"source":"email","target":"username"}],"redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration"},{"provider":"wordpress","authorizationEndpoint":"https://public-api.wordpress.com/oauth2/authorize","tokenEndpoint":"https://public-api.wordpress.com/oauth2/token","userInfoEndpoint":"https://public-api.wordpress.com/rest/v1.1/me/","enabled":false,"clientId":"","clientSecret":"","scope":["auth"],"authenticationIdKey":"username","basicAuth":false,"uiConfig":{"iconBackground":"#0095cc","iconClass":"fa-wordpress","iconFontColor":"white","buttonImage":"","buttonClass":"fa-wordpress","buttonDisplayName":"WordPress","buttonCustomStyle":"background-color: #0095cc; border-color: #0095cc; color:white;","buttonCustomStyleHover":"background-color: #0095cc; border-color: #0095cc; color:white;"},"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Wordpress","username":"http://jsonschema.net","title":"Wordpress","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"username":{"description":"username","title":"username","viewable":true,"type":"string","searchable":true},"email":{"description":"email","title":"email","viewable":true,"type":"string","searchable":true}},"order":["username","email"],"required":[]},"propertyMap":[{"source":"username","target":"username"},{"source":"username","target":"id"},{"source":"email","target":"email"}],"redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration"},{"provider":"microsoft","authorizationEndpoint":"https://login.microsoftonline.com/common/oauth2/v2.0/authorize","tokenEndpoint":"https://login.microsoftonline.com/common/oauth2/v2.0/token","userInfoEndpoint":"https://graph.microsoft.com/v1.0/me","clientId":"","clientSecret":"","scope":["User.Read"],"authenticationIdKey":"id","basicAuth":false,"uiConfig":{"iconBackground":"#0078d7","iconClass":"fa-windows","iconFontColor":"white","buttonImage":"images/microsoft-logo.png","buttonClass":"","buttonDisplayName":"Microsoft","buttonCustomStyle":"background-color: #fff; border-color: #8b8b8b; color: #8b8b8b;","buttonCustomStyleHover":"background-color: #fff; border-color: #8b8b8b; color: #8b8b8b;"},"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Microsoft","title":"Microsoft","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"id":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":false},"displayName":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"givenName":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"surname":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"userPrincipalName":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true}},"order":["id","displayName","userPrincipalName","givenName","surname"],"required":[]},"propertyMap":[{"source":"id","target":"id"},{"source":"displayName","target":"displayName"},{"source":"givenName","target":"givenName"},{"source":"surname","target":"familyName"},{"source":"userPrincipalName","target":"email"},{"source":"userPrincipalName","target":"username"}],"redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration"},{"provider":"vkontakte","configClass":"org.forgerock.oauth.clients.vk.VKClientConfiguration","basicAuth":false,"clientId":"","clientSecret":"","authorizationEndpoint":"https://oauth.vk.com/authorize","tokenEndpoint":"https://oauth.vk.com/access_token","userInfoEndpoint":"https://api.vk.com/method/users.get","redirectUri":"https://localhost:8443/oauthReturn/","scope":["email"],"uiConfig":{"iconBackground":"#4c75a3","iconClass":"fa-vk","iconFontColor":"white","buttonImage":"","buttonClass":"fa-vk","buttonDisplayName":"VK","buttonCustomStyle":"background-color: #4c75a3; border-color: #4c75a3;color: white;","buttonCustomStyleHover":"background-color: #43658c; border-color: #43658c;color: white;"},"authenticationIdKey":"uid","propertyMap":[{"source":"uid","target":"id"},{"source":"first_name","target":"displayName"},{"source":"first_name","target":"givenName"},{"source":"last_name","target":"familyName"},{"source":"email","target":"email"},{"source":"email","target":"username"}],"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Vkontakte","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"uid":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"name":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"first_name":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"last_name":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true}},"order":["uid","name","last_name","first_name","email"],"required":[]}},{"provider":"instagram","configClass":"org.forgerock.oauth.clients.instagram.InstagramClientConfiguration","basicAuth":false,"clientId":"","clientSecret":"","authorizationEndpoint":"https://api.instagram.com/oauth/authorize/","tokenEndpoint":"https://api.instagram.com/oauth/access_token","userInfoEndpoint":"https://api.instagram.com/v1/users/self/","redirectUri":"https://localhost:8443/oauthReturn/","scope":["basic","public_content"],"uiConfig":{"iconBackground":"#3f729b","iconClass":"fa-instagram","iconFontColor":"white","buttonImage":"","buttonClass":"fa-instagram","buttonDisplayName":"Instagram","buttonCustomStyle":"background-color: #3f729b; border-color: #3f729b;color: white;","buttonCustomStyleHover":"background-color: #305777; border-color: #305777;color: white;"},"connectionTimeout":0,"readTimeout":0,"authenticationIdKey":"id","propertyMap":[{"source":"id","target":"id"},{"full_name":"full_name","target":"displayName"},{"source":"profile_picture","target":"photoUrl"},{"source":"username","target":"username"}],"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Instagram","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"id":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"full_name":{"description":"Full Name","title":"Full Name","viewable":true,"type":"string","searchable":true},"profile_picture":{"description":"Profile Picture URL","title":"Profile Picture URL","viewable":true,"type":"string","searchable":true},"username":{"description":"Username","title":"Username","viewable":true,"type":"string","searchable":true}},"order":["id","full_name","profile_picture","photoUrl","username"],"required":[]}},{"provider":"wechat","configClass":"org.forgerock.oauth.clients.wechat.WeChatClientConfiguration","basicAuth":false,"clientId":"","clientSecret":"","authorizationEndpoint":"https://open.weixin.qq.com/connect/qrconnect","tokenEndpoint":"https://api.wechat.com/sns/oauth2/access_token","refreshTokenEndpoint":"https://api.wechat.com/sns/oauth2/refresh_token","userInfoEndpoint":"https://api.wechat.com/sns/userinfo","redirectUri":"https://localhost:8443/oauthReturn/","scope":["snsapi_login"],"uiConfig":{"iconBackground":"#09b507","iconClass":"fa-wechat","iconFontColor":"white","buttonImage":"","buttonClass":"fa-wechat","buttonDisplayName":"WeChat","buttonCustomStyle":"background-color: #09b507; border-color: #09b507;color: white;","buttonCustomStyleHover":"background-color: #09a007; border-color: #09a007;color: white;"},"connectionTimeout":0,"readTimeout":0,"authenticationIdKey":"openid","propertyMap":[{"source":"openid","target":"id"},{"source":"nickname","target":"displayName"},{"source":"nickname","target":"username"},{"source":"headimgurl","target":"photoUrl"}],"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Wechat","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"openid":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"nickname":{"description":"Username","title":"Username","viewable":true,"type":"string","searchable":true},"headimgurl":{"description":"Profile Picture URL","title":"Profile Picture URL","viewable":true,"type":"string","searchable":true}},"order":["openid","nickname","headimgurl"],"required":[]}},{"provider":"yahoo","scope":["openid","sdpp-w"],"uiConfig":{"iconBackground":"#7B0099","iconClass":"fa-yahoo","iconFontColor":"white","buttonImage":"","buttonClass":"fa-yahoo","buttonDisplayName":"Yahoo","buttonCustomStyle":"background-color: #7B0099; border-color: #7B0099; color:white;","buttonCustomStyleHover":"background-color: #7B0099; border-color: #7B0099; color:white;"},"propertyMap":[{"source":"sub","target":"id"},{"source":"name","target":"displayName"},{"source":"given_name","target":"givenName"},{"source":"family_name","target":"familyName"},{"source":"email","target":"email"},{"source":"email","target":"username"},{"source":"locale","target":"locale"}],"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Yahoo","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"sub":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"name":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"given_name":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"family_name":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true},"locale":{"description":"Locale Code","title":"Locale Code","viewable":true,"type":"string","searchable":true}},"order":["sub","name","given_name","family_name","email","locale"],"required":[]},"authorizationEndpoint":"https://api.login.yahoo.com/oauth2/request_auth","tokenEndpoint":"https://api.login.yahoo.com/oauth2/get_token","wellKnownEndpoint":"https://login.yahoo.com/.well-known/openid-configuration","clientId":"","clientSecret":"","authenticationIdKey":"sub","redirectUri":"https://localhost:8443/oauthReturn/","basicAuth":false,"configClass":"org.forgerock.oauth.clients.oidc.OpenIDConnectClientConfiguration"},{"provider":"salesforce","authorizationEndpoint":"https://login.salesforce.com/services/oauth2/authorize","tokenEndpoint":"https://login.salesforce.com/services/oauth2/token","userInfoEndpoint":"https://login.salesforce.com/services/oauth2/userinfo","clientId":"","clientSecret":"","scope":["id","api","web"],"uiConfig":{"iconBackground":"#21a0df","iconClass":"fa-cloud","iconFontColor":"white","buttonImage":"","buttonClass":"fa-cloud","buttonDisplayName":"Salesforce","buttonCustomStyle":"background-color: #21a0df; border-color: #21a0df; color: white;","buttonCustomStyleHover":"background-color: #21a0df; border-color: #21a0df; color: white;"},"authenticationIdKey":"user_id","redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.oauth2.OAuth2ClientConfiguration","basicAuth":false,"schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Salesforce","title":"Salesforce","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"user_id":{"description":"ID","title":"ID","viewable":true,"type":"string","searchable":true},"name":{"description":"Name","title":"Name","viewable":true,"type":"string","searchable":true},"given_name":{"description":"First Name","title":"First Name","viewable":true,"type":"string","searchable":true},"family_name":{"description":"Last Name","title":"Last Name","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true},"zoneInfo":{"description":"Locale Code","title":"Locale Code","viewable":true,"type":"string","searchable":true}},"order":["user_id","name","given_name","family_name","email","zoneInfo"],"required":[]},"propertyMap":[{"source":"user_id","target":"id"},{"source":"name","target":"displayName"},{"source":"given_name","target":"givenName"},{"source":"family_name","target":"familyName"},{"source":"email","target":"email"},{"source":"email","target":"username"},{"source":"zoneInfo","target":"locale"}]},{"provider":"twitter","requestTokenEndpoint":"https://api.twitter.com/oauth/request_token","authorizationEndpoint":"https://api.twitter.com/oauth/authenticate","tokenEndpoint":"https://api.twitter.com/oauth/access_token","userInfoEndpoint":"https://api.twitter.com/1.1/account/verify_credentials.json","clientId":"","clientSecret":"","uiConfig":{"iconBackground":"#00b6e9","iconClass":"fa-twitter","iconFontColor":"white","buttonImage":"","buttonClass":"fa-twitter","buttonDisplayName":"Twitter","buttonCustomStyle":"background-color: #00b6e9; border-color: #00b6e9; color: #fff;","buttonCustomStyleHover":"background-color: #01abda; border-color: #01abda; color: #fff;"},"authenticationIdKey":"id_str","redirectUri":"https://localhost:8443/oauthReturn/","configClass":"org.forgerock.oauth.clients.twitter.TwitterClientConfiguration","schema":{"id":"urn:jsonschema:org:forgerock:openidm:identityProviders:api:Twitter","title":"Twitter","viewable":true,"type":"object","$schema":"http://json-schema.org/draft-03/schema","properties":{"id_str":{"description":"ID","title":"Id","viewable":true,"type":"string","searchable":true},"name":{"description":"Full Name","title":"Full Name","viewable":true,"type":"string","searchable":true},"screen_name":{"description":"User Id","title":"User Id","viewable":true,"type":"string","searchable":true},"email":{"description":"Email Address","title":"Email Address","viewable":true,"type":"string","searchable":true}},"order":["id_str","name","screen_name","email"],"required":[]},"propertyMap":[{"source":"id_str","target":"id"},{"source":"name","target":"displayName"},{"source":"email","target":"email"},{"source":"screen_name","target":"username"}]}],"_id":"identityProviders"}} 50 1 org.forgerock.openidm.router 1 {"_rev":"1","service__pid":"org.forgerock.openidm.router","_id":"org.forgerock.openidm.router","jsonconfig":{"filters":[{"condition":{"type":"text/javascript","source":"context.caller.external === true || context.current.name === 'selfservice'"},"onRequest":{"type":"text/javascript","file":"router-authz.js"}},{"pattern":"^(managed|system|repo/internal)($|(/.+))","onRequest":{"type":"text/javascript","file":"policyFilter.js"},"methods":["create","update"]},{"pattern":"repo/internal/user.*","onRequest":{"type":"text/javascript","source":"request.content.password = require('crypto').hash(request.content.password);"},"methods":["create","update"]}],"_id":"router"}} 51 1 org.forgerock.openidm.workflow 1 {"_rev":"1","service__pid":"org.forgerock.openidm.workflow","_id":"org.forgerock.openidm.workflow","jsonconfig":{"useDataSource":"default","workflowDirectory":"&{launcher.project.location}/workflow","_id":"workflow"}} 52 1 org.forgerock.openidm.ui.context.caa966f5-5cd8-4582-bf77-3a4e3a1c5f8e 0 {"config__factory-pid":"oauth","felix__fileinstall__filename":"file:/opt/openidm/conf/ui.context-oauth.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.context.caa966f5-5cd8-4582-bf77-3a4e3a1c5f8e","_id":"org.forgerock.openidm.ui.context.caa966f5-5cd8-4582-bf77-3a4e3a1c5f8e","jsonconfig":{"enabled":true,"urlContextRoot":"/oauthReturn","defaultDir":"&{launcher.install.location}/ui/oauth/default","extensionDir":"&{launcher.install.location}/ui/oauth/extension","_id":"ui.context/oauth"},"service__factoryPid":"org.forgerock.openidm.ui.context"} 53 1 org.forgerock.openidm.emailTemplate.7e21bcdc-e079-4d20-b004-27de218c8e19 0 {"config__factory-pid":"resetPassword","felix__fileinstall__filename":"file:/opt/openidm/conf/emailTemplate-resetPassword.json","_rev":"0","service__pid":"org.forgerock.openidm.emailTemplate.7e21bcdc-e079-4d20-b004-27de218c8e19","_id":"org.forgerock.openidm.emailTemplate.7e21bcdc-e079-4d20-b004-27de218c8e19","jsonconfig":{"enabled":true,"from":"","subject":{"en":"Your password has been reset"},"message":{"en":"<html><body><p>Your new password is: {{password}}</p></body></html>"},"defaultLocale":"en","passwordRules":[{"rule":"UPPERCASE","minimum":1},{"rule":"LOWERCASE","minimum":1},{"rule":"INTEGERS","minimum":1},{"rule":"SPECIAL","minimum":1}],"passwordLength":16,"_id":"emailTemplate/resetPassword"},"service__factoryPid":"org.forgerock.openidm.emailTemplate"} 54 1 org.forgerock.openidm.script 1 {"_rev":"1","service__pid":"org.forgerock.openidm.script","_id":"org.forgerock.openidm.script","jsonconfig":{"properties":{},"ECMAScript":{"#javascript.debug":"transport=socket,suspend=y,address=9888,trace=true","javascript.recompile.minimumInterval":"60000"},"Groovy":{"#groovy.warnings":"likely errors #othere values [none,likely,possible,paranoia]","#groovy.source.encoding":"utf-8 #default US-ASCII","groovy.source.encoding":"UTF-8","groovy.target.directory":"&{launcher.install.location}/classes","#groovy.target.bytecode":"1.5","groovy.classpath":"&{launcher.install.location}/lib/jose4j-0.5.5.jar:&{launcher.install.location}/lib/notifications-java-client-3.8.0-RELEASE.jar:&{launcher.install.location}/lib/*","#groovy.output.verbose":"false","#groovy.output.debug":"false","#groovy.errors.tolerance":"10","#groovy.script.extension":".groovy","#groovy.script.base":"#any class extends groovy.lang.Script","groovy.recompile":"true","groovy.recompile.minimumInterval":"60000","#groovy.target.indy":"true","#groovy.disabled.global.ast.transformations":""},"sources":{"default":{"directory":"&{launcher.install.location}/bin/defaults/script"},"install":{"directory":"&{launcher.install.location}"},"project":{"directory":"&{launcher.project.location}"},"project-script":{"directory":"&{launcher.project.location}/script"}},"_id":"script"}} 55 1 org.forgerock.openidm.audit 1 {"_rev":"1","service__pid":"org.forgerock.openidm.audit","_id":"org.forgerock.openidm.audit","jsonconfig":{"auditServiceConfig":{"handlerForQueries":"json","availableAuditEventHandlers":["org.forgerock.audit.handlers.csv.CsvAuditEventHandler","org.forgerock.audit.handlers.elasticsearch.ElasticsearchAuditEventHandler","org.forgerock.audit.handlers.jms.JmsAuditEventHandler","org.forgerock.audit.handlers.json.JsonAuditEventHandler","org.forgerock.openidm.audit.impl.RepositoryAuditEventHandler","org.forgerock.openidm.audit.impl.RouterAuditEventHandler","org.forgerock.audit.handlers.splunk.SplunkAuditEventHandler","org.forgerock.audit.handlers.syslog.SyslogAuditEventHandler"],"filterPolicies":{"value":{"excludeIf":["/access/http/request/headers/Authorization","/access/http/request/headers/X-OpenIDM-Password","/access/http/request/cookies/session-jwt","/access/http/response/headers/Authorization","/access/http/response/headers/X-OpenIDM-Password"],"includeIf":[]}}},"eventHandlers":[{"class":"org.forgerock.audit.handlers.json.JsonAuditEventHandler","config":{"name":"json","logDirectory":"&{launcher.working.location}/audit","buffering":{"maxSize":100000,"writeInterval":"100 millis"},"topics":["access","activity","recon","sync","authentication","config"]}},{"class":"org.forgerock.openidm.audit.impl.RepositoryAuditEventHandler","config":{"name":"repo","enabled":false,"topics":["access","activity","recon","sync","authentication","config"]}}],"eventTopics":{"config":{"filter":{"actions":["create","update","delete","patch","action"]}},"activity":{"filter":{"actions":["create","update","delete","patch","action"]},"watchedFields":[],"passwordFields":["password"]}},"exceptionFormatter":{"type":"text/javascript","file":"bin/defaults/script/audit/stacktraceFormatter.js"},"_id":"audit"}} 56 1 org.forgerock.openidm.endpoint.9a44a90e-e91f-4d4e-962c-81c6669fee8d 0 {"config__factory-pid":"notify","felix__fileinstall__filename":"file:/opt/openidm/conf/endpoint-notify.json","_rev":"0","service__pid":"org.forgerock.openidm.endpoint.9a44a90e-e91f-4d4e-962c-81c6669fee8d","_id":"org.forgerock.openidm.endpoint.9a44a90e-e91f-4d4e-962c-81c6669fee8d","jsonconfig":{"type":"groovy","file":"notify.groovy","context":"endpoint/notify/*","_id":"endpoint/notify"},"service__factoryPid":"org.forgerock.openidm.endpoint"} 7 1 org.forgerock.openidm.endpoint.factory 8 {"factory__pid":"org.forgerock.openidm.endpoint","factory__pidList":["org.forgerock.openidm.endpoint.91afa283-a85f-45f1-b6dc-ce8897be4a5d","org.forgerock.openidm.endpoint.52e65bdd-5982-477d-9a8c-af6077b004d2","org.forgerock.openidm.endpoint.d19fb0e2-0e8f-469d-97f8-715e21fae1c8","org.forgerock.openidm.endpoint.a8b5220d-3b35-4f9c-a7df-115bac574a4a","org.forgerock.openidm.endpoint.601e78e1-11b1-46a5-b356-900c4d47940f","org.forgerock.openidm.endpoint.5a6f7be3-e04d-4a18-928f-e0532b2d5d76","org.forgerock.openidm.endpoint.9a44a90e-e91f-4d4e-962c-81c6669fee8d","org.forgerock.openidm.endpoint.a8bb1458-4286-4f0b-8101-600f2006b3ba","org.forgerock.openidm.endpoint.2bc5fef9-5b31-4d03-998f-f0eeafae3871","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"8","_id":"org.forgerock.openidm.endpoint.factory","jsonconfig":null} 57 1 org.forgerock.openidm.policy 1 {"_rev":"1","service__pid":"org.forgerock.openidm.policy","_id":"org.forgerock.openidm.policy","jsonconfig":{"type":"text/javascript","file":"policy.js","additionalFiles":[],"resources":[{"resource":"selfservice/registration","calculatedProperties":{"type":"text/javascript","source":"require('selfServicePolicies').getRegistrationProperties()"}},{"resource":"selfservice/reset","calculatedProperties":{"type":"text/javascript","source":"require('selfServicePolicies').getResetProperties()"}},{"resource":"repo/internal/user/*","properties":[{"name":"_id","policies":[{"policyId":"cannot-contain-characters","params":{"forbiddenChars":["/"]}}]},{"name":"password","policies":[{"policyId":"required"},{"policyId":"not-empty"},{"policyId":"at-least-X-capitals","params":{"numCaps":1}},{"policyId":"at-least-X-numbers","params":{"numNums":1}},{"policyId":"minimum-length","params":{"minLength":8}}]}]}],"_id":"policy"}} 58 1 org.forgerock.openidm.ui.context.c2a77b43-8206-4005-a134-c526a2e95069 0 {"config__factory-pid":"admin","felix__fileinstall__filename":"file:/opt/openidm/conf/ui.context-admin.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.context.c2a77b43-8206-4005-a134-c526a2e95069","_id":"org.forgerock.openidm.ui.context.c2a77b43-8206-4005-a134-c526a2e95069","jsonconfig":{"enabled":true,"urlContextRoot":"/admin","defaultDir":"&{launcher.install.location}/ui/admin/default","extensionDir":"&{launcher.install.location}/ui/admin/extension","responseHeaders":{"X-Frame-Options":"DENY"},"_id":"ui.context/admin"},"service__factoryPid":"org.forgerock.openidm.ui.context"} 59 1 org.forgerock.openidm.schedule.832d9581-d9ae-4736-aa63-ad87e830d32a 0 {"config__factory-pid":"sunset-task","felix__fileinstall__filename":"file:/opt/openidm/conf/schedule-sunset-task.json","_rev":"0","service__pid":"org.forgerock.openidm.schedule.832d9581-d9ae-4736-aa63-ad87e830d32a","_id":"org.forgerock.openidm.schedule.832d9581-d9ae-4736-aa63-ad87e830d32a","jsonconfig":{"enabled":true,"type":"cron","schedule":"0 0 * * * ?","persisted":true,"concurrentExecution":false,"invokeService":"taskscanner","invokeContext":{"waitForCompletion":false,"numberOfThreads":5,"scan":{"_queryFilter":"((/sunset/date lt \\"${Time.now}\\") AND !(/sunset/task-completed pr))","object":"managed/user","taskState":{"started":"/sunset/task-started","completed":"/sunset/task-completed"},"recovery":{"timeout":"10m"}},"task":{"script":{"type":"text/javascript","file":"script/sunset.js"}}},"_id":"schedule/sunset-task"},"service__factoryPid":"org.forgerock.openidm.schedule"} 60 1 org.forgerock.openidm.ui.8a2fd12d-5c33-4d1e-86c6-54b75f73e15d 0 {"config__factory-pid":"dashboard","felix__fileinstall__filename":"file:/opt/openidm/conf/ui-dashboard.json","_rev":"0","service__pid":"org.forgerock.openidm.ui.8a2fd12d-5c33-4d1e-86c6-54b75f73e15d","_id":"org.forgerock.openidm.ui.8a2fd12d-5c33-4d1e-86c6-54b75f73e15d","jsonconfig":{"dashboard":{"widgets":[{"type":"workflow"},{"type":"quickStart","size":"large","cards":[{"name":"dashboard.quickStart.viewProfile","icon":"fa-user","href":"#profile/details"},{"name":"dashboard.quickStart.changePassword","icon":"fa-lock","href":"#signinandsecurity/password/"}]}]},"adminDashboards":[{"name":"Administration","isDefault":true,"widgets":[{"type":"quickStart","size":"large","cards":[{"name":"Add Connector","icon":"fa-database","href":"#connectors/add/"},{"name":"Create Mapping","icon":"fa-map-marker","href":"#mapping/add/"},{"name":"Manage Roles","icon":"fa-check-square-o","href":"#resource/managed/role/list/"},{"name":"Add Device","icon":"fa-tablet","href":"#managed/add/"},{"name":"Configure Registration","icon":"fa-gear","href":"#selfservice/userregistration/"},{"name":"Configure Password Reset","icon":"fa-gear","href":"#selfservice/passwordreset/"},{"name":"Manage Users","icon":"fa-user","href":"#resource/managed/user/list/"},{"name":"Configure System Preferences","icon":"fa-user","href":"#settings/"}]},{"type":"resourceList","size":"large"}]},{"name":"System Monitoring","isDefault":false,"widgets":[{"type":"audit","size":"large","minRange":"#b0d4cd","maxRange":"#24423c","legendRange":{"week":[10,30,90,270,810],"month":[500,2500,5000],"year":[10000,40000,100000,250000]}},{"type":"systemHealthFull","size":"large"},{"type":"lastRecon","size":"large","barchart":"false"}]}],"_id":"ui/dashboard"},"service__factoryPid":"org.forgerock.openidm.ui"} 61 1 org.forgerock.openidm.provisioner.openicf.56d7f7b9-a11a-4e62-8fc7-defa40030eea 0 {"config__factory-pid":"CsvTacticalUsers","felix__fileinstall__filename":"file:/opt/openidm/conf/provisioner.openicf-CsvTacticalUsers.json","_rev":"0","service__pid":"org.forgerock.openidm.provisioner.openicf.56d7f7b9-a11a-4e62-8fc7-defa40030eea","_id":"org.forgerock.openidm.provisioner.openicf.56d7f7b9-a11a-4e62-8fc7-defa40030eea","jsonconfig":{"connectorRef":{"systemType":"provisioner.openicf","bundleName":"org.forgerock.openicf.connectors.csvfile-connector","connectorName":"org.forgerock.openicf.csvfile.CSVFileConnector","displayName":"CSV File Connector","bundleVersion":"1.5.2.0"},"poolConfigOption":{"maxObjects":10,"maxIdle":10,"maxWait":150000,"minEvictableIdleTimeMillis":120000,"minIdle":1},"resultsHandlerConfig":{"enableNormalizingResultsHandler":true,"enableFilteredResultsHandler":true,"enableCaseInsensitiveFilter":false,"enableAttributesToGetSearchResultsHandler":true},"operationTimeout":{"CREATE":-1,"UPDATE":-1,"DELETE":-1,"TEST":-1,"SCRIPT_ON_CONNECTOR":-1,"SCRIPT_ON_RESOURCE":-1,"GET":-1,"RESOLVEUSERNAME":-1,"AUTHENTICATE":-1,"SEARCH":-1,"VALIDATE":-1,"SYNC":-1,"SCHEMA":-1},"configurationProperties":{"headerPassword":"<PASSWORD>","csvFile":"/opt/data/tactical-users.csv","newlineString":"\\n","headerUid":"id","quoteCharacter":"\\"","fieldDelimiter":",","syncFileRetentionCount":"3","readSchema":false},"name":"CsvTacticalUsers","enabled":true,"objectTypes":{"RegisteredUser":{"$schema":"http://json-schema.org/draft-03/schema","type":"object","id":"__REGISTERED_USER__","nativeType":"__ACCOUNT__","properties":{"__UID__":{"type":"string","nativeName":"__UID__","nativeType":"string","flags":[],"required":true,"runAsUser":false},"surname":{"type":"string","nativeName":"surname","nativeType":"string","required":true},"forename":{"type":"string","nativeName":"forename","nativeType":"string","required":true},"email":{"type":"string","nativeName":"email","nativeType":"string","required":true},"password":{"type":"string","nativeName":"password","nativeType":"string","required":true},"pin":{"type":"string","nativeName":"pin","nativeType":"string","required":false},"enabled":{"type":"string","nativeName":"enabled","nativeType":"string","required":false},"roles":{"type":"string","nativeName":"roles","nativeType":"string","required":false}}}},"_id":"provisioner.openicf/CsvTacticalUsers"},"service__factoryPid":"org.forgerock.openidm.provisioner.openicf"} 62 1 org.forgerock.openidm.provisioner.openicf.factory 1 {"factory__pid":"org.forgerock.openidm.provisioner.openicf","factory__pidList":["org.forgerock.openidm.provisioner.openicf.4ee5df6e-0237-4008-aa0f-77784ebe8795","org.forgerock.openidm.provisioner.openicf.56d7f7b9-a11a-4e62-8fc7-defa40030eea","_openidm_orig_array","_openidm_orig_array_type=java.lang.String"],"_rev":"1","_id":"org.forgerock.openidm.provisioner.openicf.factory","jsonconfig":null} 63 1 org.forgerock.openidm.provisioner.openicf.4ee5df6e-0237-4008-aa0f-77784ebe8795 1 {"config__factory-pid":"ldap","_rev":"1","service__pid":"org.forgerock.openidm.provisioner.openicf.4ee5df6e-0237-4008-aa0f-77784ebe8795","_id":"org.forgerock.openidm.provisioner.openicf.4ee5df6e-0237-4008-aa0f-77784ebe8795","jsonconfig":{"name":"ldap","connectorRef":{"bundleName":"org.forgerock.openicf.connectors.ldap-connector","bundleVersion":"[1.4.0.0,1.5.0.0)","connectorName":"org.identityconnectors.ldap.LdapConnector"},"configurationProperties":{"host":"fr-am","port":"1389","ssl":false,"principal":"cn=Directory Manager","credentials":{"$crypto":{"type":"x-simple-encryption","value":{"cipher":"AES/CBC/PKCS5Padding","salt":"yWSi2VY3MQSdTZ2k40QPjQ==","data":"k/OonmWncUmkkpP9MM9fFg==","iv":"JgxcGJ5UalGdxW4ovp1DQQ==","key":"openidm-sym-default","mac":"HFPjA/xN/HPGweom5XBXYA=="}}},"accountSearchFilter":null,"accountSynchronizationFilter":null,"groupSearchFilter":null,"groupSynchronizationFilter":null,"synchronizePasswords":false,"removeLogEntryObjectClassFromFilter":true,"modifiersNamesToFilterOut":[],"passwordDecryptionKey":null,"changeLogBlockSize":100,"attributesToSynchronize":[],"changeNumberAttribute":"changeNumber","passwordDecryptionInitializationVector":null,"filterWithOrInsteadOfAnd":false,"objectClassesToSynchronize":["inetOrgPerson","inetuser","inetUser"],"vlvSortAttribute":"uid","passwordAttribute":"<PASSWORD>","useBlocks":false,"maintainPosixGroupMembership":false,"failover":[],"readSchema":true,"accountObjectClasses":["top","person","organizationalPerson","inetOrgPerson","inetUser"],"accountUserNameAttributes":["uid"],"groupMemberAttribute":"uniqueMember","usePagedResultControl":true,"blockSize":100,"uidAttribute":"entryUUID","maintainLdapGroupMembership":false,"respectResourcePasswordPolicyChangeAfterReset":false,"passwordAttributeToSynchronize":"password","groupObjectClasses":["top","groupofuniquenames"],"baseContexts":["dc=reform,dc=hmcts,dc=net"],"baseContextsToSynchronize":["dc=reform,dc=hmcts,dc=net"]},"resultsHandlerConfig":{"enableNormalizingResultsHandler":true,"enableFilteredResultsHandler":false,"enableCaseInsensitiveFilter":false,"enableAttributesToGetSearchResultsHandler":true},"poolConfigOption":{"maxObjects":10,"maxIdle":10,"maxWait":150000,"minEvictableIdleTimeMillis":120000,"minIdle":1},"operationTimeout":{"CREATE":-1,"VALIDATE":-1,"TEST":-1,"SCRIPT_ON_CONNECTOR":-1,"SCHEMA":-1,"DELETE":-1,"UPDATE":-1,"SYNC":-1,"AUTHENTICATE":-1,"GET":-1,"SCRIPT_ON_RESOURCE":-1,"SEARCH":-1},"syncFailureHandler":{"maxRetries":5,"postRetryAction":"logged-ignore"},"objectTypes":{"group":{"$schema":"http://json-schema.org/draft-03/schema","id":"__GROUP__","type":"object","nativeType":"__GROUP__","properties":{"seeAlso":{"type":"array","nativeType":"string","nativeName":"seeAlso","required":false,"items":{"type":"string","nativeType":"string"}},"description":{"type":"array","nativeType":"string","nativeName":"description","required":false,"items":{"type":"string","nativeType":"string"}},"uniqueMember":{"type":"array","nativeType":"string","nativeName":"uniqueMember","required":false,"items":{"type":"string","nativeType":"string"}},"dn":{"type":"string","nativeType":"string","nativeName":"__NAME__","required":true},"o":{"type":"array","nativeType":"string","nativeName":"o","required":false,"items":{"type":"string","nativeType":"string"}},"ou":{"type":"array","nativeType":"string","nativeName":"ou","required":false,"items":{"type":"string","nativeType":"string"}},"businessCategory":{"type":"array","nativeType":"string","nativeName":"businessCategory","required":false,"items":{"type":"string","nativeType":"string"}},"owner":{"type":"array","nativeType":"string","nativeName":"owner","required":false,"items":{"type":"string","nativeType":"string"}},"cn":{"type":"array","nativeType":"string","nativeName":"cn","required":true,"items":{"type":"string","nativeType":"string"}},"id":{"type":"string","nativeType":"string","nativeName":"id","required":false}}},"account":{"$schema":"http://json-schema.org/draft-03/schema","id":"__ACCOUNT__","type":"object","nativeType":"__ACCOUNT__","properties":{"cn":{"type":"string","nativeType":"string","nativeName":"cn","required":false},"employeeType":{"type":"string","nativeType":"string","nativeName":"employeeType","required":false},"description":{"type":"string","nativeType":"string","nativeName":"description","required":false},"givenName":{"type":"string","nativeType":"string","nativeName":"givenName","required":false},"mail":{"type":"string","nativeType":"string","nativeName":"mail","required":false},"telephoneNumber":{"type":"string","nativeType":"string","nativeName":"telephoneNumber","required":false},"sn":{"type":"string","nativeType":"string","nativeName":"sn","required":false},"uid":{"type":"string","nativeType":"string","nativeName":"uid","required":false},"dn":{"type":"string","nativeType":"string","nativeName":"__NAME__","required":true},"userPassword":{"type":"string","nativeType":"string","nativeName":"userPassword","required":false,"flags":["NOT_READABLE","NOT_RETURNED_BY_DEFAULT"],"runAsUser":true},"ldapGroups":{"type":"array","nativeType":"string","nativeName":"ldapGroups","required":false,"items":{"type":"string","nativeType":"string"}},"disabled":{"type":"string","nativeType":"string","nativeName":"ds-pwp-account-disabled","required":false},"aliasList":{"type":"array","nativeType":"string","nativeName":"iplanet-am-user-alias-list","required":false},"objectClass":{"type":"array","nativeType":"string","nativeName":"objectClass","required":false},"kbaInfo":{"type":"array","nativeType":"string","nativeName":"kbaInfo","required":false},"pwdAccountLockedTime":{"type":"string","nativeType":"string","nativeName":"pwdAccountLockedTime","flags":["NOT_UPDATEABLE"],"required":false},"inetUserStatus":{"type":"string","nativeName":"inetUserStatus","nativeType":"string","required":false}}}},"operationOptions":{"DELETE":{"denied":false,"onDeny":"DO_NOTHING"},"UPDATE":{"denied":false,"onDeny":"DO_NOTHING"},"CREATE":{"denied":false,"onDeny":"DO_NOTHING"}},"enabled":true,"_id":"provisioner.openicf/ldap"},"service__factoryPid":"org.forgerock.openidm.provisioner.openicf"} \. -- -- Name: configobjects_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('configobjects_id_seq', 63, true); -- -- Data for Name: genericobjectproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY genericobjectproperties (genericobjects_id, propkey, proptype, propvalue) FROM stdin; 2 /reconId java.lang.String 6f084858-818f-47e1-b1f6-113b847ca1b1-20 2 /startTime java.lang.Long 1564405966876 1 /reconId java.lang.String 6f084858-818f-47e1-b1f6-113b847ca1b1-15 1 /startTime java.lang.Long 1564405966572 \. -- -- Data for Name: genericobjects; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY genericobjects (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; 2 12 17f22b36-820b-41bd-b4a4-67040421c417 2 {"reconId":"6f084858-818f-47e1-b1f6-113b847ca1b1-20","serializedState":"<KEY>,"startTime":1564405966876,"isComplete":true,"_rev":"2","_id":"17f22b36-820b-41bd-b4a4-67040421c417"} 1 12 fe89906d-e336-459d-ae35-e05b35d69064 2 {"reconId":"6f084858-818f-47e1-b1f6-113b847ca1b1-15","serializedState":"<KEY>,"startTime":1564405966572,"isComplete":true,"_rev":"2","_id":"fe89906d-e336-459d-ae35-e05b35d69064"} \. -- -- Name: genericobjects_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('genericobjects_id_seq', 2, true); -- -- Data for Name: internalrole; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY internalrole (objectid, rev, description) FROM stdin; openidm-authorized 0 Basic minimum user openidm-admin 0 Administrative access openidm-cert 0 Authenticated via certificate openidm-tasks-manager 0 Allowed to reassign workflow tasks openidm-reg 0 Anonymous access \. -- -- Data for Name: internaluser; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY internaluser (objectid, rev, pwd, roles) FROM stdin; openidm-admin 0 openidm-admin [ { "_ref" : "repo/internal/role/openidm-admin" }, { "_ref" : "repo/internal/role/openidm-authorized" } ] anonymous 0 anonymous [ { "_ref" : "repo/internal/role/openidm-reg" } ] \. -- -- Data for Name: links; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY links (objectid, rev, linktype, linkqualifier, firstid, secondid) FROM stdin; 6a14c344-f839-40b6-bcd2-2581f6d531fe 0 managedRole_systemLdapGroup0 default citizen 7553b356-9615-4b52-a1f8-2ad9478e676a e54c41cd-d333-498b-a2fe-6aaf84b9c887 0 managedRole_systemLdapGroup0 default solicitor 668a9a7d-dc10-4768-b07a-0a3da3cf0e89 ba5495c5-e845-48b8-9218-b8111071262e 0 managedRole_systemLdapGroup0 default letter-holder ab4a5b58-6bb4-443e-9cc5-5cc824bf23b6 0e377901-a7a4-4c41-a177-3f4a882301ef 0 managedRole_systemLdapGroup0 default IDAM_ADMIN_USER 9fc0d36f-9950-4301-80f0-17530db40799 7eeaaa81-c6fe-4542-a8b1-3c1d17ff36cf 0 managedRole_systemLdapGroup0 default IDAM_SUPER_USER 0f75f4e9-28e6-4dd7-9574-cb5f3d2feee6 412904a7-b948-4680-85f3-a91e191f278a 0 managedRole_systemLdapGroup0 default IDAM_SYSTEM_OWNER 398c5d8e-25e1-4aff-8223-99d4f7b3cc7e c641b69c-7447-4659-9e01-8dcd22d38532 0 managedUser_systemLdapAccount default cf9aba46-30d1-4102-ad78-3ff0ee84ac27 da500528-37a1-4f35-9427-c151e498dc28 2f744018-16f0-4b88-ab6e-5d904639e117 0 managedRole_systemLdapGroup0 default a116f566-b548-4b48-b95a-d2f758d6dc37 acc50d11-04d5-41c0-a137-29b1183474b2 74289d93-deb9-48c7-8ab7-49acc3966a80 0 managedRole_systemLdapGroup0 default 81cafa26-6d3d-4afc-a10c-d0b5df01ab6d 5c618142-e575-4ab5-8ac3-4539ce9bd112 1ccd3814-43ee-480e-80cb-8ca55b017399 0 managedRole_systemLdapGroup0 default 2cc3c15e-277e-4281-bfb4-5efd372dccbb b7e4d8e9-c6ed-4bc0-a95b-5cecca4a6770 dfbe5640-b67d-4a24-9d5d-271299b657c0 0 managedRole_systemLdapGroup0 default 6d5b60a4-2e96-459d-93a3-3642d019eabc 99963e82-df2f-4a60-ac90-047eab22c52a c6c46734-da13-47c5-9b5a-407c9c826ad7 0 managedRole_systemLdapGroup0 default 0086da2d-5cf4-46fd-a7d4-59018982ed88 3f15b895-48ac-4f3b-9409-e5bf8ef0b6ea 55ea5b7f-89be-45bd-a3e3-ae996e8d19a5 0 managedRole_systemLdapGroup0 default 0e30b8d1-534b-476e-bacb-025328800d21 8962956f-f738-42b4-b4dc-fff96423f07f 72c30da4-eb51-409e-acb1-c2e70e9986f7 0 managedRole_systemLdapGroup0 default 86a2595d-0daf-4f7c-974d-f54ecae57832 1d67350d-aaf4-4686-876d-7e08dc5c282e 357b45c1-16ac-460a-a556-0883bffe5813 0 managedRole_systemLdapGroup0 default ce646a01-8d62-42b9-9941-226620e1e3a1 0f3260a3-6ea8-4fea-99ac-f3af1e37e1bb db3ad477-96c5-45dd-b3c3-3f77add02174 0 managedRole_systemLdapGroup0 default d782a3c8-7140-4240-ab4c-43da97765b86 7d663a6d-01cf-4fdf-92b4-5ab262ff48ea d650bcc0-620a-4ae6-b7d7-5a9b2a58af8a 0 managedRole_systemLdapGroup0 default 72d23e7d-9ee9-4195-805f-11fb226eaad7 67db170c-3fde-4856-bce9-067bd52a0809 1817d72f-a41d-4fb7-b6ae-f602d1d3452e 0 managedRole_systemLdapGroup0 default c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae 5f7c111e-7fbf-4d27-834b-8111b0a807e1 7bc28a7f-f512-4990-9a8f-7bd6a25efb84 0 managedRole_systemLdapGroup0 default 0cd2d788-0859-4870-8e06-710112fafe82 5cd4cbd9-050c-46c9-969a-38f5f4255103 13fd66ca-4d0f-4524-ba2d-6c955d8b49a8 0 managedRole_systemLdapGroup0 default ba40315a-59d7-4b23-acdb-039282082d60 15180e0a-d311-40d1-b16d-ea3df6626a7e 1e87c0a0-5800-407d-9ab2-d99c9f56f2f0 0 managedRole_systemLdapGroup0 default a069a459-dd5f-442f-a09b-1c2d8555af94 2a1db682-480e-4a1b-8096-b48cfbc03509 \. -- -- Data for Name: managedobjectproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY managedobjectproperties (managedobjects_id, propkey, proptype, propvalue) FROM stdin; 2 /_id java.lang.String citizen 2 /name java.lang.String citizen 2 /description java.lang.String Citizen 2 /mapping java.lang.String managedUser_systemLdapAccount 2 /attributes/0/name java.lang.String ldapGroups 2 /attributes/0/value/0 java.lang.String cn=citizen,ou=groups,dc=reform,dc=hmcts,dc=net 2 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 2 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 2 /_rev java.lang.String 0 1 /_id java.lang.String citizen 1 /name java.lang.String citizen 1 /description java.lang.String Citizen 1 /_rev java.lang.String 1 4 /_id java.lang.String solicitor 4 /name java.lang.String solicitor 4 /description java.lang.String Solicitor 4 /mapping java.lang.String managedUser_systemLdapAccount 4 /attributes/0/name java.lang.String ldapGroups 4 /attributes/0/value/0 java.lang.String cn=solicitor,ou=groups,dc=reform,dc=hmcts,dc=net 4 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 4 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 4 /_rev java.lang.String 0 3 /_id java.lang.String solicitor 3 /name java.lang.String solicitor 3 /description java.lang.String Solicitor 3 /_rev java.lang.String 1 6 /_id java.lang.String letter-holder 6 /name java.lang.String letter-holder 6 /description java.lang.String Letter Holder 6 /mapping java.lang.String managedUser_systemLdapAccount 6 /attributes/0/name java.lang.String ldapGroups 6 /attributes/0/value/0 java.lang.String cn=letter-holder,ou=groups,dc=reform,dc=hmcts,dc=net 6 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 6 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 6 /_rev java.lang.String 0 5 /_id java.lang.String letter-holder 5 /name java.lang.String letter-holder 5 /description java.lang.String Letter Holder 5 /_rev java.lang.String 1 8 /_id java.lang.String IDAM_ADMIN_USER 8 /name java.lang.String IDAM_ADMIN_USER 8 /description java.lang.String IdAM Admin User 8 /mapping java.lang.String managedUser_systemLdapAccount 8 /attributes/0/name java.lang.String ldapGroups 8 /attributes/0/value/0 java.lang.String cn=IDAM_ADMIN_USER,ou=groups,dc=reform,dc=hmcts,dc=net 8 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 8 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 8 /_rev java.lang.String 0 10 /_id java.lang.String IDAM_SUPER_USER 10 /name java.lang.String IDAM_SUPER_USER 10 /description java.lang.String IdAM Super User 10 /mapping java.lang.String managedUser_systemLdapAccount 10 /attributes/0/name java.lang.String ldapGroups 10 /attributes/0/value/0 java.lang.String cn=IDAM_SUPER_USER,ou=groups,dc=reform,dc=hmcts,dc=net 10 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 10 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 10 /_rev java.lang.String 0 12 /_id java.lang.String IDAM_SYSTEM_OWNER 12 /name java.lang.String IDAM_SYSTEM_OWNER 12 /description java.lang.String IdAM System Owner 12 /mapping java.lang.String managedUser_systemLdapAccount 12 /attributes/0/name java.lang.String ldapGroups 12 /attributes/0/value/0 java.lang.String cn=IDAM_SYSTEM_OWNER,ou=groups,dc=reform,dc=hmcts,dc=net 12 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 12 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 12 /_rev java.lang.String 0 36 /_id java.lang.String ce646a01-8d62-42b9-9941-226620e1e3a1 9 /_id java.lang.String IDAM_SUPER_USER 9 /name java.lang.String IDAM_SUPER_USER 9 /description java.lang.String IdAM Super User 9 /assignableRoles/0 java.lang.String IDAM_ADMIN_USER 9 /_rev java.lang.String 2 7 /_id java.lang.String IDAM_ADMIN_USER 7 /name java.lang.String IDAM_ADMIN_USER 7 /description java.lang.String IdAM Admin User 7 /assignableRoles/0 java.lang.String citizen 7 /_rev java.lang.String 2 36 /name java.lang.String caseworker-sscs-judge 36 /description java.lang.String caseworker-sscs-judge 36 /mapping java.lang.String managedUser_systemLdapAccount 36 /attributes/0/name java.lang.String ldapGroups 15 /_id java.lang.String a116f566-b548-4b48-b95a-d2f758d6dc37 15 /name java.lang.String ccd-import 15 /description java.lang.String ccd-import 15 /mapping java.lang.String managedUser_systemLdapAccount 15 /attributes/0/name java.lang.String ldapGroups 15 /attributes/0/value/0 java.lang.String cn=ccd-import,ou=groups,dc=reform,dc=hmcts,dc=net 15 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 15 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 15 /_rev java.lang.String 0 36 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-judge,ou=groups,dc=reform,dc=hmcts,dc=net 36 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 14 /name java.lang.String ccd-import 14 /description java.lang.String ccd-import 14 /_id java.lang.String a116f566-b548-4b48-b95a-d2f758d6dc37 14 /_rev java.lang.String 1 33 /_id java.lang.String 86a2595d-0daf-4f7c-974d-f54ecae57832 33 /name java.lang.String caseworker-sscs-callagent 33 /description java.lang.String caseworker-sscs-callagent 33 /mapping java.lang.String managedUser_systemLdapAccount 33 /attributes/0/name java.lang.String ldapGroups 33 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-callagent,ou=groups,dc=reform,dc=hmcts,dc=net 33 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 33 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 33 /_rev java.lang.String 0 32 /name java.lang.String caseworker-sscs-callagent 18 /_id java.lang.String 81cafa26-6d3d-4afc-a10c-d0b5df01ab6d 18 /name java.lang.String caseworker-sscs 18 /description java.lang.String caseworker-sscs 18 /mapping java.lang.String managedUser_systemLdapAccount 18 /attributes/0/name java.lang.String ldapGroups 18 /attributes/0/value/0 java.lang.String cn=caseworker-sscs,ou=groups,dc=reform,dc=hmcts,dc=net 18 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 18 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 18 /_rev java.lang.String 0 17 /name java.lang.String caseworker-sscs 17 /description java.lang.String caseworker-sscs 17 /_id java.lang.String 81cafa26-6d3d-4afc-a10c-d0b5df01ab6d 17 /_rev java.lang.String 1 32 /description java.lang.String caseworker-sscs-callagent 32 /_id java.lang.String 86a2595d-0daf-4f7c-974d-f54ecae57832 32 /_rev java.lang.String 1 21 /_id java.lang.String 2cc3c15e-277e-4281-bfb4-5efd372dccbb 21 /name java.lang.String caseworker-sscs-systemupdate 21 /description java.lang.String caseworker-sscs-systemupdate 21 /mapping java.lang.String managedUser_systemLdapAccount 21 /attributes/0/name java.lang.String ldapGroups 21 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-systemupdate,ou=groups,dc=reform,dc=hmcts,dc=net 21 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 21 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 21 /_rev java.lang.String 0 20 /name java.lang.String caseworker-sscs-systemupdate 20 /description java.lang.String caseworker-sscs-systemupdate 20 /_id java.lang.String 2cc3c15e-277e-4281-bfb4-5efd372dccbb 20 /_rev java.lang.String 1 35 /name java.lang.String caseworker-sscs-judge 35 /description java.lang.String caseworker-sscs-judge 35 /_id java.lang.String ce646a01-8d62-42b9-9941-226620e1e3a1 35 /_rev java.lang.String 1 24 /_id java.lang.String 6d5b60a4-2e96-459d-93a3-3642d019eabc 24 /name java.lang.String caseworker-sscs-clerk 24 /description java.lang.String caseworker-sscs-clerk 24 /mapping java.lang.String managedUser_systemLdapAccount 24 /attributes/0/name java.lang.String ldapGroups 24 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-clerk,ou=groups,dc=reform,dc=hmcts,dc=net 24 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 24 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 24 /_rev java.lang.String 0 23 /name java.lang.String caseworker-sscs-clerk 23 /description java.lang.String caseworker-sscs-clerk 23 /_id java.lang.String 6d5b60a4-2e96-459d-93a3-3642d019eabc 23 /_rev java.lang.String 1 39 /_id java.lang.String d782a3c8-7140-4240-ab4c-43da97765b86 39 /name java.lang.String caseworker-sscs-dwpresponsewriter 39 /description java.lang.String caseworker-sscs-dwpresponsewriter 39 /mapping java.lang.String managedUser_systemLdapAccount 39 /attributes/0/name java.lang.String ldapGroups 39 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-dwpresponsewriter,ou=groups,dc=reform,dc=hmcts,dc=net 27 /_id java.lang.String 0086da2d-5cf4-46fd-a7d4-59018982ed88 27 /name java.lang.String caseworker 27 /description java.lang.String caseworker 27 /mapping java.lang.String managedUser_systemLdapAccount 27 /attributes/0/name java.lang.String ldapGroups 27 /attributes/0/value/0 java.lang.String cn=caseworker,ou=groups,dc=reform,dc=hmcts,dc=net 27 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 27 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 27 /_rev java.lang.String 0 26 /name java.lang.String caseworker 26 /description java.lang.String caseworker 26 /_id java.lang.String 0086da2d-5cf4-46fd-a7d4-59018982ed88 26 /_rev java.lang.String 1 36 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 36 /_rev java.lang.String 0 30 /_id java.lang.String 0e30b8d1-534b-476e-bacb-025328800d21 30 /name java.lang.String caseworker-sscs-anonymouscitizen 30 /description java.lang.String caseworker-sscs-anonymouscitizen 30 /mapping java.lang.String managedUser_systemLdapAccount 30 /attributes/0/name java.lang.String ldapGroups 30 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-anonymouscitizen,ou=groups,dc=reform,dc=hmcts,dc=net 30 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 30 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 30 /_rev java.lang.String 0 29 /name java.lang.String caseworker-sscs-anonymouscitizen 29 /description java.lang.String caseworker-sscs-anonymouscitizen 29 /_id java.lang.String 0e30b8d1-534b-476e-bacb-025328800d21 29 /_rev java.lang.String 1 39 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 39 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 39 /_rev java.lang.String 0 38 /name java.lang.String caseworker-sscs-dwpresponsewriter 38 /description java.lang.String caseworker-sscs-dwpresponsewriter 38 /_id java.lang.String d782a3c8-7140-4240-ab4c-43da97765b86 38 /_rev java.lang.String 1 42 /_id java.lang.String 72d23e7d-9ee9-4195-805f-11fb226eaad7 42 /name java.lang.String caseworker-sscs-registrar 42 /description java.lang.String caseworker-sscs-registrar 42 /mapping java.lang.String managedUser_systemLdapAccount 42 /attributes/0/name java.lang.String ldapGroups 42 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-registrar,ou=groups,dc=reform,dc=hmcts,dc=net 45 /_id java.lang.String c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae 45 /name java.lang.String caseworker-sscs-superuser 45 /description java.lang.String caseworker-sscs-superuser 45 /mapping java.lang.String managedUser_systemLdapAccount 45 /attributes/0/name java.lang.String ldapGroups 45 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-superuser,ou=groups,dc=reform,dc=hmcts,dc=net 45 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 45 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 45 /_rev java.lang.String 0 42 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 42 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 42 /_rev java.lang.String 0 41 /name java.lang.String caseworker-sscs-registrar 41 /description java.lang.String caseworker-sscs-registrar 41 /_id java.lang.String 72d23e7d-9ee9-4195-805f-11fb226eaad7 41 /_rev java.lang.String 1 44 /name java.lang.String caseworker-sscs-superuser 44 /description java.lang.String caseworker-sscs-superuser 44 /_id java.lang.String c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae 44 /_rev java.lang.String 1 48 /_id java.lang.String 0cd2d788-0859-4870-8e06-710112fafe82 48 /name java.lang.String caseworker-sscs-teamleader 48 /description java.lang.String caseworker-sscs-teamleader 48 /mapping java.lang.String managedUser_systemLdapAccount 48 /attributes/0/name java.lang.String ldapGroups 48 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-teamleader,ou=groups,dc=reform,dc=hmcts,dc=net 48 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 48 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 48 /_rev java.lang.String 0 51 /_id java.lang.String ba40315a-59d7-4b23-acdb-039282082d60 51 /name java.lang.String caseworker-sscs-panelmember 51 /description java.lang.String caseworker-sscs-panelmember 51 /mapping java.lang.String managedUser_systemLdapAccount 51 /attributes/0/name java.lang.String ldapGroups 51 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-panelmember,ou=groups,dc=reform,dc=hmcts,dc=net 51 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 51 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 51 /_rev java.lang.String 0 50 /name java.lang.String caseworker-sscs-panelmember 50 /description java.lang.String caseworker-sscs-panelmember 50 /_id java.lang.String ba40315a-59d7-4b23-acdb-039282082d60 50 /_rev java.lang.String 1 47 /name java.lang.String caseworker-sscs-teamleader 47 /description java.lang.String caseworker-sscs-teamleader 47 /_id java.lang.String 0cd2d788-0859-4870-8e06-710112fafe82 47 /_rev java.lang.String 1 54 /_id java.lang.String a069a459-dd5f-442f-a09b-1c2d8555af94 54 /name java.lang.String caseworker-sscs-bulkscan 54 /description java.lang.String caseworker-sscs-bulkscan 54 /mapping java.lang.String managedUser_systemLdapAccount 54 /attributes/0/name java.lang.String ldapGroups 54 /attributes/0/value/0 java.lang.String cn=caseworker-sscs-bulkscan,ou=groups,dc=reform,dc=hmcts,dc=net 54 /attributes/0/assignmentOperation java.lang.String mergeWithTarget 54 /attributes/0/unassignmentOperation java.lang.String removeFromTarget 54 /_rev java.lang.String 0 11 /_id java.lang.String IDAM_SYSTEM_OWNER 11 /_rev java.lang.String 16 11 /name java.lang.String IDAM_SYSTEM_OWNER 11 /description java.lang.String IdAM System Owner 11 /assignableRoles/0 java.lang.String IDAM_SUPER_USER 11 /assignableRoles/1 java.lang.String a116f566-b548-4b48-b95a-d2f758d6dc37 11 /assignableRoles/2 java.lang.String 81cafa26-6d3d-4afc-a10c-d0b5df01ab6d 11 /assignableRoles/3 java.lang.String 2cc3c15e-277e-4281-bfb4-5efd372dccbb 11 /assignableRoles/4 java.lang.String 6d5b60a4-2e96-459d-93a3-3642d019eabc 11 /assignableRoles/5 java.lang.String 0086da2d-5cf4-46fd-a7d4-59018982ed88 11 /assignableRoles/6 java.lang.String 0e30b8d1-534b-476e-bacb-025328800d21 11 /assignableRoles/7 java.lang.String 86a2595d-0daf-4f7c-974d-f54ecae57832 11 /assignableRoles/8 java.lang.String ce646a01-8d62-42b9-9941-226620e1e3a1 11 /assignableRoles/9 java.lang.String d782a3c8-7140-4240-ab4c-43da97765b86 11 /assignableRoles/10 java.lang.String 72d23e7d-9ee9-4195-805f-11fb226eaad7 11 /assignableRoles/11 java.lang.String c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae 11 /assignableRoles/12 java.lang.String 0cd2d788-0859-4870-8e06-710112fafe82 11 /assignableRoles/13 java.lang.String ba40315a-59d7-4b23-acdb-039282082d60 11 /assignableRoles/14 java.lang.String a069a459-dd5f-442f-a09b-1c2d8555af94 53 /name java.lang.String caseworker-sscs-bulkscan 53 /description java.lang.String caseworker-sscs-bulkscan 53 /_id java.lang.String a069a459-dd5f-442f-a09b-1c2d8555af94 53 /_rev java.lang.String 1 \. -- -- Data for Name: managedobjects; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY managedobjects (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; 2 9 citizen 0 {"_id":"citizen","name":"citizen","description":"Citizen","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=citizen,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 1 8 citizen 1 {"_id":"citizen","name":"citizen","description":"Citizen","assignableRoles":[],"conflictingRoles":[],"_rev":"1"} 4 9 solicitor 0 {"_id":"solicitor","name":"solicitor","description":"Solicitor","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=solicitor,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 3 8 solicitor 1 {"_id":"solicitor","name":"solicitor","description":"Solicitor","assignableRoles":[],"conflictingRoles":[],"_rev":"1"} 6 9 letter-holder 0 {"_id":"letter-holder","name":"letter-holder","description":"Letter Holder","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=letter-holder,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 5 8 letter-holder 1 {"_id":"letter-holder","name":"letter-holder","description":"Letter Holder","assignableRoles":[],"conflictingRoles":[],"_rev":"1"} 8 9 IDAM_ADMIN_USER 0 {"_id":"IDAM_ADMIN_USER","name":"IDAM_ADMIN_USER","description":"IdAM Admin User","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=IDAM_ADMIN_USER,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 10 9 IDAM_SUPER_USER 0 {"_id":"IDAM_SUPER_USER","name":"IDAM_SUPER_USER","description":"IdAM Super User","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=IDAM_SUPER_USER,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 12 9 IDAM_SYSTEM_OWNER 0 {"_id":"IDAM_SYSTEM_OWNER","name":"IDAM_SYSTEM_OWNER","description":"IdAM System Owner","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=IDAM_SYSTEM_OWNER,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 9 8 IDAM_SUPER_USER 2 {"_id":"IDAM_SUPER_USER","name":"IDAM_SUPER_USER","description":"IdAM Super User","assignableRoles":["IDAM_ADMIN_USER"],"conflictingRoles":[],"_rev":"2"} 7 8 IDAM_ADMIN_USER 2 {"_id":"IDAM_ADMIN_USER","name":"IDAM_ADMIN_USER","description":"IdAM Admin User","assignableRoles":["citizen"],"conflictingRoles":[],"_rev":"2"} 13 11 cf9aba46-30d1-4102-ad78-3ff0ee84ac27 3 {"password":{"$crypto":{"type":"x-simple-encryption","value":{"cipher":"AES/CBC/PKCS5Padding","salt":"QgF+0uTNolqb2c3hIqmxhA==","data":"LPfMEvFVuuSEw1gtLxfarA==","iv":"GsvabMP8zgIoaSoenqdtOw==","key":"openidm-sym-default","mac":"vLanaXoQOkMMRf/x+aKz+A=="}}},"mail":"<EMAIL>","sn":"Owner","givenName":"System","userName":"<EMAIL>","accountStatus":"active","lastChanged":{"date":"2019-04-08T12:46:41.070Z"},"effectiveRoles":[{"_ref":"managed/role/IDAM_SYSTEM_OWNER"}],"effectiveAssignments":[{"_id":"IDAM_SYSTEM_OWNER","name":"IDAM_SYSTEM_OWNER","description":"IdAM System Owner","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=IDAM_SYSTEM_OWNER,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"}],"_id":"cf9aba46-30d1-4102-ad78-3ff0ee84ac27","_rev":"3","lastSync":{"managedUser_systemLdapAccount":{"effectiveAssignments":[{"_id":"IDAM_SYSTEM_OWNER","name":"IDAM_SYSTEM_OWNER","description":"IdAM System Owner","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=IDAM_SYSTEM_OWNER,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"}],"timestamp":"2019-04-08T12:46:40.981Z"}}} 15 9 a116f566-b548-4b48-b95a-d2f758d6dc37 0 {"_id":"a116f566-b548-4b48-b95a-d2f758d6dc37","name":"ccd-import","description":"ccd-import","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=ccd-import,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 14 8 a116f566-b548-4b48-b95a-d2f758d6dc37 1 {"name":"ccd-import","description":"ccd-import","assignableRoles":[],"conflictingRoles":[],"_id":"a116f566-b548-4b48-b95a-d2f758d6dc37","_rev":"1"} 18 9 81cafa26-6d3d-4afc-a10c-d0b5df01ab6d 0 {"_id":"81cafa26-6d3d-4afc-a10c-d0b5df01ab6d","name":"caseworker-sscs","description":"caseworker-sscs","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 17 8 81cafa26-6d3d-4afc-a10c-d0b5df01ab6d 1 {"name":"caseworker-sscs","description":"caseworker-sscs","assignableRoles":[],"conflictingRoles":[],"_id":"81cafa26-6d3d-4afc-a10c-d0b5df01ab6d","_rev":"1"} 21 9 2cc3c15e-277e-4281-bfb4-5efd372dccbb 0 {"_id":"2cc3c15e-277e-4281-bfb4-5efd372dccbb","name":"caseworker-sscs-systemupdate","description":"caseworker-sscs-systemupdate","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-systemupdate,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 20 8 2cc3c15e-277e-4281-bfb4-5efd372dccbb 1 {"name":"caseworker-sscs-systemupdate","description":"caseworker-sscs-systemupdate","assignableRoles":[],"conflictingRoles":[],"_id":"2cc3c15e-277e-4281-bfb4-5efd372dccbb","_rev":"1"} 24 9 6d5b60a4-2e96-459d-93a3-3642d019eabc 0 {"_id":"6d5b60a4-2e96-459d-93a3-3642d019eabc","name":"caseworker-sscs-clerk","description":"caseworker-sscs-clerk","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-clerk,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 23 8 6d5b60a4-2e96-459d-93a3-3642d019eabc 1 {"name":"caseworker-sscs-clerk","description":"caseworker-sscs-clerk","assignableRoles":[],"conflictingRoles":[],"_id":"6d5b60a4-2e96-459d-93a3-3642d019eabc","_rev":"1"} 27 9 0086da2d-5cf4-46fd-a7d4-59018982ed88 0 {"_id":"0086da2d-5cf4-46fd-a7d4-59018982ed88","name":"caseworker","description":"caseworker","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 26 8 0086da2d-5cf4-46fd-a7d4-59018982ed88 1 {"name":"caseworker","description":"caseworker","assignableRoles":[],"conflictingRoles":[],"_id":"0086da2d-5cf4-46fd-a7d4-59018982ed88","_rev":"1"} 30 9 0e30b8d1-534b-476e-bacb-025328800d21 0 {"_id":"0e30b8d1-534b-476e-bacb-025328800d21","name":"caseworker-sscs-anonymouscitizen","description":"caseworker-sscs-anonymouscitizen","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-anonymouscitizen,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 29 8 0e30b8d1-534b-476e-bacb-025328800d21 1 {"name":"caseworker-sscs-anonymouscitizen","description":"caseworker-sscs-anonymouscitizen","assignableRoles":[],"conflictingRoles":[],"_id":"0e30b8d1-534b-476e-bacb-025328800d21","_rev":"1"} 33 9 86a2595d-0daf-4f7c-974d-f54ecae57832 0 {"_id":"86a2595d-0daf-4f7c-974d-f54ecae57832","name":"caseworker-sscs-callagent","description":"caseworker-sscs-callagent","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-callagent,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 32 8 86a2595d-0daf-4f7c-974d-f54ecae57832 1 {"name":"caseworker-sscs-callagent","description":"caseworker-sscs-callagent","assignableRoles":[],"conflictingRoles":[],"_id":"86a2595d-0daf-4f7c-974d-f54ecae57832","_rev":"1"} 36 9 ce646a01-8d62-42b9-9941-226620e1e3a1 0 {"_id":"ce646a01-8d62-42b9-9941-226620e1e3a1","name":"caseworker-sscs-judge","description":"caseworker-sscs-judge","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-judge,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 35 8 ce646a01-8d62-42b9-9941-226620e1e3a1 1 {"name":"caseworker-sscs-judge","description":"caseworker-sscs-judge","assignableRoles":[],"conflictingRoles":[],"_id":"ce646a01-8d62-42b9-9941-226620e1e3a1","_rev":"1"} 39 9 d782a3c8-7140-4240-ab4c-43da97765b86 0 {"_id":"d782a3c8-7140-4240-ab4c-43da97765b86","name":"caseworker-sscs-dwpresponsewriter","description":"caseworker-sscs-dwpresponsewriter","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-dwpresponsewriter,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 38 8 d782a3c8-7140-4240-ab4c-43da97765b86 1 {"name":"caseworker-sscs-dwpresponsewriter","description":"caseworker-sscs-dwpresponsewriter","assignableRoles":[],"conflictingRoles":[],"_id":"d782a3c8-7140-4240-ab4c-43da97765b86","_rev":"1"} 42 9 72d23e7d-9ee9-4195-805f-11fb226eaad7 0 {"_id":"72d23e7d-9ee9-4195-805f-11fb226eaad7","name":"caseworker-sscs-registrar","description":"caseworker-sscs-registrar","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-registrar,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 41 8 72d23e7d-9ee9-4195-805f-11fb226eaad7 1 {"name":"caseworker-sscs-registrar","description":"caseworker-sscs-registrar","assignableRoles":[],"conflictingRoles":[],"_id":"72d23e7d-9ee9-4195-805f-11fb226eaad7","_rev":"1"} 45 9 c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae 0 {"_id":"c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae","name":"caseworker-sscs-superuser","description":"caseworker-sscs-superuser","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-superuser,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 44 8 c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae 1 {"name":"caseworker-sscs-superuser","description":"caseworker-sscs-superuser","assignableRoles":[],"conflictingRoles":[],"_id":"c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae","_rev":"1"} 48 9 0cd2d788-0859-4870-8e06-710112fafe82 0 {"_id":"0cd2d788-0859-4870-8e06-710112fafe82","name":"caseworker-sscs-teamleader","description":"caseworker-sscs-teamleader","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-teamleader,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 47 8 0cd2d788-0859-4870-8e06-710112fafe82 1 {"name":"caseworker-sscs-teamleader","description":"caseworker-sscs-teamleader","assignableRoles":[],"conflictingRoles":[],"_id":"0cd2d788-0859-4870-8e06-710112fafe82","_rev":"1"} 51 9 ba40315a-59d7-4b23-acdb-039282082d60 0 {"_id":"ba40315a-59d7-4b23-acdb-039282082d60","name":"caseworker-sscs-panelmember","description":"caseworker-sscs-panelmember","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-panelmember,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 50 8 ba40315a-59d7-4b23-acdb-039282082d60 1 {"name":"caseworker-sscs-panelmember","description":"caseworker-sscs-panelmember","assignableRoles":[],"conflictingRoles":[],"_id":"ba40315a-59d7-4b23-acdb-039282082d60","_rev":"1"} 54 9 a069a459-dd5f-442f-a09b-1c2d8555af94 0 {"_id":"a069a459-dd5f-442f-a09b-1c2d8555af94","name":"caseworker-sscs-bulkscan","description":"caseworker-sscs-bulkscan","mapping":"managedUser_systemLdapAccount","attributes":[{"name":"ldapGroups","value":["cn=caseworker-sscs-bulkscan,ou=groups,dc=reform,dc=hmcts,dc=net"],"assignmentOperation":"mergeWithTarget","unassignmentOperation":"removeFromTarget"}],"_rev":"0"} 53 8 a069a459-dd5f-442f-a09b-1c2d8555af94 1 {"name":"caseworker-sscs-bulkscan","description":"caseworker-sscs-bulkscan","assignableRoles":[],"conflictingRoles":[],"_id":"a069a459-dd5f-442f-a09b-1c2d8555af94","_rev":"1"} 11 8 IDAM_SYSTEM_OWNER 16 {"_id":"IDAM_SYSTEM_OWNER","_rev":"16","name":"IDAM_SYSTEM_OWNER","description":"IdAM System Owner","assignableRoles":["IDAM_SUPER_USER","a116f566-b548-4b48-b95a-d2f758d6dc37","81cafa26-6d3d-4afc-a10c-d0b5df01ab6d","2cc3c15e-277e-4281-bfb4-5efd372dccbb","6d5b60a4-2e96-459d-93a3-3642d019eabc","0086da2d-5cf4-46fd-a7d4-59018982ed88","0e30b8d1-534b-476e-bacb-025328800d21","86a2595d-0daf-4f7c-974d-f54ecae57832","ce646a01-8d62-42b9-9941-226620e1e3a1","d782a3c8-7140-4240-ab4c-43da97765b86","72d23e7d-9ee9-4195-805f-11fb226eaad7","c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae","0cd2d788-0859-4870-8e06-710112fafe82","ba40315a-59d7-4b23-acdb-039282082d60","a069a459-dd5f-442f-a09b-1c2d8555af94"],"conflictingRoles":[]} \. -- -- Name: managedobjects_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('managedobjects_id_seq', 55, true); -- -- Data for Name: objecttypes; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY objecttypes (id, objecttype) FROM stdin; 1 config 2 cluster/states 3 scheduler 4 scheduler/jobGroups 5 scheduler/jobs 6 scheduler/triggerGroups 7 scheduler/triggers 8 managed/role 9 managed/assignment 10 relationships 11 managed/user 12 reconprogressstate \. -- -- Name: objecttypes_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('objecttypes_id_seq', 12, true); -- -- Data for Name: relationshipproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY relationshipproperties (relationships_id, propkey, proptype, propvalue) FROM stdin; \. -- -- Data for Name: relationships; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY relationships (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; 1 10 5f671c5b-634a-466d-ae73-d4dbc4593517 0 {"firstId":"managed/assignment/citizen","firstPropertyName":"roles","secondId":"managed/role/citizen","secondPropertyName":"assignments","properties":null,"_id":"5f671c5b-634a-466d-ae73-d4dbc4593517","_rev":"0"} 2 10 c18d9be5-6903-4357-922b-ef04ed5d887a 0 {"firstId":"managed/assignment/solicitor","firstPropertyName":"roles","secondId":"managed/role/solicitor","secondPropertyName":"assignments","properties":null,"_id":"c18d9be5-6903-4357-922b-ef04ed5d887a","_rev":"0"} 3 10 7e48028d-33ba-4533-b62c-b0fff1472a73 0 {"firstId":"managed/assignment/letter-holder","firstPropertyName":"roles","secondId":"managed/role/letter-holder","secondPropertyName":"assignments","properties":null,"_id":"7e48028d-33ba-4533-b62c-b0fff1472a73","_rev":"0"} 4 10 25b58263-4b13-4b59-a94e-91aea9fdfa2c 0 {"firstId":"managed/assignment/IDAM_ADMIN_USER","firstPropertyName":"roles","secondId":"managed/role/IDAM_ADMIN_USER","secondPropertyName":"assignments","properties":null,"_id":"25b58263-4b13-4b59-a94e-91aea9fdfa2c","_rev":"0"} 5 10 22beeb1a-b741-4996-b60e-2e6dd1679119 0 {"firstId":"managed/assignment/IDAM_SUPER_USER","firstPropertyName":"roles","secondId":"managed/role/IDAM_SUPER_USER","secondPropertyName":"assignments","properties":null,"_id":"22beeb1a-b741-4996-b60e-2e6dd1679119","_rev":"0"} 6 10 77da2f03-d992-43a1-a33c-81efcbb1d694 0 {"firstId":"managed/assignment/IDAM_SYSTEM_OWNER","firstPropertyName":"roles","secondId":"managed/role/IDAM_SYSTEM_OWNER","secondPropertyName":"assignments","properties":null,"_id":"77da2f03-d992-43a1-a33c-81efcbb1d694","_rev":"0"} 7 10 5c535c8e-9ea6-4b4e-986e-c0b7e7a57636 0 {"firstId":"managed/user/cf9aba46-30d1-4102-ad78-3ff0ee84ac27","firstPropertyName":"authzRoles","secondId":"repo/internal/role/openidm-authorized","secondPropertyName":"authzMembers","properties":null,"_id":"5c535c8e-9ea6-4b4e-986e-c0b7e7a57636","_rev":"0"} 8 10 ca42686e-43df-4e6b-8ccb-aa14bcb435b4 1 {"firstId":"managed/role/IDAM_SYSTEM_OWNER","firstPropertyName":"members","secondId":"managed/user/cf9aba46-30d1-4102-ad78-3ff0ee84ac27","secondPropertyName":"roles","properties":{},"_rev":"1","_id":"ca42686e-43df-4e6b-8ccb-aa14bcb435b4"} 9 10 58f3acb3-4221-4b6a-8032-afe3f67806f4 0 {"firstId":"managed/assignment/a116f566-b548-4b48-b95a-d2f758d6dc37","firstPropertyName":"roles","secondId":"managed/role/a116f566-b548-4b48-b95a-d2f758d6dc37","secondPropertyName":"assignments","properties":null,"_id":"58f3acb3-4221-4b6a-8032-afe3f67806f4","_rev":"0"} 10 10 f5bd61d0-2d82-429c-834e-5aa2ce697703 0 {"firstId":"managed/assignment/81cafa26-6d3d-4afc-a10c-d0b5df01ab6d","firstPropertyName":"roles","secondId":"managed/role/81cafa26-6d3d-4afc-a10c-d0b5df01ab6d","secondPropertyName":"assignments","properties":null,"_id":"f5bd61d0-2d82-429c-834e-5aa2ce697703","_rev":"0"} 11 10 b11ecf9a-ef13-47b3-b1ab-a52870d3cbb6 0 {"firstId":"managed/assignment/2cc3c15e-277e-4281-bfb4-5efd372dccbb","firstPropertyName":"roles","secondId":"managed/role/2cc3c15e-277e-4281-bfb4-5efd372dccbb","secondPropertyName":"assignments","properties":null,"_id":"b11ecf9a-ef13-47b3-b1ab-a52870d3cbb6","_rev":"0"} 12 10 5a7f7bbf-5f4e-4d05-91bd-82c08d0a8bda 0 {"firstId":"managed/assignment/6d5b60a4-2e96-459d-93a3-3642d019eabc","firstPropertyName":"roles","secondId":"managed/role/6d5b60a4-2e96-459d-93a3-3642d019eabc","secondPropertyName":"assignments","properties":null,"_id":"5a7f7bbf-5f4e-4d05-91bd-82c08d0a8bda","_rev":"0"} 13 10 5e8ff119-7dd8-4da0-8247-1d0ab59b1827 0 {"firstId":"managed/assignment/0086da2d-5cf4-46fd-a7d4-59018982ed88","firstPropertyName":"roles","secondId":"managed/role/0086da2d-5cf4-46fd-a7d4-59018982ed88","secondPropertyName":"assignments","properties":null,"_id":"5e8ff119-7dd8-4da0-8247-1d0ab59b1827","_rev":"0"} 14 10 af3da7a8-edc2-48db-870b-7f0bdef6208c 0 {"firstId":"managed/assignment/0e30b8d1-534b-476e-bacb-025328800d21","firstPropertyName":"roles","secondId":"managed/role/0e30b8d1-534b-476e-bacb-025328800d21","secondPropertyName":"assignments","properties":null,"_id":"af3da7a8-edc2-48db-870b-7f0bdef6208c","_rev":"0"} 15 10 93b5310a-4268-4e03-a4c4-f63429278984 0 {"firstId":"managed/assignment/86a2595d-0daf-4f7c-974d-f54ecae57832","firstPropertyName":"roles","secondId":"managed/role/86a2595d-0daf-4f7c-974d-f54ecae57832","secondPropertyName":"assignments","properties":null,"_id":"93b5310a-4268-4e03-a4c4-f63429278984","_rev":"0"} 16 10 16bea6e0-9a04-4a67-bd61-21a8af8fac92 0 {"firstId":"managed/assignment/ce646a01-8d62-42b9-9941-226620e1e3a1","firstPropertyName":"roles","secondId":"managed/role/ce646a01-8d62-42b9-9941-226620e1e3a1","secondPropertyName":"assignments","properties":null,"_id":"16bea6e0-9a04-4a67-bd61-21a8af8fac92","_rev":"0"} 17 10 bd84d929-ad7e-4029-ae94-c2f4d675d3f9 0 {"firstId":"managed/assignment/d782a3c8-7140-4240-ab4c-43da97765b86","firstPropertyName":"roles","secondId":"managed/role/d782a3c8-7140-4240-ab4c-43da97765b86","secondPropertyName":"assignments","properties":null,"_id":"bd84d929-ad7e-4029-ae94-c2f4d675d3f9","_rev":"0"} 18 10 d08b2273-1006-4172-a85e-780fd96717a3 0 {"firstId":"managed/assignment/72d23e7d-9ee9-4195-805f-11fb226eaad7","firstPropertyName":"roles","secondId":"managed/role/72d23e7d-9ee9-4195-805f-11fb226eaad7","secondPropertyName":"assignments","properties":null,"_id":"d08b2273-1006-4172-a85e-780fd96717a3","_rev":"0"} 19 10 c731a07c-47bc-44b6-a2ff-8b4ad299b84c 0 {"firstId":"managed/assignment/c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae","firstPropertyName":"roles","secondId":"managed/role/c1fe96db-c8e8-4ebb-8528-d1c3fcc54cae","secondPropertyName":"assignments","properties":null,"_id":"c731a07c-47bc-44b6-a2ff-8b4ad299b84c","_rev":"0"} 20 10 b2e063df-59fa-4efb-bfb2-d79db50c7b35 0 {"firstId":"managed/assignment/0cd2d788-0859-4870-8e06-710112fafe82","firstPropertyName":"roles","secondId":"managed/role/0cd2d788-0859-4870-8e06-710112fafe82","secondPropertyName":"assignments","properties":null,"_id":"b2e063df-59fa-4efb-bfb2-d79db50c7b35","_rev":"0"} 21 10 1e6a6eda-36a7-45cf-82eb-c18f8c040200 0 {"firstId":"managed/assignment/ba40315a-59d7-4b23-acdb-039282082d60","firstPropertyName":"roles","secondId":"managed/role/ba40315a-59d7-4b23-acdb-039282082d60","secondPropertyName":"assignments","properties":null,"_id":"1e6a6eda-36a7-45cf-82eb-c18f8c040200","_rev":"0"} 22 10 2ff4a4a9-da96-4b68-a17a-0425f099c768 0 {"firstId":"managed/assignment/a069a459-dd5f-442f-a09b-1c2d8555af94","firstPropertyName":"roles","secondId":"managed/role/a069a459-dd5f-442f-a09b-1c2d8555af94","secondPropertyName":"assignments","properties":null,"_id":"2ff4a4a9-da96-4b68-a17a-0425f099c768","_rev":"0"} \. -- -- Name: relationships_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('relationships_id_seq', 22, true); -- -- Data for Name: schedulerobjectproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY schedulerobjectproperties (schedulerobjects_id, propkey, proptype, propvalue) FROM stdin; \. -- -- Data for Name: schedulerobjects; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY schedulerobjects (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; 4 3 jobGroupNames 1 {"_id":"jobGroupNames","_rev":"1","names":["scheduler-service-group"]} 5 5 scheduler-service-group_$x$x$_reconcile-roles 0 {"paused":false,"_rev":"0","_id":"scheduler-service-group_$x$x$_reconcile-roles","key":"scheduler-service-group.reconcile-roles","serialized":"rO0ABXNyABRvcmcucXVhcnR6LkpvYkRldGFpbCv3Er7Ktmg7AgAJWgAKZHVyYWJpbGl0eVoADXNob3VsZFJlY292ZXJaAAp2b2xhdGlsaXR5TAALZGVzY3JpcHRpb250ABJMamF2YS9sYW5nL1N0cmluZztMAAVncm91cHEAfgABTAAIam9iQ2xhc3N0ABFMamF2YS9sYW5nL0NsYXNzO0wACmpvYkRhdGFNYXB0ABdMb3JnL3F1YXJ0ei9Kb2JEYXRhTWFwO0wADGpvYkxpc3RlbmVyc3QAD0xqYXZhL3V0aWwvU2V0O0wABG5hbWVxAH4AAXhwAAABcHQAF3NjaGVkdWxlci1zZXJ2aWNlLWdyb3VwdnIAPW9yZy5mb3JnZXJvY2sub3BlbmlkbS5xdWFydHouaW1wbC5TdGF0ZWZ1bFN<KEY>} 7 3 triggerGroupNames 1 {"_id":"triggerGroupNames","_rev":"1","names":["scheduler-service-group"]} 9 5 scheduler-service-group_$x$x$_sunset-task 0 {"paused":false,"_rev":"0","_id":"scheduler-service-group_$x$x$_sunset-task","key":"scheduler-service-group.sunset-task","serialized":"rO0ABXNyABRvcmcucXVhcnR6LkpvYkRldGFpbCv3Er7Ktmg7AgAJWgAKZHVyYWJpbGl0eVoADXNob3VsZFJlY292ZXJaAAp2b2xhdGlsaXR5TAALZGVzY3JpcHRpb250ABJMamF2YS9sYW5nL1N0cmluZztMAAVncm91cHEAfgABTAAIam9iQ2xhc3N0ABFMamF2YS9sYW5nL0NsYXNzO0wACmpvYkRhdGFNYXB0ABdMb3JnL3F1YXJ0ei9Kb2JEYXRhTWFwO0wADGpvYkxpc3RlbmVyc3QAD0xqYXZhL3V0aWwvU2V0O0wABG5hbWVxAH4AAXhwAAABcHQAF3NjaGVkdWxlci1zZXJ2aWNlLWdyb3VwdnIAPW9yZy5mb3JnZXJvY2sub3BlbmlkbS5xdWFydHouaW1wbC5TdGF0ZWZ1bFNjaGVkdWxlclNlcnZpY2VKb2IAAAAAAAAAAAAAAHhwc3IAFW9yZy5xdWFydHouSm9iRGF0YU1hcJ+wg+i/qbDLAgAAeHIAJm9yZy5xdWFydHoudXRpbHMuU3RyaW5nS2V5RGlydHlGbGFnTWFwggjow/vFXSgCAAFaABNhbGxvd3NUcmFuc2llbnREYXRheHIAHW9yZy5xdWFydHoudXRpbHMuRGlydHlGbGFnTWFwE+YurSh2Cs4CAAJaAAVkaXJ0eUwAA21hcHQAD0xqYXZhL3V0aWwvTWFwO3hwAXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAAAAFdAAXc2NoZWR1bGVyLmludm9rZVNlcnZpY2V0ACFvcmcuZm9yZ2Vyb2NrLm9wZW5pZG0udGFza3NjYW5uZXJ0ABVzY2hlZHVsZXIuY29uZmlnLW5hbWV0ABVzY2hlZHVsZXItc3Vuc2V0LXRhc2t0ABdzY2hlZHVsZXIuaW52b2tlQ29udGV4dHNyABdqYXZhLnV0aWwuTGlua2VkSGFzaE1hcDTATlwQbMD7AgABWgALYWNjZXNzT3JkZXJ4cQB+AA4/QAAAAAAABncIAAAACAAAAAR0ABF3YWl0Rm9yQ29tcGxldGlvbnNyABFqYXZhLmxhbmcuQm9vbGVhbs0gcoDVnPruAgABWgAFdmFsdWV4cAB0AA9udW1iZXJPZlRocmVhZHNzcgARamF2YS5sYW5nLkludGVnZXIS4qCk94GHOAIAAUkABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAAAABXQABHNjYW5zcQB+ABU/QAAAAAAABncIAAAACAAAAAR0AAxfcXVlcnlGaWx0ZXJ0AEIoKC9zdW5zZXQvZGF0ZSBsdCAiJHtUaW1lLm5vd30iKSBBTkQgISgvc3Vuc2V0L3Rhc2stY29tcGxldGVkIHByKSl0AAZvYmplY3R0AAxtYW5hZ2VkL3VzZXJ0AAl0YXNrU3RhdGVzcQB+ABU/QAAAAAAAA3cIAAAABAAAAAJ0AAdzdGFydGVkdAAUL3N1bnNldC90YXNrLXN0YXJ0ZWR0AAljb21wbGV0ZWR0ABYvc3Vuc2V0L3Rhc2stY29tcGxldGVkeAB0AAhyZWNvdmVyeXNxAH4AFT9AAAAAAAABdwgAAAACAAAAAXQAB3RpbWVvdXR0AAMxMG14AHgAdAAEdGFza3NxAH4AFT9AAAAAAAABdwgAAAACAAAAAXQABnNjcmlwdHNxAH4AFT9AAAAAAAADdwgAAAAEAAAAAnQABHR5cGV0AA90ZXh0L2phdmFzY3JpcHR0AARmaWxldAAQc2NyaXB0L3N1bnNldC5qc3gAeAB4AHQAD3NjaGVkdWxlLmNvbmZpZ3QCq3sgImVuYWJsZWQiOiB0cnVlLCAicGVyc2lzdGVkIjogdHJ1ZSwgIm1pc2ZpcmVQb2xpY3kiOiAiZmlyZUFuZFByb2NlZWQiLCAic2NoZWR1bGUiOiAiMCAwICogKiAqID8iLCAidHlwZSI6ICJjcm9uIiwgImludm9rZVNlcnZpY2UiOiAib3JnLmZvcmdlcm9jay5vcGVuaWRtLnRhc2tzY2FubmVyIiwgImludm9rZUNvbnRleHQiOiB7ICJ3YWl0Rm9yQ29tcGxldGlvbiI6IGZhbHNlLCAibnVtYmVyT2ZUaHJlYWRzIjogNSwgInNjYW4iOiB7ICJfcXVlcnlGaWx0ZXIiOiAiKCgvc3Vuc2V0L2RhdGUgbHQgXCIke1RpbWUubm93fVwiKSBBTkQgISgvc3Vuc2V0L3Rhc2stY29tcGxldGVkIHByKSkiLCAib2JqZWN0IjogIm1hbmFnZWQvdXNlciIsICJ0YXNrU3RhdGUiOiB7ICJzdGFydGVkIjogIi9zdW5zZXQvdGFzay1zdGFydGVkIiwgImNvbXBsZXRlZCI6ICIvc3Vuc2V0L3Rhc2stY29tcGxldGVkIiB9LCAicmVjb3ZlcnkiOiB7ICJ0aW1lb3V0IjogIjEwbSIgfSB9LCAidGFzayI6IHsgInNjcmlwdCI6IHsgInR5cGUiOiAidGV4dC9qYXZhc2NyaXB0IiwgImZpbGUiOiAic2NyaXB0L3N1bnNldC5qcyIgfSB9IH0sICJpbnZva2VMb2dMZXZlbCI6ICJpbmZvIiwgInRpbWVab25lIjogbnVsbCwgInN0YXJ0VGltZSI6IG51bGwsICJlbmRUaW1lIjogbnVsbCwgImNvbmN1cnJlbnRFeGVjdXRpb24iOiBmYWxzZSB9dAAYc2NoZWR1bGVyLmludm9rZUxvZ0xldmVsdAAEaW5mb3gAc3IAF2phdmEudXRpbC5MaW5rZWRIYXNoU2V02GzXWpXdKh4CAAB4cgARamF2YS51dGlsLkhhc2hTZXS6RIWVlri3NAMAAHhwdwwAAAAQP0AAAAAAAAB4dAALc3Vuc2V0LXRhc2s="} 3 4 scheduler-service-group 3 {"jobs":["reconcile-roles","sunset-task","reconcile-accounts"],"name":"scheduler-service-group","paused":false,"_rev":"3","_id":"scheduler-service-group"} 11 5 scheduler-service-group_$x$x$_reconcile-accounts 0 {"paused":false,"_rev":"0","_id":"scheduler-service-group_$x$x$_reconcile-accounts","key":"scheduler-service-group.reconcile-accounts","serialized":"rO0ABXNyABRvcmcucXVhcnR6LkpvYkRldGFpbCv3Er7Ktmg7AgAJ<KEY>"} 6 6 scheduler-service-group 3 {"triggers":["trigger-reconcile-roles","trigger-sunset-task","trigger-reconcile-accounts"],"name":"scheduler-service-group","paused":false,"_rev":"3","_id":"scheduler-service-group"} 8 7 scheduler-service-group_$x$x$_trigger-reconcile-roles 5 {"serialized":"<KEY>,"name":"trigger-reconcile-roles","group":"scheduler-service-group","previous_state":-1,"state":0,"acquired":false,"nodeId":null,"_rev":"5","_id":"scheduler-service-group_$x$x$_trigger-reconcile-roles"} 1 3 acquiredTriggers 9 {"localidm":[],"_id":"acquiredTriggers","_rev":"9","493c85e00ab7":[]} 10 7 scheduler-service-group_$x$x$_trigger-sunset-task 9 {"serialized":"<KEY>","name":"trigger-sunset-task","group":"scheduler-service-group","previous_state":-1,"state":0,"acquired":false,"nodeId":null,"_rev":"9","_id":"scheduler-service-group_$x$x$_trigger-sunset-task"} 2 3 waitingTriggers 17 {"names":["scheduler-service-group_$x$x$_trigger-reconcile-accounts","scheduler-service-group_$x$x$_trigger-reconcile-roles","scheduler-service-group_$x$x$_trigger-sunset-task"],"_id":"waitingTriggers","_rev":"17"} 12 7 scheduler-service-group_$x$x$_trigger-reconcile-accounts 5 {"serialized":"rO<KEY>","name":"trigger-reconcile-accounts","group":"scheduler-service-group","previous_state":-1,"state":0,"acquired":false,"nodeId":null,"_rev":"5","_id":"scheduler-service-group_$x$x$_trigger-reconcile-accounts"} \. -- -- Name: schedulerobjects_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('schedulerobjects_id_seq', 12, true); -- -- Data for Name: securitykeys; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY securitykeys (objectid, rev, keypair) FROM stdin; \. -- -- Data for Name: uinotification; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY uinotification (objectid, rev, notificationtype, createdate, message, requester, receiverid, requesterid, notificationsubtype) FROM stdin; \. -- -- Data for Name: updateobjectproperties; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY updateobjectproperties (updateobjects_id, propkey, proptype, propvalue) FROM stdin; \. -- -- Data for Name: updateobjects; Type: TABLE DATA; Schema: openidm; Owner: openidm -- COPY updateobjects (id, objecttypes_id, objectid, rev, fullobject) FROM stdin; \. -- -- Name: updateobjects_id_seq; Type: SEQUENCE SET; Schema: openidm; Owner: openidm -- SELECT pg_catalog.setval('updateobjects_id_seq', 1, false); SET search_path = fridam, pg_catalog; -- -- Name: clustercache clustercache_pkey; Type: CONSTRAINT; Schema: fridam; Owner: openidm -- ALTER TABLE ONLY clustercache ADD CONSTRAINT clustercache_pkey PRIMARY KEY (key); -- -- Name: service service_pk; Type: CONSTRAINT; Schema: fridam; Owner: openidm -- ALTER TABLE ONLY service ADD CONSTRAINT service_pk PRIMARY KEY (label); SET search_path = openidm, pg_catalog; -- -- Name: act_ge_bytearray act_ge_bytearray_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ge_bytearray ADD CONSTRAINT act_ge_bytearray_pkey PRIMARY KEY (id_); -- -- Name: act_ge_property act_ge_property_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ge_property ADD CONSTRAINT act_ge_property_pkey PRIMARY KEY (name_); -- -- Name: act_hi_actinst act_hi_actinst_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_actinst ADD CONSTRAINT act_hi_actinst_pkey PRIMARY KEY (id_); -- -- Name: act_hi_attachment act_hi_attachment_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_attachment ADD CONSTRAINT act_hi_attachment_pkey PRIMARY KEY (id_); -- -- Name: act_hi_comment act_hi_comment_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_comment ADD CONSTRAINT act_hi_comment_pkey PRIMARY KEY (id_); -- -- Name: act_hi_detail act_hi_detail_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_detail ADD CONSTRAINT act_hi_detail_pkey PRIMARY KEY (id_); -- -- Name: act_hi_identitylink act_hi_identitylink_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_identitylink ADD CONSTRAINT act_hi_identitylink_pkey PRIMARY KEY (id_); -- -- Name: act_hi_procinst act_hi_procinst_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_procinst ADD CONSTRAINT act_hi_procinst_pkey PRIMARY KEY (id_); -- -- Name: act_hi_procinst act_hi_procinst_proc_inst_id__key; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_procinst ADD CONSTRAINT act_hi_procinst_proc_inst_id__key UNIQUE (proc_inst_id_); -- -- Name: act_hi_taskinst act_hi_taskinst_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_taskinst ADD CONSTRAINT act_hi_taskinst_pkey PRIMARY KEY (id_); -- -- Name: act_hi_varinst act_hi_varinst_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_hi_varinst ADD CONSTRAINT act_hi_varinst_pkey PRIMARY KEY (id_); -- -- Name: act_id_group act_id_group_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_id_group ADD CONSTRAINT act_id_group_pkey PRIMARY KEY (id_); -- -- Name: act_id_info act_id_info_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_id_info ADD CONSTRAINT act_id_info_pkey PRIMARY KEY (id_); -- -- Name: act_id_membership act_id_membership_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_id_membership ADD CONSTRAINT act_id_membership_pkey PRIMARY KEY (user_id_, group_id_); -- -- Name: act_id_user act_id_user_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_id_user ADD CONSTRAINT act_id_user_pkey PRIMARY KEY (id_); -- -- Name: act_re_deployment act_re_deployment_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_deployment ADD CONSTRAINT act_re_deployment_pkey PRIMARY KEY (id_); -- -- Name: act_re_model act_re_model_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_model ADD CONSTRAINT act_re_model_pkey PRIMARY KEY (id_); -- -- Name: act_re_procdef act_re_procdef_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_procdef ADD CONSTRAINT act_re_procdef_pkey PRIMARY KEY (id_); -- -- Name: act_ru_event_subscr act_ru_event_subscr_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_event_subscr ADD CONSTRAINT act_ru_event_subscr_pkey PRIMARY KEY (id_); -- -- Name: act_ru_execution act_ru_execution_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_execution ADD CONSTRAINT act_ru_execution_pkey PRIMARY KEY (id_); -- -- Name: act_ru_identitylink act_ru_identitylink_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_identitylink ADD CONSTRAINT act_ru_identitylink_pkey PRIMARY KEY (id_); -- -- Name: act_ru_job act_ru_job_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_job ADD CONSTRAINT act_ru_job_pkey PRIMARY KEY (id_); -- -- Name: act_ru_task act_ru_task_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_task ADD CONSTRAINT act_ru_task_pkey PRIMARY KEY (id_); -- -- Name: act_ru_variable act_ru_variable_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_variable ADD CONSTRAINT act_ru_variable_pkey PRIMARY KEY (id_); -- -- Name: act_re_procdef act_uniq_procdef; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_procdef ADD CONSTRAINT act_uniq_procdef UNIQUE (key_, version_, tenant_id_); -- -- Name: auditaccess auditaccess_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY auditaccess ADD CONSTRAINT auditaccess_pkey PRIMARY KEY (objectid); -- -- Name: auditactivity auditactivity_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY auditactivity ADD CONSTRAINT auditactivity_pkey PRIMARY KEY (objectid); -- -- Name: auditauthentication auditauthentication_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY auditauthentication ADD CONSTRAINT auditauthentication_pkey PRIMARY KEY (objectid); -- -- Name: auditconfig auditconfig_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY auditconfig ADD CONSTRAINT auditconfig_pkey PRIMARY KEY (objectid); -- -- Name: auditrecon auditrecon_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY auditrecon ADD CONSTRAINT auditrecon_pkey PRIMARY KEY (objectid); -- -- Name: auditsync auditsync_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY auditsync ADD CONSTRAINT auditsync_pkey PRIMARY KEY (objectid); -- -- Name: clusteredrecontargetids clusteredrecontargetids_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY clusteredrecontargetids ADD CONSTRAINT clusteredrecontargetids_pkey PRIMARY KEY (objectid); -- -- Name: clusterobjectproperties clusterobjectproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY clusterobjectproperties ADD CONSTRAINT clusterobjectproperties_pkey PRIMARY KEY (clusterobjects_id, propkey); -- -- Name: clusterobjects clusterobjects_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY clusterobjects ADD CONSTRAINT clusterobjects_pkey PRIMARY KEY (id); -- -- Name: configobjectproperties configobjectproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY configobjectproperties ADD CONSTRAINT configobjectproperties_pkey PRIMARY KEY (configobjects_id, propkey); -- -- Name: configobjects configobjects_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY configobjects ADD CONSTRAINT configobjects_pkey PRIMARY KEY (id); -- -- Name: genericobjectproperties genericobjectproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY genericobjectproperties ADD CONSTRAINT genericobjectproperties_pkey PRIMARY KEY (genericobjects_id, propkey); -- -- Name: genericobjects genericobjects_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY genericobjects ADD CONSTRAINT genericobjects_pkey PRIMARY KEY (id); -- -- Name: genericobjects idx_genericobjects_object; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY genericobjects ADD CONSTRAINT idx_genericobjects_object UNIQUE (objecttypes_id, objectid); -- -- Name: objecttypes idx_objecttypes_objecttype; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY objecttypes ADD CONSTRAINT idx_objecttypes_objecttype UNIQUE (objecttype); -- -- Name: relationships idx_relationships_object; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY relationships ADD CONSTRAINT idx_relationships_object UNIQUE (objecttypes_id, objectid); -- -- Name: updateobjects idx_updateobjects_object; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY updateobjects ADD CONSTRAINT idx_updateobjects_object UNIQUE (objecttypes_id, objectid); -- -- Name: internalrole internalrole_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY internalrole ADD CONSTRAINT internalrole_pkey PRIMARY KEY (objectid); -- -- Name: internaluser internaluser_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY internaluser ADD CONSTRAINT internaluser_pkey PRIMARY KEY (objectid); -- -- Name: links links_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY links ADD CONSTRAINT links_pkey PRIMARY KEY (objectid); -- -- Name: managedobjectproperties managedobjectproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY managedobjectproperties ADD CONSTRAINT managedobjectproperties_pkey PRIMARY KEY (managedobjects_id, propkey); -- -- Name: managedobjects managedobjects_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY managedobjects ADD CONSTRAINT managedobjects_pkey PRIMARY KEY (id); -- -- Name: objecttypes objecttypes_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY objecttypes ADD CONSTRAINT objecttypes_pkey PRIMARY KEY (id); -- -- Name: relationshipproperties relationshipproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY relationshipproperties ADD CONSTRAINT relationshipproperties_pkey PRIMARY KEY (relationships_id, propkey); -- -- Name: relationships relationships_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY relationships ADD CONSTRAINT relationships_pkey PRIMARY KEY (id); -- -- Name: schedulerobjectproperties schedulerobjectproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY schedulerobjectproperties ADD CONSTRAINT schedulerobjectproperties_pkey PRIMARY KEY (schedulerobjects_id, propkey); -- -- Name: schedulerobjects schedulerobjects_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY schedulerobjects ADD CONSTRAINT schedulerobjects_pkey PRIMARY KEY (id); -- -- Name: securitykeys securitykeys_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY securitykeys ADD CONSTRAINT securitykeys_pkey PRIMARY KEY (objectid); -- -- Name: uinotification uinotification_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY uinotification ADD CONSTRAINT uinotification_pkey PRIMARY KEY (objectid); -- -- Name: updateobjectproperties updateobjectproperties_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY updateobjectproperties ADD CONSTRAINT updateobjectproperties_pkey PRIMARY KEY (updateobjects_id, propkey); -- -- Name: updateobjects updateobjects_pkey; Type: CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY updateobjects ADD CONSTRAINT updateobjects_pkey PRIMARY KEY (id); -- -- Name: act_idx_athrz_procedef; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_athrz_procedef ON act_ru_identitylink USING btree (proc_def_id_); -- -- Name: act_idx_bytear_depl; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_bytear_depl ON act_ge_bytearray USING btree (deployment_id_); -- -- Name: act_idx_event_subscr; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_event_subscr ON act_ru_event_subscr USING btree (execution_id_); -- -- Name: act_idx_event_subscr_config_; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_event_subscr_config_ ON act_ru_event_subscr USING btree (configuration_); -- -- Name: act_idx_exe_parent; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_exe_parent ON act_ru_execution USING btree (parent_id_); -- -- Name: act_idx_exe_procdef; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_exe_procdef ON act_ru_execution USING btree (proc_def_id_); -- -- Name: act_idx_exe_procinst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_exe_procinst ON act_ru_execution USING btree (proc_inst_id_); -- -- Name: act_idx_exe_super; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_exe_super ON act_ru_execution USING btree (super_exec_); -- -- Name: act_idx_exec_buskey; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_exec_buskey ON act_ru_execution USING btree (business_key_); -- -- Name: act_idx_hi_act_inst_end; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_act_inst_end ON act_hi_actinst USING btree (end_time_); -- -- Name: act_idx_hi_act_inst_exec; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_act_inst_exec ON act_hi_actinst USING btree (execution_id_, act_id_); -- -- Name: act_idx_hi_act_inst_procinst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_act_inst_procinst ON act_hi_actinst USING btree (proc_inst_id_, act_id_); -- -- Name: act_idx_hi_act_inst_start; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_act_inst_start ON act_hi_actinst USING btree (start_time_); -- -- Name: act_idx_hi_detail_act_inst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_detail_act_inst ON act_hi_detail USING btree (act_inst_id_); -- -- Name: act_idx_hi_detail_name; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_detail_name ON act_hi_detail USING btree (name_); -- -- Name: act_idx_hi_detail_proc_inst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_detail_proc_inst ON act_hi_detail USING btree (proc_inst_id_); -- -- Name: act_idx_hi_detail_task_id; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_detail_task_id ON act_hi_detail USING btree (task_id_); -- -- Name: act_idx_hi_detail_time; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_detail_time ON act_hi_detail USING btree (time_); -- -- Name: act_idx_hi_ident_lnk_procinst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_ident_lnk_procinst ON act_hi_identitylink USING btree (proc_inst_id_); -- -- Name: act_idx_hi_ident_lnk_task; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_ident_lnk_task ON act_hi_identitylink USING btree (task_id_); -- -- Name: act_idx_hi_ident_lnk_user; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_ident_lnk_user ON act_hi_identitylink USING btree (user_id_); -- -- Name: act_idx_hi_pro_i_buskey; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_pro_i_buskey ON act_hi_procinst USING btree (business_key_); -- -- Name: act_idx_hi_pro_inst_end; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_pro_inst_end ON act_hi_procinst USING btree (end_time_); -- -- Name: act_idx_hi_procvar_name_type; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_procvar_name_type ON act_hi_varinst USING btree (name_, var_type_); -- -- Name: act_idx_hi_procvar_proc_inst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_hi_procvar_proc_inst ON act_hi_varinst USING btree (proc_inst_id_); -- -- Name: act_idx_ident_lnk_group; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_ident_lnk_group ON act_ru_identitylink USING btree (group_id_); -- -- Name: act_idx_ident_lnk_user; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_ident_lnk_user ON act_ru_identitylink USING btree (user_id_); -- -- Name: act_idx_idl_procinst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_idl_procinst ON act_ru_identitylink USING btree (proc_inst_id_); -- -- Name: act_idx_job_exception; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_job_exception ON act_ru_job USING btree (exception_stack_id_); -- -- Name: act_idx_memb_group; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_memb_group ON act_id_membership USING btree (group_id_); -- -- Name: act_idx_memb_user; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_memb_user ON act_id_membership USING btree (user_id_); -- -- Name: act_idx_model_deployment; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_model_deployment ON act_re_model USING btree (deployment_id_); -- -- Name: act_idx_model_source; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_model_source ON act_re_model USING btree (editor_source_value_id_); -- -- Name: act_idx_model_source_extra; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_model_source_extra ON act_re_model USING btree (editor_source_extra_value_id_); -- -- Name: act_idx_task_create; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_task_create ON act_ru_task USING btree (create_time_); -- -- Name: act_idx_task_exec; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_task_exec ON act_ru_task USING btree (execution_id_); -- -- Name: act_idx_task_procdef; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_task_procdef ON act_ru_task USING btree (proc_def_id_); -- -- Name: act_idx_task_procinst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_task_procinst ON act_ru_task USING btree (proc_inst_id_); -- -- Name: act_idx_tskass_task; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_tskass_task ON act_ru_identitylink USING btree (task_id_); -- -- Name: act_idx_var_bytearray; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_var_bytearray ON act_ru_variable USING btree (bytearray_id_); -- -- Name: act_idx_var_exe; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_var_exe ON act_ru_variable USING btree (execution_id_); -- -- Name: act_idx_var_procinst; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_var_procinst ON act_ru_variable USING btree (proc_inst_id_); -- -- Name: act_idx_variable_task_id; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX act_idx_variable_task_id ON act_ru_variable USING btree (task_id_); -- -- Name: fk_clusterobjectproperties_clusterobjects; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_clusterobjectproperties_clusterobjects ON clusterobjectproperties USING btree (clusterobjects_id); -- -- Name: fk_clusterobjects_objectypes; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_clusterobjects_objectypes ON clusterobjects USING btree (objecttypes_id); -- -- Name: fk_configobjectproperties_configobjects; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_configobjectproperties_configobjects ON configobjectproperties USING btree (configobjects_id); -- -- Name: fk_configobjects_objecttypes; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_configobjects_objecttypes ON configobjects USING btree (objecttypes_id); -- -- Name: fk_genericobjectproperties_genericobjects; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_genericobjectproperties_genericobjects ON genericobjectproperties USING btree (genericobjects_id); -- -- Name: fk_managedobjectproperties_managedobjects; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_managedobjectproperties_managedobjects ON managedobjectproperties USING btree (managedobjects_id); -- -- Name: fk_relationshipproperties_relationships; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_relationshipproperties_relationships ON relationshipproperties USING btree (relationships_id); -- -- Name: fk_schedulerobjectproperties_schedulerobjects; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_schedulerobjectproperties_schedulerobjects ON schedulerobjectproperties USING btree (schedulerobjects_id); -- -- Name: fk_schedulerobjects_objectypes; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_schedulerobjects_objectypes ON schedulerobjects USING btree (objecttypes_id); -- -- Name: fk_updateobjectproperties_updateobjects; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX fk_updateobjectproperties_updateobjects ON updateobjectproperties USING btree (updateobjects_id); -- -- Name: idx_auditrecon_entrytype; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_auditrecon_entrytype ON auditrecon USING btree (entrytype); -- -- Name: idx_auditrecon_reconid; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_auditrecon_reconid ON auditrecon USING btree (reconid); -- -- Name: idx_clusteredrecontargetids_reconid; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_clusteredrecontargetids_reconid ON clusteredrecontargetids USING btree (reconid); -- -- Name: idx_clusterobjectproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_clusterobjectproperties_prop ON clusterobjectproperties USING btree (propkey, propvalue); -- -- Name: idx_clusterobjects_object; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_clusterobjects_object ON clusterobjects USING btree (objecttypes_id, objectid); -- -- Name: idx_configobjectproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_configobjectproperties_prop ON configobjectproperties USING btree (propkey, propvalue); -- -- Name: idx_configobjects_object; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_configobjects_object ON configobjects USING btree (objecttypes_id, objectid); -- -- Name: idx_genericobjectproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_genericobjectproperties_prop ON genericobjectproperties USING btree (propkey, propvalue); -- -- Name: idx_json_clusterobjects_state; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_clusterobjects_state ON clusterobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['state'::text])); -- -- Name: idx_json_clusterobjects_timestamp; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_clusterobjects_timestamp ON clusterobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['timestamp'::text])); -- -- Name: idx_json_managedobjects_accountstatus; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_accountstatus ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['accountStatus'::text])); -- -- Name: idx_json_managedobjects_accountstatus_gin; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_accountstatus_gin ON managedobjects USING gin (json_extract_path_text(fullobject, VARIADIC ARRAY['accountStatus'::text]) gin_trgm_ops); -- -- Name: idx_json_managedobjects_givenname; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_givenname ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['givenName'::text])); -- -- Name: idx_json_managedobjects_givenname_gin; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_givenname_gin ON managedobjects USING gin (json_extract_path_text(fullobject, VARIADIC ARRAY['givenName'::text]) gin_trgm_ops); -- -- Name: idx_json_managedobjects_mail; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_mail ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['mail'::text])); -- -- Name: idx_json_managedobjects_mail_gin; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_mail_gin ON managedobjects USING gin (json_extract_path_text(fullobject, VARIADIC ARRAY['mail'::text]) gin_trgm_ops); -- -- Name: idx_json_managedobjects_rolecondition; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_rolecondition ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['condition'::text])); -- -- Name: idx_json_managedobjects_roletemporalconstraints; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_roletemporalconstraints ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['temporalConstraints'::text])); -- -- Name: idx_json_managedobjects_sn; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_sn ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['sn'::text])); -- -- Name: idx_json_managedobjects_sn_gin; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_sn_gin ON managedobjects USING gin (json_extract_path_text(fullobject, VARIADIC ARRAY['sn'::text]) gin_trgm_ops); -- -- Name: idx_json_managedobjects_username; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_json_managedobjects_username ON managedobjects USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['userName'::text]), objecttypes_id); -- -- Name: idx_json_managedobjects_username_gin; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_managedobjects_username_gin ON managedobjects USING gin (json_extract_path_text(fullobject, VARIADIC ARRAY['userName'::text]) gin_trgm_ops); -- -- Name: idx_json_relationships; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_relationships ON relationships USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['firstId'::text]), json_extract_path_text(fullobject, VARIADIC ARRAY['firstPropertyName'::text]), json_extract_path_text(fullobject, VARIADIC ARRAY['secondId'::text]), json_extract_path_text(fullobject, VARIADIC ARRAY['secondPropertyName'::text])); -- -- Name: idx_json_relationships_first; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_relationships_first ON relationships USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['firstId'::text]), json_extract_path_text(fullobject, VARIADIC ARRAY['firstPropertyName'::text])); -- -- Name: idx_json_relationships_second; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_json_relationships_second ON relationships USING btree (json_extract_path_text(fullobject, VARIADIC ARRAY['secondId'::text]), json_extract_path_text(fullobject, VARIADIC ARRAY['secondPropertyName'::text])); -- -- Name: idx_links_first; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_links_first ON links USING btree (linktype, linkqualifier, firstid); -- -- Name: idx_links_second; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_links_second ON links USING btree (linktype, linkqualifier, secondid); -- -- Name: idx_managedobjectproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_managedobjectproperties_prop ON managedobjectproperties USING btree (propkey, propvalue); -- -- Name: idx_managedobjects_object; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_managedobjects_object ON managedobjects USING btree (objecttypes_id, objectid); -- -- Name: idx_relationshipproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_relationshipproperties_prop ON relationshipproperties USING btree (propkey, propvalue); -- -- Name: idx_schedulerobjectproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_schedulerobjectproperties_prop ON schedulerobjectproperties USING btree (propkey, propvalue); -- -- Name: idx_schedulerobjects_object; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE UNIQUE INDEX idx_schedulerobjects_object ON schedulerobjects USING btree (objecttypes_id, objectid); -- -- Name: idx_uinotification_receiverid; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_uinotification_receiverid ON uinotification USING btree (receiverid); -- -- Name: idx_updateobjectproperties_prop; Type: INDEX; Schema: openidm; Owner: openidm -- CREATE INDEX idx_updateobjectproperties_prop ON updateobjectproperties USING btree (propkey, propvalue); -- -- Name: act_ru_identitylink act_fk_athrz_procedef; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_identitylink ADD CONSTRAINT act_fk_athrz_procedef FOREIGN KEY (proc_def_id_) REFERENCES act_re_procdef(id_); -- -- Name: act_ge_bytearray act_fk_bytearr_depl; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ge_bytearray ADD CONSTRAINT act_fk_bytearr_depl FOREIGN KEY (deployment_id_) REFERENCES act_re_deployment(id_); -- -- Name: act_ru_event_subscr act_fk_event_exec; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_event_subscr ADD CONSTRAINT act_fk_event_exec FOREIGN KEY (execution_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_execution act_fk_exe_parent; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_execution ADD CONSTRAINT act_fk_exe_parent FOREIGN KEY (parent_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_execution act_fk_exe_procdef; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_execution ADD CONSTRAINT act_fk_exe_procdef FOREIGN KEY (proc_def_id_) REFERENCES act_re_procdef(id_); -- -- Name: act_ru_execution act_fk_exe_procinst; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_execution ADD CONSTRAINT act_fk_exe_procinst FOREIGN KEY (proc_inst_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_execution act_fk_exe_super; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_execution ADD CONSTRAINT act_fk_exe_super FOREIGN KEY (super_exec_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_identitylink act_fk_idl_procinst; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_identitylink ADD CONSTRAINT act_fk_idl_procinst FOREIGN KEY (proc_inst_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_job act_fk_job_exception; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_job ADD CONSTRAINT act_fk_job_exception FOREIGN KEY (exception_stack_id_) REFERENCES act_ge_bytearray(id_); -- -- Name: act_id_membership act_fk_memb_group; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_id_membership ADD CONSTRAINT act_fk_memb_group FOREIGN KEY (group_id_) REFERENCES act_id_group(id_); -- -- Name: act_id_membership act_fk_memb_user; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_id_membership ADD CONSTRAINT act_fk_memb_user FOREIGN KEY (user_id_) REFERENCES act_id_user(id_); -- -- Name: act_re_model act_fk_model_deployment; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_model ADD CONSTRAINT act_fk_model_deployment FOREIGN KEY (deployment_id_) REFERENCES act_re_deployment(id_); -- -- Name: act_re_model act_fk_model_source; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_model ADD CONSTRAINT act_fk_model_source FOREIGN KEY (editor_source_value_id_) REFERENCES act_ge_bytearray(id_); -- -- Name: act_re_model act_fk_model_source_extra; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_re_model ADD CONSTRAINT act_fk_model_source_extra FOREIGN KEY (editor_source_extra_value_id_) REFERENCES act_ge_bytearray(id_); -- -- Name: act_ru_task act_fk_task_exe; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_task ADD CONSTRAINT act_fk_task_exe FOREIGN KEY (execution_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_task act_fk_task_procdef; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_task ADD CONSTRAINT act_fk_task_procdef FOREIGN KEY (proc_def_id_) REFERENCES act_re_procdef(id_); -- -- Name: act_ru_task act_fk_task_procinst; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_task ADD CONSTRAINT act_fk_task_procinst FOREIGN KEY (proc_inst_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_identitylink act_fk_tskass_task; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_identitylink ADD CONSTRAINT act_fk_tskass_task FOREIGN KEY (task_id_) REFERENCES act_ru_task(id_); -- -- Name: act_ru_variable act_fk_var_bytearray; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_variable ADD CONSTRAINT act_fk_var_bytearray FOREIGN KEY (bytearray_id_) REFERENCES act_ge_bytearray(id_); -- -- Name: act_ru_variable act_fk_var_exe; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_variable ADD CONSTRAINT act_fk_var_exe FOREIGN KEY (execution_id_) REFERENCES act_ru_execution(id_); -- -- Name: act_ru_variable act_fk_var_procinst; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY act_ru_variable ADD CONSTRAINT act_fk_var_procinst FOREIGN KEY (proc_inst_id_) REFERENCES act_ru_execution(id_); -- -- Name: clusterobjectproperties fk_clusterobjectproperties_clusterobjects; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY clusterobjectproperties ADD CONSTRAINT fk_clusterobjectproperties_clusterobjects FOREIGN KEY (clusterobjects_id) REFERENCES clusterobjects(id) ON DELETE CASCADE; -- -- Name: clusterobjects fk_clusterobjects_objectypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY clusterobjects ADD CONSTRAINT fk_clusterobjects_objectypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: configobjectproperties fk_configobjectproperties_configobjects; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY configobjectproperties ADD CONSTRAINT fk_configobjectproperties_configobjects FOREIGN KEY (configobjects_id) REFERENCES configobjects(id) ON DELETE CASCADE; -- -- Name: configobjects fk_configobjects_objecttypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY configobjects ADD CONSTRAINT fk_configobjects_objecttypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: genericobjectproperties fk_genericobjectproperties_genericobjects; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY genericobjectproperties ADD CONSTRAINT fk_genericobjectproperties_genericobjects FOREIGN KEY (genericobjects_id) REFERENCES genericobjects(id) ON DELETE CASCADE; -- -- Name: genericobjects fk_genericobjects_objecttypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY genericobjects ADD CONSTRAINT fk_genericobjects_objecttypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: managedobjectproperties fk_managedobjectproperties_managedobjects; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY managedobjectproperties ADD CONSTRAINT fk_managedobjectproperties_managedobjects FOREIGN KEY (managedobjects_id) REFERENCES managedobjects(id) ON DELETE CASCADE; -- -- Name: managedobjects fk_managedobjects_objectypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY managedobjects ADD CONSTRAINT fk_managedobjects_objectypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: relationshipproperties fk_relationshipproperties_relationships; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY relationshipproperties ADD CONSTRAINT fk_relationshipproperties_relationships FOREIGN KEY (relationships_id) REFERENCES relationships(id) ON DELETE CASCADE; -- -- Name: relationships fk_relationships_objecttypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY relationships ADD CONSTRAINT fk_relationships_objecttypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: schedulerobjectproperties fk_schedulerobjectproperties_schedulerobjects; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY schedulerobjectproperties ADD CONSTRAINT fk_schedulerobjectproperties_schedulerobjects FOREIGN KEY (schedulerobjects_id) REFERENCES schedulerobjects(id) ON DELETE CASCADE; -- -- Name: schedulerobjects fk_schedulerobjects_objectypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY schedulerobjects ADD CONSTRAINT fk_schedulerobjects_objectypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: updateobjectproperties fk_updateobjectproperties_updateobjects; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY updateobjectproperties ADD CONSTRAINT fk_updateobjectproperties_updateobjects FOREIGN KEY (updateobjects_id) REFERENCES updateobjects(id) ON DELETE CASCADE; -- -- Name: updateobjects fk_updateobjects_objecttypes; Type: FK CONSTRAINT; Schema: openidm; Owner: openidm -- ALTER TABLE ONLY updateobjects ADD CONSTRAINT fk_updateobjects_objecttypes FOREIGN KEY (objecttypes_id) REFERENCES objecttypes(id) ON DELETE CASCADE; -- -- Name: fridam; Type: ACL; Schema: -; Owner: openidm -- GRANT ALL ON SCHEMA fridam TO PUBLIC; -- -- Name: openidm; Type: ACL; Schema: -; Owner: openidm -- GRANT ALL ON SCHEMA openidm TO PUBLIC; -- -- PostgreSQL database dump complete --
<reponame>ayourtch/netsnmp-sys #include <net-snmp/net-snmp-config.h> #include <net-snmp/library/container.h> #include <net-snmp/agent/net-snmp-agent-includes.h>
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dubbo.rpc.protocol.tri; import org.apache.dubbo.rpc.CancellationContext; import org.apache.dubbo.rpc.model.MethodDescriptor; import org.apache.dubbo.rpc.model.PackableMethod; import org.apache.dubbo.rpc.protocol.tri.compressor.Compressor; import org.apache.dubbo.rpc.protocol.tri.compressor.Identity; import org.apache.dubbo.rpc.protocol.tri.stream.StreamUtils; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.HttpHeaderValues; import io.netty.handler.codec.http.HttpMethod; import io.netty.handler.codec.http2.DefaultHttp2Headers; import io.netty.util.AsciiString; import java.util.Map; public class RequestMetadata { public AsciiString scheme; public String application; public String service; public String version; public String group; public String address; public String acceptEncoding; public String timeout; public Compressor compressor; public CancellationContext cancellationContext; public MethodDescriptor method; public PackableMethod packableMethod; public Map<String, Object> attachments; public DefaultHttp2Headers toHeaders() { DefaultHttp2Headers header = new DefaultHttp2Headers(false); header.scheme(scheme) .authority(address) .method(HttpMethod.POST.asciiName()) .path("/" + service + "/" + method.getMethodName()) .set(TripleHeaderEnum.CONTENT_TYPE_KEY.getHeader(), TripleConstant.CONTENT_PROTO) .set(HttpHeaderNames.TE, HttpHeaderValues.TRAILERS); setIfNotNull(header, TripleHeaderEnum.TIMEOUT.getHeader(), timeout); if (!"1.0.0".equals(version)) { setIfNotNull(header, TripleHeaderEnum.SERVICE_VERSION.getHeader(), version); } setIfNotNull(header, TripleHeaderEnum.SERVICE_GROUP.getHeader(), group); setIfNotNull(header, TripleHeaderEnum.CONSUMER_APP_NAME_KEY.getHeader(), application); setIfNotNull(header, TripleHeaderEnum.GRPC_ACCEPT_ENCODING.getHeader(), acceptEncoding); if (!Identity.MESSAGE_ENCODING.equals(compressor.getMessageEncoding())) { setIfNotNull(header, TripleHeaderEnum.GRPC_ENCODING.getHeader(), compressor.getMessageEncoding()); } StreamUtils.convertAttachment(header, attachments); return header; } private void setIfNotNull(DefaultHttp2Headers headers, CharSequence key, CharSequence value) { if (value == null) { return; } headers.set(key, value); } }
# frozen_string_literal: true module ActiveWebhook class ErrorLog < ActiveRecord::Base include ActiveWebhook::Models::ErrorLogAdditions end end
var db = require('../config/db-schema'); exports.getAll = function(next) { db.Rsvp.find({}, function(err, docs) { if (err) handleErrorFor(err, next); return next(null, docs); }); }; exports.getByEmailAddress = function(emailAddress, next) { db.Rsvp.findOne({ emailAddress: emailAddress }, function(err, doc) { if (err) handlErrorFor(err, next); return next(null, doc); }); }; exports.getByRsvpId = function(id, next) { db.Rsvp.findOne({ rsvpId: id }, function(err, doc) { if (err) handlErrorFor(err, next); return next(null, doc); }); }; exports.getTotalCount = function(next) { db.Rsvp.count({}, function(err, count) { if (err) handleErrorFor(err, next); return next(null, count); }); }; exports.getAcceptGuestCount = function(next) { db.Rsvp.aggregate( { $match: { accept: true } }, { $group: { _id: null, guestCount: { $sum: "$guestCount" } } }, function (err, result) { if (err) return handleErrorFor(err, next); next(null, guestCountFrom(result)); } ); }; exports.getDeclineGuestCount = function(next) { db.Rsvp.aggregate( { $match: { decline: true } }, { $group: { _id: null, guestCount: { $sum: "$guestCount" } } }, function (err, result) { if (err) return handleErrorFor(err, next); next(null, guestCountFrom(result)); } ); }; exports.getIowaGuestCount = function(next) { db.Rsvp.aggregate( { $match: { iowa: true } }, { $group: { _id: null, guestCount: { $sum: "$guestCount" } } }, function (err, result) { if (err) return handleErrorFor(err, next); next(null, guestCountFrom(result)); } ); }; function handleErrorFor(err, next) { console.log('ERROR getting rsvp data.'); console.log(err); next(err); } function guestCountFrom(result) { if (result.length > 0) { return result[0].guestCount; } return 0; }
class ClassA: def print_info(self): print("This class is ClassA") class Cars: def print_info(self): print("This class is for Cars") class Sports: def print_info(self): print("This class is for Sports")
#!/bin/bash if [ -z "${PG_PASS}" ] then echo "$0: you need to specify PG_PASS=..." exit 1 fi if [ -z "$1" ] then echo "$0: you need to specify date YYYY-MM-DD as an argument" exit 2 fi if [ -z "$2" ] then echo "$0: you need to specify projects as an argument \"'Kubernetes', 'Prometheus'\"" exit 3 fi GHA2DB_LOCAL=1 GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 PG_DB=allprj ./runq util_sql/combined_projects_size.sql {{exclude_bots}} "`cat util_sql/exclude_bots.sql`" {{date}} "${1}" {{projects}} "${2}"
#!/usr/bin/env bash #TODO: Set up forgit -> https://github.com/wfxr/forgit AWESOME_FZF_LOCATION="/Users/admin/Git_Downloads/awesome-fzf/awesome-fzf.zsh" # morhetz/gruvbox theme for FZF export FZF_DEFAULT_OPTS='--color=bg+:#3c3836,bg:#32302f,spinner:#fb4934,hl:#928374,fg:#ebdbb2,header:#928374,info:#8ec07c,pointer:#fb4934,marker:#fb4934,fg+:#ebdbb2,prompt:#fb4934,hl+:#fb4934' #Test if user has binary installed function hasBinary() ( if cmd=$(command -v $1); then echo TRUE; else echo FALSE; fi ) function mdprint() { #npm install -g markdown-pdf markdown-pdf "$1" } function newtabi() { osascript \ -e 'tell application "iTerm2" to tell current window to set newWindow to (create tab with default profile)'\ -e "tell application \"iTerm2\" to tell current session of newWindow to write text \"$*\"" } function titlei { echo -ne "\033]0;"$*"\007" } function iterm { local ARGS itermCmds=( "newtabi" "titlei") cmd=$(printf "%s\n" "${itermCmds[@]}" | fzf --reverse) echo -n "enter chosen command args (if any) - enter for no args: " read -r ARGS eval "$cmd" "$ARGS" } function getFZFPreviewer() ( if [[ $(hasBinary bat) = TRUE ]]; then echo "bat --style=numbers --color=always --line-range :500 {}" else echo "cat {}" fi ) #List Awesome FZF Functions function fzf-awesome-list() { if [[ -f $AWESOME_FZF_LOCATION ]]; then selected=$(grep -E "(function fzf-)(.*?)[^(]*" $AWESOME_FZF_LOCATION | sed -e "s/function fzf-//" | sed -e "s/() {//" | grep -v "selected=" | fzf --reverse --prompt="awesome fzf functions > ") else echo "awesome fzf not found" fi case "$selected" in "") ;; #don't throw an exit error when we dont select anything *) "fzf-"$selected ;; esac } ###CHEATSHEETS### function cheatsheets() { if [[ "$#" -eq 0 ]]; then local selected=$(find ~/.cheatsheet -maxdepth 1 -type f | fzf --multi) nvim $selected else nvim -- ~/.cheatsheet/$1-cheatsheet.md fi } # Get cheat sheet of command from cheat.sh. h <cmd> h() { curl cheat.sh/${@:-cheat} # curl cheat.sh/$@ } path() { echo $PATH | tr ':' '\n' } function mkcd() { mkdir -p -- "$1" && cd -P -- "$1" || return; } #Create nice image of some code on your clipboard function codepic() { silicon --from-clipboard -l $1 -o ~/Downloads/Temp/$2.png --background '#fff0' --theme 'gruvbox' } function rm() ( local SOURCES local REPLY local ERRORMSG if [[ "$#" -eq 0 ]]; then echo -n "would you like to use the force young padawan? y/n: " read -r REPLY #prompt user interactively to select multiple files with tab + fuzzy search SOURCES=$(find . -maxdepth 1 | fzf --multi) #we use xargs to capture filenames with spaces in them properly if [[ $REPLY =~ ^[Yy]$ ]]; then echo "using the force..." echo "$SOURCES" | xargs -I '{}' rm -rf {} else echo "$SOURCES" | xargs -I '{}' rm {} fi echo "removed selected file/folder(s)" else ERRORMSG=$(command rm "$@" 2>&1) #if error msg is not empty, prompt the user if [ -n "$ERRORMSG" ]; then echo "$ERRORMSG" echo -n "rm failed, would you like to use the force young padawan? y/n: " read -r REPLY if [[ "$REPLY" =~ ^[Yy]$ ]]; then echo "using the force..." command rm -rf "$@" fi else echo "removed file/folder" fi fi ) # mv wrapper. if no command provided prompt user to # interactively select multiple files with tab + fuzzy search function mv() { local SOURCES local TARGET local REPLY local ERRORMSG if [[ "$#" -eq 0 ]]; then echo -n "would you like to use the force young padawan? y/n: " read -r REPLY # NOTE. THIS IS A ZSH IMPLEMENTATION ONLY FOR NOW. VARED IS ZSH BUILTIN. # FOR BASH use something like read -p "enter a directory: " vared -p 'to whence shall be the files moved. state your target: ' -c TARGET if [ -z "$TARGET" ]; then echo 'no target specified' return 1 fi # This corrects issue where directory is not found as ~ is # not expanded properly When stored directly from user input if echo "$TARGET" | grep -q "~"; then TARGET=$(echo $TARGET | sed 's/~//') TARGET=~/$TARGET fi SOURCES=$(find . -maxdepth 1 | fzf --multi) #we use xargs to capture filenames with spaces in them properly if [[ $REPLY =~ ^[Yy]$ ]]; then echo "using the force..." echo "$SOURCES" | xargs -I '{}' mv -f {} '/'$TARGET'/' else echo "$SOURCES" | xargs -I '{}' mv {} '/'$TARGET'/' fi echo "moved selected file/folder(s)" else ERRORMSG=$(command mv "$@" 2>&1) #if error msg is not empty, prompt the user if [ -n "$ERRORMSG" ]; then echo "$ERRORMSG" echo -n "mv failed, would you like to use the force young padawan? y/n: " read -r REPLY if [[ "$REPLY" =~ ^[Yy]$ ]]; then echo "using the force..." command mv -f "$@" fi fi fi } # Man without options will use fzf to select a page function man() ( MAN="/usr/bin/man" if [ -n "$1" ]; then $MAN "$@" return $? else $MAN -k . | fzf --reverse --prompt='Man> ' --preview="echo {1} | sed 's/(.*//' | xargs $MAN -P cat" | awk '{print $1}' | sed 's/(.*//' | xargs $MAN return $? fi ) list_man() { manlist=$(man -k . 2>/dev/null | awk 'BEGIN {FS=OFS="- "} /\([1|4]\)/ {gsub(/\([0-9]\)/, "", $1); if (!seen[$0]++) { print }}' | fzf --reverse --preview="echo {1,2} | sed 's/ (/./' | sed -E 's/\)\s*$//' | xargs $MAN" | awk '{print $1 "." $2}' | tr -d '()' | xargs -r $MAN) && man "$(echo "$manlist" | awk -F' |,' '{print $1}')" && unset manlist } # # Open current finder window in terminal cdf() { target=$(osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)') if [ "$target" != "" ]; then cd "$target" else echo 'No Finder window found' >&2 fi } # Scrape a single webpage with all assets function scrapeUrl() { wget --adjust-extension --convert-links --page-requisites --span-hosts --no-host-directories "$1" } aliases() { if [ -f ~/.config/zsh/scripts/aliases.sh ]; then nvim ~/.config/zsh/scripts/aliases.sh fi if [ -f ~/.config/zsh/scripts/aliases.local.sh ]; then nvim ~/.config/zsh/scripts/aliases.sh.local fi } funcs() { if [ -f ~/.config/zsh/functions/functions.sh ]; then nvim ~/.config/zsh/functions/functions.sh fi if [ -f ~/.config/zsh/functions/functions.sh.local ]; then nvim ~/.config/zsh/functions/functions.sh.local fi } # Search list of aliases/functions commands() { CMD=$( ( (alias) (functions | grep "()" | cut -d ' ' -f1 | grep -v "^_") ) | fzf | cut -d '=' -f1 ) eval $CMD } #############JAVA VERSION CHANGER############# #USE `setjdk <version>` #e.g --> setjdk 1.8 # set and change java versions setjdk() { if [ $# -ne 0 ]; then removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' if [ -n "${JAVA_HOME+x}" ]; then removeFromPath $JAVA_HOME fi export JAVA_HOME=$(/usr/libexec/java_home -v $@) export PATH=$JAVA_HOME/bin:$PATH fi } #Helper function for java path changer removeFromPath() { export PATH=$(echo $PATH | sed -E -e "s;:$1;;" -e "s;$1:?;;") } ###GIT FUNCTIONS#### gitnewrepo() { mkdir "$*" && cd "$*" && git init && hub create && touch README.md && echo "# " "$*" >>README.md && git add . && git commit -m "init" && git push -u origin HEAD; } gwc() { git clone --bare $1 $2 && cd $2 && git worktree add main && cd main; } gwa() { git worktree add "$*"; } gwr() { git worktree remove "$*"; } gwrf() { git worktree remove --force "$*"; } acp() { git add . git commit -m "$*" git push -u origin HEAD } #Interactive git commit with KOJI acpi() { git add . koji git push -u origin HEAD } # No arguments: `git status` # With arguments: acts like `git` g() { if [[ $# -gt 0 ]]; then git "$@" else git status fi } #git clone wrapper, `gcl` to clone from clipboard (macos) #this works --> `gcl git@github.com:beauwilliams/Dotfiles.git` #this works --> `gcl` # does not matter if the link you copied has "git clone" in front of it or not gcl() { if [[ $# -gt 0 ]]; then git clone "$*" && cd "$(basename "$1" .git)" elif [[ "$(pbpaste)" == *"clone"* ]]; then $(pbpaste) && cd "$(basename "$(pbpaste)" .git)" else git clone "$(pbpaste)" && cd "$(basename "$(pbpaste)" .git)" fi } # Local: # https://stackoverflow.com/questions/21151178/shell-script-to-check-if-specified-git-branch-exists # test if the branch is in the local repository. # return 1 if the branch exists in the local, or 0 if not. function is_in_local() { if [ $(git rev-parse --verify --quiet $1) ]; then echo "Branch exists locally" return 1 fi } # Remote: # Ref: https://stackoverflow.com/questions/8223906/how-to-check-if-remote-branch-exists-on-a-given-remote-repository # test if the branch is in the remote repository. # return 1 if its remote branch exists, or 0 if not. function is_in_remote() { if [ $(git branch --remotes | grep --extended-regexp "^[[:space:]]+origin/${1}$") ]; then echo "Branch exists on remote" return 1 fi } # Checkout to existing branch or else create new branch. gco <branch-name>. # Falls back to fuzzy branch selector list powered by fzf if no args. gco() { if git rev-parse --git-dir >/dev/null 2>&1; then if [[ "$#" -eq 0 ]]; then local branches branch branches=$(git branch -a) && branch=$(echo "$branches" | fzf-tmux -d $((2 + $(wc -l <<<"$branches"))) +m) && git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##") elif [ $(git rev-parse --verify --quiet $*) ] || [ $(git branch --remotes | grep --extended-regexp "^[[:space:]]+origin/${*}$") ]; then echo "Checking out to existing branch" git checkout "$*" else echo "Creating new branch" git checkout -b "$*" fi else echo "Can't check out or create branch. Not in a git repo" fi } #quickly preview item in finder ql() { qlmanage -p $1 ^ /dev/null >/dev/null & } # TODO: [beauwilliams] --> Add docker fzf list using 'docker container ls' command # Docker ssh-docker() { docker exec -it "$@" bash } function fzf-eval() { echo | fzf -q "$*" --preview-window=up:99% --preview="eval {q}" } execute-fzf() { if [ -z "$1" ]; then file="$(fzf --multi)" # if no cmd provided default to ls else file=$(eval "$1 | fzf --multi") # otherwise pipe output of that command into fzf fi case "$file" in "") echo "fzf cancelled" ;; *) eval "$2" "$file" ;; #execute the second provided command on the selected file esac } function fzf-find-files-alt() { selected="$(fzf --multi --reverse)" case "$selected" in "") echo "cancelled fzf" ;; *) eval "$EDITOR" "$selected" ;; esac } function fzf-find-files() { local file=$(fzf --multi --reverse) #get file from fzf if [[ $file ]]; then for prog in $(#open all the selected files echo $file ); do $EDITOR $prog; done else echo "cancelled fzf" fi } #Helper is_in_git_repo() { git rev-parse HEAD >/dev/null 2>&1 } #Helper fzf-down() { fzf --height 50% "$@" --border } function brewinstaller() { local inst=$(brew search | eval "fzf ${FZF_DEFAULT_OPTS} -m --header='[brew:install]'") if [[ $inst ]]; then for prog in $(echo $inst); do brew install $prog done fi } # Install (one or multiple) selected application(s) # using "brew search" as source input # mnemonic [B]rew [I]nstall [P]lugin brewip() { local inst=$(brew search | fzf -m) if [[ $inst ]]; then for prog in $(echo $inst); do brew install $prog; done fi } # Update (one or multiple) selected application(s) # mnemonic [B]rew [U]pdate [P]lugin brewup() { local upd=$(brew leaves | fzf -m) if [[ $upd ]]; then for prog in $(echo $upd); do brew upgrade $prog; done fi } # Delete (one or multiple) selected application(s) # mnemonic [B]rew [C]lean [P]lugin (e.g. uninstall) brewdp() { local uninst=$(brew leaves | fzf -m) if [[ $uninst ]]; then for prog in $(echo $uninst); do brew uninstall $prog; done fi } #brew uninstall list enter to uninstall package brew-uninstall() { execute-fzf "brew list" "brew uninstall" } alias bun='brew-uninstall' #brew uninstall list enter to uninstall cask brew-cask-uninstall() { execute-fzf "brew cask list" "brew cask uninstall" } alias bcun='brew-cask-uninstall' brew-outdated() { echo "==> Running brew update..." brew update >/dev/null echo "\n==> Outdated brews and casks" brew outdated } brew-upgrade() { echo "\n==> brew upgrade" brew upgrade echo "\n==> brew cask upgrade" brew upgrade --cask } alias bo="brew-outdated" alias bu="brew-upgrade" #fuzzy finder and open in vim ff() { $EDITOR $(find * -type f | fzf --multi --reverse --preview "$(getFZFPreviewer)") } # cd into the directory of the selected file fz() { local file local dir file=$(fzf +m -q "$1") && dir=$(dirname "$file") && cd "$dir" ls } # Find Dirs fd() { local dir dir=$(find ${1:-.} -path '*/\.*' -prune \ -o -type d -print 2>/dev/null | fzf +m) && cd "$dir" ls } # Find Dirs + Hidden fdh() { local dir dir=$(find ${1:-.} -type d 2>/dev/null | fzf +m) && cd "$dir" ls } # fdr - cd to selected parent directory f..() { local declare dirs=() get_parent_dirs() { if [[ -d "${1}" ]]; then dirs+=("$1"); else return; fi if [[ "${1}" == '/' ]]; then for _dir in "${dirs[@]}"; do echo $_dir; done else get_parent_dirs $(dirname "$1") fi } local DIR=$(get_parent_dirs $(realpath "${1:-$PWD}") | fzf-tmux --tac) cd "$DIR" ls } # Git commit history browser, when @param provided, its a shorthand for git commit gc() { if [[ $# -gt 0 ]]; then git commit -m "$*" else git log --graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" | fzf --ansi --no-sort --reverse --tiebreak=index --preview \ 'f() { set -- $(echo -- "$@" | grep -o "[a-f0-9]\{7\}"); [ $# -eq 0 ] || git show --color=always $1 | delta ; }; f {}' \ --bind "j:down,k:up,alt-j:preview-down,alt-k:preview-up,ctrl-f:preview-page-down,ctrl-b:preview-page-up,q:abort,ctrl-m:execute: (grep -o '[a-f0-9]\{7\}' | head -1 | xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF' {} FZF-EOF" --preview-window=right:60% fi } # get git commit sha # example usage: git rebase -i `fcs` commitids() { local commits commit commits=$(git log --color=always --pretty=oneline --abbrev-commit --reverse) && commit=$(echo "$commits" | fzf --tac +s +m -e --ansi --reverse) && echo -n $(echo "$commit" | sed "s/ .*//") } #picklist to checkout git branch (including remote branches), sorted by most recent commit, limit 30 last branches #OR just type branch "branchname" gbrl() { if [ $# -eq 0 ]; then local branches branch branches=$(git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format="%(refname:short)") && branch=$(echo "$branches" | fzf-tmux -d $((2 + $(wc -l <<<"$branches"))) +m) && git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##") else git checkout "$@" fi } #Select git branches including remote and checkout to them gbr() { if [ $# -eq 0 ]; then local branches branch branches=$(git branch -a) && branch=$(echo "$branches" | fzf-tmux -d $((2 + $(wc -l <<<"$branches"))) +m) && git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##") else git checkout "$@" fi } # stashes - easier way to deal with stashes # enter shows you the contents of the stash # ctrl-d shows a diff of the stash against your current HEAD # ctrl-b checks the stash out as a branch, for easier merging #from here: https://github.com/nikitavoloboev/dotfiles/blob/master/zsh/functions/fzf-functions.zsh #https://github.com/nikitavoloboev/dotfiles/blob/master/zsh/functions/git-functions.zsh stashes() { local out q k sha while out=$( git stash list --pretty="%C(yellow)%h %>(14)%Cgreen%cr %C(blue)%gs" | fzf --ansi --no-sort --query="$q" --print-query \ --expect=ctrl-d,ctrl-b ); do mapfile -t out <<<"$out" q="${out[0]}" k="${out[1]}" sha="${out[-1]}" sha="${sha%% *}" [[ -z "$sha" ]] && continue if [[ "$k" == 'ctrl-d' ]]; then git diff $sha elif [[ "$k" == 'ctrl-b' ]]; then git stash branch "stash-$sha" $sha break else git stash show -p $sha fi done } #Show git staging area (git status) gs() { git rev-parse --git-dir >/dev/null 2>&1 || { echo "You are not in a git repository" && return; } local selected selected=$(git -c color.status=always status --short | fzf --height 50% "$@" --preview-window right:70% --border -m --ansi --nth 2..,.. \ --preview '(git diff --color=always -- {-1} | delta | sed 1,4d; cat {-1}) | head -500' | cut -c4- | sed 's/.* -> //') if [[ $selected ]]; then for prog in $selected; do git add "$prog"; done fi } # gs() { # git rev-parse --git-dir > /dev/null 2>&1 || { echo "You are not in a git repository" && return } # local selected # selected=$(git -c color.status=always status --short | # fzf --height 50% "$@" --border -m --ansi --nth 2..,.. \ # --preview '(git diff --color=always -- {-1} | sed 1,4d; cat {-1}) | head -500' | # cut -c4- | sed 's/.* -> //') # if [[ $selected ]]; then # for prog in $(echo $selected); # do; $EDITOR $prog; done; # fi # } grr() { is_in_git_repo || return git remote -v | awk '{print $1 "\t" $2}' | uniq | fzf-down --tac \ --preview 'git log --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" {1} | head -200' | cut -d$'\t' -f1 } # checkout git commit checkout() { local commits commit commits=$(git log --pretty=oneline --abbrev-commit --reverse) && commit=$(echo "$commits" | fzf --tac +s +m -e) && git checkout $(echo "$commit" | sed "s/ .*//") } fbr() { is_in_git_repo || return git branch -a --color=always | grep -v '/HEAD\s' | sort | fzf-down --ansi --multi --tac --preview-window right:70% \ --preview 'git log --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1) | head -'$LINES | sed 's/^..//' | cut -d' ' -f1 | sed 's#^remotes/##' } tags() { is_in_git_repo || return git tag --sort -version:refname | fzf-down --multi --preview-window right:70% \ --preview 'git show --color=always {} | head -'$LINES } # fh - Repeat history, assumes zsh history() { print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//') } # Search env variables vars() { local out out=$(env | fzf) echo $(echo $out | cut -d= -f2) } # Kill process fkill() { local pid pid=$(ps -ef | sed 1d | fzf -m | awk '{print $2}') if [ "x$pid" != "x" ]; then echo $pid | xargs kill -${1:-9} fi } # Restart my buggy mouse app restartmouse() ( PID=$(ps -eaf | grep LogiMgrDaemon | grep -v grep | awk '{print $2}') if [[ "" != "$PID" ]]; then echo "killing LogiMgrDaemon with PID $PID" kill -9 "$PID" fi ) #Zip files # archive() { # zip -r "$1".zip -i "$1" ; # } # compress <file/dir> - Compress <file/dir>. compress() { dirPriorToExe=$(pwd) dirName=$(dirname $1) baseName=$(basename $1) if [ -f $1 ]; then echo "It was a file change directory to $dirName" cd $dirName case $2 in tar.bz2) tar cjf $baseName.tar.bz2 $baseName ;; tar.gz) tar czf $baseName.tar.gz $baseName ;; gz) gzip $baseName ;; tar) tar -cvvf $baseName.tar $baseName ;; zip) zip -r $baseName.zip $baseName ;; *) echo "Method not passed compressing using tar.bz2" tar cjf $baseName.tar.bz2 $baseName ;; esac echo "Back to Directory $dirPriorToExe" cd $dirPriorToExe else if [ -d $1 ]; then echo "It was a Directory change directory to $dirName" cd $dirName case $2 in tar.bz2) tar cjf $baseName.tar.bz2 $baseName ;; tar.gz) tar czf $baseName.tar.gz $baseName ;; gz) gzip -r $baseName ;; tar) tar -cvvf $baseName.tar $baseName ;; zip) zip -r $baseName.zip $baseName ;; *) echo "Method not passed compressing using tar.bz2" tar cjf $baseName.tar.bz2 $baseName ;; esac echo "Back to Directory $dirPriorToExe" cd $dirPriorToExe else echo "'$1' is not a valid file/folder" fi fi echo "Done" echo "###########################################" } # TODO: Write a Go CLI that wraps extract and compress functions + more. # extract <file.tar> - Extract <file.tar>. extract() { local remove_archive local success local file_name local extract_dir if (($# == 0)); then echo "Usage: extract [-option] [file ...]" echo echo Options: echo " -r, --remove Remove archive." fi remove_archive=1 if [[ "$1" == "-r" ]] || [[ "$1" == "--remove" ]]; then remove_archive=0 shift fi while (($# > 0)); do if [[ ! -f "$1" ]]; then echo "extract: '$1' is not a valid file" 1>&2 shift continue fi success=0 file_name="$(basename "$1")" extract_dir="$(echo "$file_name" | sed "s/\.${1##*.}//g")" case "$1" in *.tar.gz | *.tgz) [ -z $commands[pigz] ] && tar zxvf "$1" || pigz -dc "$1" | tar xv ;; *.tar.bz2 | *.tbz | *.tbz2) tar xvjf "$1" ;; *.tar.xz | *.txz) tar --xz --help &>/dev/null && tar --xz -xvf "$1" || xzcat "$1" | tar xvf - ;; *.tar.zma | *.tlz) tar --lzma --help &>/dev/null && tar --lzma -xvf "$1" || lzcat "$1" | tar xvf - ;; *.tar) tar xvf "$1" ;; *.gz) [ -z $commands[pigz] ] && gunzip "$1" || pigz -d "$1" ;; *.bz2) bunzip2 "$1" ;; *.xz) unxz "$1" ;; *.lzma) unlzma "$1" ;; *.Z) uncompress "$1" ;; *.zip | *.war | *.jar | *.sublime-package) unzip "$1" -d $extract_dir ;; *.rar) unrar x -ad "$1" ;; *.7z) 7za x "$1" ;; *.deb) mkdir -p "$extract_dir/control" mkdir -p "$extract_dir/data" cd "$extract_dir" ar vx "../${1}" >/dev/null cd control tar xzvf ../control.tar.gz cd ../data tar xzvf ../data.tar.gz cd .. rm *.tar.gz debian-binary cd .. ;; *) echo "extract: '$1' cannot be extracted" 1>&2 success=1 ;; esac ((success = $success > 0 ? $success : $?)) (($success == 0)) && (($remove_archive == 0)) && rm "$1" shift done } tmux-2pane() { getHelp() ( echo "Creates a new detached tmux session with 2 panes" echo "With an option to run a command in left and right pane" echo " " echo 'USAGE: ./tmux-2pane.sh foo_bar "echo foo" "echo bar"' echo 'Creates a session named foo_bar, running echo commands in the left and right panes respectively' echo " " echo "options:" echo "-h, --help show brief help" exit 0 ) if [[ "$#" -eq 0 ]]; then getHelp exit else # while test $# -gt 0; do case "$1" in -h | --help) getHelp shift ;; *) tmux new-session -s "$1" -d echo -n "Would you like to create a vertical or horizontal split (enter for h) v/h?: " read -r REPLY if [[ $REPLY == ^[Vv]$ ]]; then tmux split-window -v else tmux split-window -h fi if [[ "$#" -gt 1 ]]; then tmux send-keys -t "$1"".0" "$2" ENTER fi if [[ "$#" -gt 2 ]]; then tmux send-keys -t "$1"".1" "$3" ENTER fi ;; esac # done fi echo -n "Would you like to attach to the tmux session ""$1"" (enter for n) y/n?: " read -r REPLY if [[ $REPLY =~ ^[Yy]$ ]]; then tmux -2 attach-session -d fi }
#!/usr/bin/env bash set -xeuo pipefail # check that /opt/conda has correct permissions touch /opt/conda/bin/test_conda_forge # check that conda is activated conda info # check that we can install a conda package conda install --yes --quiet conda-forge-pinning -c conda-forge touch /home/conda/feedstock_root/build_artifacts/conda-forge-build-done
SELECT item.name, AVG(price.amount) as avg_price FROM item JOIN price ON item.id = price.item_id WHERE price.store_id = 1 GROUP BY item.name;
#!/bin/bash DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) if [ -f $DIR/../conf/slaves ]; then slaves=`cat $DIR/../conf/slaves | sed '/^#/ d'` else slaves="localhost" fi for slave in $slaves; do ssh $slave source $DIR/stop-nam.sh done
#!/bin/sh ./server $@
# $OpenBSD: sftp-badcmds.sh,v 1.4 2009/08/13 01:11:55 djm Exp $ # Placed in the Public Domain. tid="sftp invalid commands" DATA=/bin/ls${EXEEXT} DATA2=/bin/sh${EXEEXT} NONEXIST=/NONEXIST.$$ COPY=${OBJ}/copy GLOBFILES=`(cd /bin;echo l*)` rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd rm -f ${COPY} verbose "$tid: get nonexistent" echo "get $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ || fail "get nonexistent failed" test -f ${COPY} && fail "existing copy after get nonexistent" rm -f ${COPY}.dd/* verbose "$tid: glob get to nonexistent directory" echo "get /bin/l* $NONEXIST" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ || fail "get nonexistent failed" for x in $GLOBFILES; do test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent" done rm -f ${COPY} verbose "$tid: put nonexistent" echo "put $NONEXIST $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put nonexistent failed" test -f ${COPY} && fail "existing copy after put nonexistent" rm -f ${COPY}.dd/* verbose "$tid: glob put to nonexistent directory" echo "put /bin/l* ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put nonexistent failed" for x in $GLOBFILES; do test -f ${COPY}.dd/$x && fail "existing copy after nonexistent" done rm -f ${COPY} verbose "$tid: rename nonexistent" echo "rename $NONEXIST ${COPY}.1" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ || fail "rename nonexist failed" test -f ${COPY}.1 && fail "file exists after rename nonexistent" rm -rf ${COPY} ${COPY}.dd cp $DATA $COPY mkdir ${COPY}.dd verbose "$tid: rename target exists (directory)" echo "rename $COPY ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ || fail "rename target exists (directory) failed" test -f ${COPY} || fail "oldname missing after rename target exists (directory)" test -d ${COPY}.dd || fail "newname missing after rename target exists (directory)" cmp $DATA ${COPY} >/dev/null 2>&1 || fail "corrupted oldname after rename target exists (directory)" rm -f ${COPY}.dd/* rm -rf ${COPY} cp ${DATA2} ${COPY} verbose "$tid: glob put files to local file" echo "put /bin/l* $COPY" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 cmp ${DATA2} ${COPY} || fail "put successed when it should have failed" rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd
/* eslint-disable no-void */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable global-require */ const semver = require('semver'); const appPaths = require('./app-paths'); let hasNewQuasarPkg; function canResolveNewQuasarPkg() { if (hasNewQuasarPkg !== undefined) { return hasNewQuasarPkg; } let isResolved = true; try { require.resolve('@quasar/app-webpack/package.json', { paths: [appPaths.appDir], }); } catch (e) { isResolved = false; } return isResolved; } function getPackageName(packageName) { if (packageName === '@quasar/app') { return hasNewQuasarPkg ? '@quasar/app-webpack' : packageName; } return packageName; } const getPackageJson = (pkgName, folder = appPaths.appDir) => { try { return require( require.resolve(`${pkgName}/package.json`, { paths: [folder], }), ); } catch (e) { return void 0; } }; hasNewQuasarPkg = canResolveNewQuasarPkg(); module.exports.hasNewQuasarPkg = hasNewQuasarPkg; module.exports.hasPackage = function hasPackage(packageName, semverCondition) { const name = getPackageName(packageName); const json = getPackageJson(name); if (json === void 0) { return false; } return semverCondition !== void 0 ? semver.satisfies(json.version, semverCondition) : true; }; module.exports.getPackageVersion = function getPackageVersion(packageName) { const name = getPackageName(packageName); const json = getPackageJson(name); return json !== void 0 ? json.version : void 0; };
<filename>kernel/drivers/net/wireless/rtl8723bs/hal/OUTSRC/rtl8723b/HalHWImg8723B_RF.c /****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * 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, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA * * ******************************************************************************/ #include "Mp_Precomp.h" #include "../phydm_precomp.h" #if (RTL8723B_SUPPORT == 1) static BOOLEAN CheckPositive( IN PDM_ODM_T pDM_Odm, IN const u4Byte Condition1, IN const u4Byte Condition2 ) { u1Byte _BoardType = ((pDM_Odm->BoardType & BIT4) >> 4) << 0 | // _GLNA ((pDM_Odm->BoardType & BIT3) >> 3) << 1 | // _GPA ((pDM_Odm->BoardType & BIT7) >> 7) << 2 | // _ALNA ((pDM_Odm->BoardType & BIT6) >> 6) << 3 | // _APA ((pDM_Odm->BoardType & BIT2) >> 2) << 4; // _BT u4Byte cond1 = Condition1, cond2 = Condition2; u4Byte driver1 = pDM_Odm->CutVersion << 24 | pDM_Odm->SupportPlatform << 16 | pDM_Odm->PackageType << 12 | pDM_Odm->SupportInterface << 8 | _BoardType; u4Byte driver2 = pDM_Odm->TypeGLNA << 0 | pDM_Odm->TypeGPA << 8 | pDM_Odm->TypeALNA << 16 | pDM_Odm->TypeAPA << 24; ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_TRACE, ("===> [8812A] CheckPositive (cond1, cond2) = (0x%X 0x%X)\n", cond1, cond2)); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_TRACE, ("===> [8812A] CheckPositive (driver1, driver2) = (0x%X 0x%X)\n", driver1, driver2)); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_TRACE, (" (Platform, Interface) = (0x%X, 0x%X)\n", pDM_Odm->SupportPlatform, pDM_Odm->SupportInterface)); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_TRACE, (" (Board, Package) = (0x%X, 0x%X)\n", pDM_Odm->BoardType, pDM_Odm->PackageType)); //============== Value Defined Check ===============// //QFN Type [15:12] and Cut Version [27:24] need to do value check if(((cond1 & 0x0000F000) != 0) &&((cond1 & 0x0000F000) != (driver1 & 0x0000F000))) return FALSE; if(((cond1 & 0x0F000000) != 0) &&((cond1 & 0x0F000000) != (driver1 & 0x0F000000))) return FALSE; //=============== Bit Defined Check ================// // We don't care [31:28] and [23:20] // cond1 &= 0x000F0FFF; driver1 &= 0x000F0FFF; if ((cond1 & driver1) == cond1) { u4Byte bitMask = 0; if ((cond1 & 0x0F) == 0) // BoardType is DONTCARE return TRUE; if ((cond1 & BIT0) != 0) //GLNA bitMask |= 0x000000FF; if ((cond1 & BIT1) != 0) //GPA bitMask |= 0x0000FF00; if ((cond1 & BIT2) != 0) //ALNA bitMask |= 0x00FF0000; if ((cond1 & BIT3) != 0) //APA bitMask |= 0xFF000000; if ((cond2 & bitMask) == (driver2 & bitMask)) // BoardType of each RF path is matched return TRUE; else return FALSE; } else { return FALSE; } } static BOOLEAN CheckNegative( IN PDM_ODM_T pDM_Odm, IN const u4Byte Condition1, IN const u4Byte Condition2 ) { return TRUE; } /****************************************************************************** * RadioA.TXT ******************************************************************************/ u4Byte Array_MP_8723B_RadioA[] = { 0x000, 0x00010000, 0x0B0, 0x000DFFE0, 0x0FE, 0x00000000, 0x0FE, 0x00000000, 0x0FE, 0x00000000, 0x0B1, 0x00000018, 0x0FE, 0x00000000, 0x0FE, 0x00000000, 0x0FE, 0x00000000, 0x0B2, 0x00084C00, 0x0B5, 0x0000D2CC, 0x0B6, 0x000925AA, 0x0B7, 0x00000010, 0x0B8, 0x0000907F, 0x05C, 0x00000002, 0x07C, 0x00000002, 0x07E, 0x00000005, 0x08B, 0x0006FC00, 0x0B0, 0x000FF9F0, 0x01C, 0x000739D2, 0x01E, 0x00000000, 0x0DF, 0x00000780, 0x050, 0x00067435, 0x80002000,0x00000000,0x40000000,0x00000000, 0x051, 0x0006B10E, 0x90003000,0x00000000,0x40000000,0x00000000, 0x051, 0x0006B10E, 0x90004000,0x00000000,0x40000000,0x00000000, 0x051, 0x0006B10E, 0xA0000000,0x00000000, 0x051, 0x0006B04E, 0xB0000000,0x00000000, 0x052, 0x000007D2, 0x053, 0x00000000, 0x054, 0x00050400, 0x055, 0x0004026E, 0x0DD, 0x0000004C, 0x070, 0x00067435, 0x80002000,0x00000000,0x40000000,0x00000000, 0x071, 0x0006B10E, 0x90003000,0x00000000,0x40000000,0x00000000, 0x071, 0x0006B10E, 0x90004000,0x00000000,0x40000000,0x00000000, 0x071, 0x0006B10E, 0xA0000000,0x00000000, 0x071, 0x0006B04E, 0xB0000000,0x00000000, 0x072, 0x000007D2, 0x073, 0x00000000, 0x074, 0x00050400, 0x075, 0x0004026E, 0x0EF, 0x00000100, 0x034, 0x0000ADD7, 0x035, 0x00005C00, 0x034, 0x00009DD4, 0x035, 0x00005000, 0x034, 0x00008DD1, 0x035, 0x00004400, 0x034, 0x00007DCE, 0x035, 0x00003800, 0x034, 0x00006CD1, 0x035, 0x00004400, 0x034, 0x00005CCE, 0x035, 0x00003800, 0x034, 0x000048CE, 0x035, 0x00004400, 0x034, 0x000034CE, 0x035, 0x00003800, 0x034, 0x00002451, 0x035, 0x00004400, 0x034, 0x0000144E, 0x035, 0x00003800, 0x034, 0x00000051, 0x035, 0x00004400, 0x0EF, 0x00000000, 0x0EF, 0x00000100, 0x0ED, 0x00000010, 0x044, 0x0000ADD7, 0x044, 0x00009DD4, 0x044, 0x00008DD1, 0x044, 0x00007DCE, 0x044, 0x00006CC1, 0x044, 0x00005CCE, 0x044, 0x000044D1, 0x044, 0x000034CE, 0x044, 0x00002451, 0x044, 0x0000144E, 0x044, 0x00000051, 0x0EF, 0x00000000, 0x0ED, 0x00000000, 0x07F, 0x00020080, 0x0EF, 0x00002000, 0x03B, 0x000380EF, 0x03B, 0x000302FE, 0x03B, 0x00028CE6, 0x03B, 0x000200BC, 0x03B, 0x000188A5, 0x03B, 0x00010FBC, 0x03B, 0x00008F71, 0x03B, 0x00000900, 0x0EF, 0x00000000, 0x0ED, 0x00000001, 0x040, 0x000380EF, 0x040, 0x000302FE, 0x040, 0x00028CE6, 0x040, 0x000200BC, 0x040, 0x000188A5, 0x040, 0x00010FBC, 0x040, 0x00008F71, 0x040, 0x00000900, 0x0ED, 0x00000000, 0x082, 0x00080000, 0x083, 0x00008000, 0x084, 0x00048D80, 0x085, 0x00068000, 0x0A2, 0x00080000, 0x0A3, 0x00008000, 0x0A4, 0x00048D80, 0x0A5, 0x00068000, 0x0ED, 0x00000002, 0x0EF, 0x00000002, 0x056, 0x00000032, 0x076, 0x00000032, 0x001, 0x00000780, }; void ODM_ReadAndConfig_MP_8723B_RadioA( IN PDM_ODM_T pDM_Odm ) { u4Byte i = 0; u1Byte cCond; BOOLEAN bMatched = TRUE, bSkipped = FALSE; //ask by Luke.Lee u4Byte ArrayLen = sizeof(Array_MP_8723B_RadioA)/sizeof(u4Byte); pu4Byte Array = Array_MP_8723B_RadioA; ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD, ("===> ODM_ReadAndConfig_MP_8723B_RadioA\n")); while(( i+1) < ArrayLen) { u4Byte v1 = Array[i]; u4Byte v2 = Array[i+1]; if(v1 & (BIT31|BIT30)) //positive & negative condition { if(v1 & BIT31) // positive condition { cCond = (u1Byte)((v1 & (BIT29|BIT28)) >> 28); if(cCond == COND_ENDIF) //end { bMatched = TRUE; bSkipped = FALSE; } else if(cCond == COND_ELSE) //else { bMatched = bSkipped?FALSE:TRUE; } else //if , else if { if(bSkipped) bMatched = FALSE; else { if(CheckPositive(pDM_Odm, v1, v2)) { bMatched = TRUE; bSkipped = TRUE; } else { bMatched = FALSE; bSkipped = FALSE; } } } } else if(v1 & BIT30){ //negative condition //do nothing } } else { if(bMatched) odm_ConfigRF_RadioA_8723B(pDM_Odm, v1, v2); } i = i + 2; } } u4Byte ODM_GetVersion_MP_8723B_RadioA(void) { return 12; } /****************************************************************************** * TxPowerTrack_AP.TXT ******************************************************************************/ #if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) u1Byte gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_AP_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 1, 2, 2, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, }; u1Byte gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_AP_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 16, 17, 17, 18, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_AP_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 11, 11, 12, 13, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_AP_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_AP_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; #endif void ODM_ReadAndConfig_MP_8723B_TxPowerTrack_AP( IN PDM_ODM_T pDM_Odm ) { #if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL)) PODM_RF_CAL_T pRFCalibrateInfo = &(pDM_Odm->RFCalibrateInfo); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD, ("===> ODM_ReadAndConfig_MP_MP_8723B\n")); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_P, gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_N, gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_P, gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_N, gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_P, gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_N, gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_P, gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_N, gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P, gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N, gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P, gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N, gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_AP_8723B, DELTA_SWINGIDX_SIZE*3); #endif } /****************************************************************************** * TxPowerTrack_PCIE.TXT ******************************************************************************/ #if DEV_BUS_TYPE == RT_PCI_INTERFACE u1Byte gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_PCIE_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 1, 2, 2, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, }; u1Byte gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_PCIE_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 16, 17, 17, 18, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_PCIE_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 11, 11, 12, 13, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_PCIE_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_PCIE_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; #endif void ODM_ReadAndConfig_MP_8723B_TxPowerTrack_PCIE( IN PDM_ODM_T pDM_Odm ) { #if DEV_BUS_TYPE == RT_PCI_INTERFACE PODM_RF_CAL_T pRFCalibrateInfo = &(pDM_Odm->RFCalibrateInfo); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD, ("===> ODM_ReadAndConfig_MP_MP_8723B\n")); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_P, gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_N, gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_P, gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_N, gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_P, gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_N, gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_P, gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_N, gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P, gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N, gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P, gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N, gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_PCIE_8723B, DELTA_SWINGIDX_SIZE*3); #endif } /****************************************************************************** * TxPowerTrack_SDIO.TXT ******************************************************************************/ #if DEV_BUS_TYPE == RT_SDIO_INTERFACE u1Byte gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_SDIO_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 1, 2, 2, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, }; u1Byte gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_SDIO_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 16, 17, 17, 18, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_SDIO_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 11, 11, 12, 13, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_SDIO_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 11, 11, 12, 12, 13, 13, 14, 15, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_SDIO_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; #endif void ODM_ReadAndConfig_MP_8723B_TxPowerTrack_SDIO( IN PDM_ODM_T pDM_Odm ) { #if DEV_BUS_TYPE == RT_SDIO_INTERFACE PODM_RF_CAL_T pRFCalibrateInfo = &(pDM_Odm->RFCalibrateInfo); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD, ("===> ODM_ReadAndConfig_MP_MP_8723B\n")); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_P, gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_N, gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_P, gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_N, gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_P, gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_N, gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_P, gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_N, gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P, gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N, gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P, gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N, gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_SDIO_8723B, DELTA_SWINGIDX_SIZE*3); #endif } /****************************************************************************** * TxPowerTrack_USB.TXT ******************************************************************************/ #if DEV_BUS_TYPE == RT_USB_INTERFACE u1Byte gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_USB_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 1, 2, 2, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, }; u1Byte gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_USB_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 16, 17, 17, 18, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 19, 20, 20, 20}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_USB_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 1, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 6, 7, 7, 8, 8, 9, 10, 11, 11, 12, 13, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 10, 11, 11, 12, 13, 14, 14, 15, 15, 16, 16, 16, 16, 16, 16, 16}, }; u1Byte gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_USB_8723B[][DELTA_SWINGIDX_SIZE] = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, {0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 21, 21, 21}, }; u1Byte gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; u1Byte gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_USB_8723B[] = {0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 15}; #endif void ODM_ReadAndConfig_MP_8723B_TxPowerTrack_USB( IN PDM_ODM_T pDM_Odm ) { #if DEV_BUS_TYPE == RT_USB_INTERFACE PODM_RF_CAL_T pRFCalibrateInfo = &(pDM_Odm->RFCalibrateInfo); ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD, ("===> ODM_ReadAndConfig_MP_MP_8723B\n")); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_P, gDeltaSwingTableIdx_MP_2GA_P_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GA_N, gDeltaSwingTableIdx_MP_2GA_N_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_P, gDeltaSwingTableIdx_MP_2GB_P_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GB_N, gDeltaSwingTableIdx_MP_2GB_N_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_P, gDeltaSwingTableIdx_MP_2GCCKA_P_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKA_N, gDeltaSwingTableIdx_MP_2GCCKA_N_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_P, gDeltaSwingTableIdx_MP_2GCCKB_P_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_2GCCKB_N, gDeltaSwingTableIdx_MP_2GCCKB_N_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_P, gDeltaSwingTableIdx_MP_5GA_P_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GA_N, gDeltaSwingTableIdx_MP_5GA_N_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_P, gDeltaSwingTableIdx_MP_5GB_P_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE*3); ODM_MoveMemory(pDM_Odm, pRFCalibrateInfo->DeltaSwingTableIdx_5GB_N, gDeltaSwingTableIdx_MP_5GB_N_TxPowerTrack_USB_8723B, DELTA_SWINGIDX_SIZE*3); #endif } /****************************************************************************** * TXPWR_LMT.TXT ******************************************************************************/ pu1Byte Array_MP_8723B_TXPWR_LMT[] = { "FCC", "2.4G", "20M", "CCK", "1T", "01", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "01", "32", "MKK", "2.4G", "20M", "CCK", "1T", "01", "32", "FCC", "2.4G", "20M", "CCK", "1T", "02", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "02", "32", "MKK", "2.4G", "20M", "CCK", "1T", "02", "32", "FCC", "2.4G", "20M", "CCK", "1T", "03", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "03", "32", "MKK", "2.4G", "20M", "CCK", "1T", "03", "32", "FCC", "2.4G", "20M", "CCK", "1T", "04", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "04", "32", "MKK", "2.4G", "20M", "CCK", "1T", "04", "32", "FCC", "2.4G", "20M", "CCK", "1T", "05", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "05", "32", "MKK", "2.4G", "20M", "CCK", "1T", "05", "32", "FCC", "2.4G", "20M", "CCK", "1T", "06", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "06", "32", "MKK", "2.4G", "20M", "CCK", "1T", "06", "32", "FCC", "2.4G", "20M", "CCK", "1T", "07", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "07", "32", "MKK", "2.4G", "20M", "CCK", "1T", "07", "32", "FCC", "2.4G", "20M", "CCK", "1T", "08", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "08", "32", "MKK", "2.4G", "20M", "CCK", "1T", "08", "32", "FCC", "2.4G", "20M", "CCK", "1T", "09", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "09", "32", "MKK", "2.4G", "20M", "CCK", "1T", "09", "32", "FCC", "2.4G", "20M", "CCK", "1T", "10", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "10", "32", "MKK", "2.4G", "20M", "CCK", "1T", "10", "32", "FCC", "2.4G", "20M", "CCK", "1T", "11", "32", "ETSI", "2.4G", "20M", "CCK", "1T", "11", "32", "MKK", "2.4G", "20M", "CCK", "1T", "11", "32", "FCC", "2.4G", "20M", "CCK", "1T", "12", "63", "ETSI", "2.4G", "20M", "CCK", "1T", "12", "32", "MKK", "2.4G", "20M", "CCK", "1T", "12", "32", "FCC", "2.4G", "20M", "CCK", "1T", "13", "63", "ETSI", "2.4G", "20M", "CCK", "1T", "13", "32", "MKK", "2.4G", "20M", "CCK", "1T", "13", "32", "FCC", "2.4G", "20M", "CCK", "1T", "14", "63", "ETSI", "2.4G", "20M", "CCK", "1T", "14", "63", "MKK", "2.4G", "20M", "CCK", "1T", "14", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "01", "28", "ETSI", "2.4G", "20M", "OFDM", "1T", "01", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "01", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "02", "28", "ETSI", "2.4G", "20M", "OFDM", "1T", "02", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "02", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "03", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "03", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "03", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "04", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "04", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "04", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "05", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "05", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "05", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "06", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "06", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "06", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "07", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "07", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "07", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "08", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "08", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "08", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "09", "32", "ETSI", "2.4G", "20M", "OFDM", "1T", "09", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "09", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "10", "28", "ETSI", "2.4G", "20M", "OFDM", "1T", "10", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "10", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "11", "28", "ETSI", "2.4G", "20M", "OFDM", "1T", "11", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "11", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "12", "63", "ETSI", "2.4G", "20M", "OFDM", "1T", "12", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "12", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "13", "63", "ETSI", "2.4G", "20M", "OFDM", "1T", "13", "32", "MKK", "2.4G", "20M", "OFDM", "1T", "13", "32", "FCC", "2.4G", "20M", "OFDM", "1T", "14", "63", "ETSI", "2.4G", "20M", "OFDM", "1T", "14", "63", "MKK", "2.4G", "20M", "OFDM", "1T", "14", "63", "FCC", "2.4G", "20M", "HT", "1T", "01", "26", "ETSI", "2.4G", "20M", "HT", "1T", "01", "32", "MKK", "2.4G", "20M", "HT", "1T", "01", "32", "FCC", "2.4G", "20M", "HT", "1T", "02", "26", "ETSI", "2.4G", "20M", "HT", "1T", "02", "32", "MKK", "2.4G", "20M", "HT", "1T", "02", "32", "FCC", "2.4G", "20M", "HT", "1T", "03", "32", "ETSI", "2.4G", "20M", "HT", "1T", "03", "32", "MKK", "2.4G", "20M", "HT", "1T", "03", "32", "FCC", "2.4G", "20M", "HT", "1T", "04", "32", "ETSI", "2.4G", "20M", "HT", "1T", "04", "32", "MKK", "2.4G", "20M", "HT", "1T", "04", "32", "FCC", "2.4G", "20M", "HT", "1T", "05", "32", "ETSI", "2.4G", "20M", "HT", "1T", "05", "32", "MKK", "2.4G", "20M", "HT", "1T", "05", "32", "FCC", "2.4G", "20M", "HT", "1T", "06", "32", "ETSI", "2.4G", "20M", "HT", "1T", "06", "32", "MKK", "2.4G", "20M", "HT", "1T", "06", "32", "FCC", "2.4G", "20M", "HT", "1T", "07", "32", "ETSI", "2.4G", "20M", "HT", "1T", "07", "32", "MKK", "2.4G", "20M", "HT", "1T", "07", "32", "FCC", "2.4G", "20M", "HT", "1T", "08", "32", "ETSI", "2.4G", "20M", "HT", "1T", "08", "32", "MKK", "2.4G", "20M", "HT", "1T", "08", "32", "FCC", "2.4G", "20M", "HT", "1T", "09", "32", "ETSI", "2.4G", "20M", "HT", "1T", "09", "32", "MKK", "2.4G", "20M", "HT", "1T", "09", "32", "FCC", "2.4G", "20M", "HT", "1T", "10", "26", "ETSI", "2.4G", "20M", "HT", "1T", "10", "32", "MKK", "2.4G", "20M", "HT", "1T", "10", "32", "FCC", "2.4G", "20M", "HT", "1T", "11", "26", "ETSI", "2.4G", "20M", "HT", "1T", "11", "32", "MKK", "2.4G", "20M", "HT", "1T", "11", "32", "FCC", "2.4G", "20M", "HT", "1T", "12", "63", "ETSI", "2.4G", "20M", "HT", "1T", "12", "32", "MKK", "2.4G", "20M", "HT", "1T", "12", "32", "FCC", "2.4G", "20M", "HT", "1T", "13", "63", "ETSI", "2.4G", "20M", "HT", "1T", "13", "32", "MKK", "2.4G", "20M", "HT", "1T", "13", "32", "FCC", "2.4G", "20M", "HT", "1T", "14", "63", "ETSI", "2.4G", "20M", "HT", "1T", "14", "63", "MKK", "2.4G", "20M", "HT", "1T", "14", "63", "FCC", "2.4G", "20M", "HT", "2T", "01", "30", "ETSI", "2.4G", "20M", "HT", "2T", "01", "32", "MKK", "2.4G", "20M", "HT", "2T", "01", "32", "FCC", "2.4G", "20M", "HT", "2T", "02", "32", "ETSI", "2.4G", "20M", "HT", "2T", "02", "32", "MKK", "2.4G", "20M", "HT", "2T", "02", "32", "FCC", "2.4G", "20M", "HT", "2T", "03", "32", "ETSI", "2.4G", "20M", "HT", "2T", "03", "32", "MKK", "2.4G", "20M", "HT", "2T", "03", "32", "FCC", "2.4G", "20M", "HT", "2T", "04", "32", "ETSI", "2.4G", "20M", "HT", "2T", "04", "32", "MKK", "2.4G", "20M", "HT", "2T", "04", "32", "FCC", "2.4G", "20M", "HT", "2T", "05", "32", "ETSI", "2.4G", "20M", "HT", "2T", "05", "32", "MKK", "2.4G", "20M", "HT", "2T", "05", "32", "FCC", "2.4G", "20M", "HT", "2T", "06", "32", "ETSI", "2.4G", "20M", "HT", "2T", "06", "32", "MKK", "2.4G", "20M", "HT", "2T", "06", "32", "FCC", "2.4G", "20M", "HT", "2T", "07", "32", "ETSI", "2.4G", "20M", "HT", "2T", "07", "32", "MKK", "2.4G", "20M", "HT", "2T", "07", "32", "FCC", "2.4G", "20M", "HT", "2T", "08", "32", "ETSI", "2.4G", "20M", "HT", "2T", "08", "32", "MKK", "2.4G", "20M", "HT", "2T", "08", "32", "FCC", "2.4G", "20M", "HT", "2T", "09", "32", "ETSI", "2.4G", "20M", "HT", "2T", "09", "32", "MKK", "2.4G", "20M", "HT", "2T", "09", "32", "FCC", "2.4G", "20M", "HT", "2T", "10", "32", "ETSI", "2.4G", "20M", "HT", "2T", "10", "32", "MKK", "2.4G", "20M", "HT", "2T", "10", "32", "FCC", "2.4G", "20M", "HT", "2T", "11", "30", "ETSI", "2.4G", "20M", "HT", "2T", "11", "32", "MKK", "2.4G", "20M", "HT", "2T", "11", "32", "FCC", "2.4G", "20M", "HT", "2T", "12", "63", "ETSI", "2.4G", "20M", "HT", "2T", "12", "32", "MKK", "2.4G", "20M", "HT", "2T", "12", "32", "FCC", "2.4G", "20M", "HT", "2T", "13", "63", "ETSI", "2.4G", "20M", "HT", "2T", "13", "32", "MKK", "2.4G", "20M", "HT", "2T", "13", "32", "FCC", "2.4G", "20M", "HT", "2T", "14", "63", "ETSI", "2.4G", "20M", "HT", "2T", "14", "63", "MKK", "2.4G", "20M", "HT", "2T", "14", "63", "FCC", "2.4G", "40M", "HT", "1T", "01", "63", "ETSI", "2.4G", "40M", "HT", "1T", "01", "63", "MKK", "2.4G", "40M", "HT", "1T", "01", "63", "FCC", "2.4G", "40M", "HT", "1T", "02", "63", "ETSI", "2.4G", "40M", "HT", "1T", "02", "63", "MKK", "2.4G", "40M", "HT", "1T", "02", "63", "FCC", "2.4G", "40M", "HT", "1T", "03", "26", "ETSI", "2.4G", "40M", "HT", "1T", "03", "32", "MKK", "2.4G", "40M", "HT", "1T", "03", "32", "FCC", "2.4G", "40M", "HT", "1T", "04", "26", "ETSI", "2.4G", "40M", "HT", "1T", "04", "32", "MKK", "2.4G", "40M", "HT", "1T", "04", "32", "FCC", "2.4G", "40M", "HT", "1T", "05", "32", "ETSI", "2.4G", "40M", "HT", "1T", "05", "32", "MKK", "2.4G", "40M", "HT", "1T", "05", "32", "FCC", "2.4G", "40M", "HT", "1T", "06", "32", "ETSI", "2.4G", "40M", "HT", "1T", "06", "32", "MKK", "2.4G", "40M", "HT", "1T", "06", "32", "FCC", "2.4G", "40M", "HT", "1T", "07", "32", "ETSI", "2.4G", "40M", "HT", "1T", "07", "32", "MKK", "2.4G", "40M", "HT", "1T", "07", "32", "FCC", "2.4G", "40M", "HT", "1T", "08", "26", "ETSI", "2.4G", "40M", "HT", "1T", "08", "32", "MKK", "2.4G", "40M", "HT", "1T", "08", "32", "FCC", "2.4G", "40M", "HT", "1T", "09", "26", "ETSI", "2.4G", "40M", "HT", "1T", "09", "32", "MKK", "2.4G", "40M", "HT", "1T", "09", "32", "FCC", "2.4G", "40M", "HT", "1T", "10", "26", "ETSI", "2.4G", "40M", "HT", "1T", "10", "32", "MKK", "2.4G", "40M", "HT", "1T", "10", "32", "FCC", "2.4G", "40M", "HT", "1T", "11", "26", "ETSI", "2.4G", "40M", "HT", "1T", "11", "32", "MKK", "2.4G", "40M", "HT", "1T", "11", "32", "FCC", "2.4G", "40M", "HT", "1T", "12", "63", "ETSI", "2.4G", "40M", "HT", "1T", "12", "32", "MKK", "2.4G", "40M", "HT", "1T", "12", "32", "FCC", "2.4G", "40M", "HT", "1T", "13", "63", "ETSI", "2.4G", "40M", "HT", "1T", "13", "32", "MKK", "2.4G", "40M", "HT", "1T", "13", "32", "FCC", "2.4G", "40M", "HT", "1T", "14", "63", "ETSI", "2.4G", "40M", "HT", "1T", "14", "63", "MKK", "2.4G", "40M", "HT", "1T", "14", "63", "FCC", "2.4G", "40M", "HT", "2T", "01", "63", "ETSI", "2.4G", "40M", "HT", "2T", "01", "63", "MKK", "2.4G", "40M", "HT", "2T", "01", "63", "FCC", "2.4G", "40M", "HT", "2T", "02", "63", "ETSI", "2.4G", "40M", "HT", "2T", "02", "63", "MKK", "2.4G", "40M", "HT", "2T", "02", "63", "FCC", "2.4G", "40M", "HT", "2T", "03", "30", "ETSI", "2.4G", "40M", "HT", "2T", "03", "30", "MKK", "2.4G", "40M", "HT", "2T", "03", "30", "FCC", "2.4G", "40M", "HT", "2T", "04", "32", "ETSI", "2.4G", "40M", "HT", "2T", "04", "30", "MKK", "2.4G", "40M", "HT", "2T", "04", "30", "FCC", "2.4G", "40M", "HT", "2T", "05", "32", "ETSI", "2.4G", "40M", "HT", "2T", "05", "30", "MKK", "2.4G", "40M", "HT", "2T", "05", "30", "FCC", "2.4G", "40M", "HT", "2T", "06", "32", "ETSI", "2.4G", "40M", "HT", "2T", "06", "30", "MKK", "2.4G", "40M", "HT", "2T", "06", "30", "FCC", "2.4G", "40M", "HT", "2T", "07", "32", "ETSI", "2.4G", "40M", "HT", "2T", "07", "30", "MKK", "2.4G", "40M", "HT", "2T", "07", "30", "FCC", "2.4G", "40M", "HT", "2T", "08", "32", "ETSI", "2.4G", "40M", "HT", "2T", "08", "30", "MKK", "2.4G", "40M", "HT", "2T", "08", "30", "FCC", "2.4G", "40M", "HT", "2T", "09", "32", "ETSI", "2.4G", "40M", "HT", "2T", "09", "30", "MKK", "2.4G", "40M", "HT", "2T", "09", "30", "FCC", "2.4G", "40M", "HT", "2T", "10", "32", "ETSI", "2.4G", "40M", "HT", "2T", "10", "30", "MKK", "2.4G", "40M", "HT", "2T", "10", "30", "FCC", "2.4G", "40M", "HT", "2T", "11", "30", "ETSI", "2.4G", "40M", "HT", "2T", "11", "30", "MKK", "2.4G", "40M", "HT", "2T", "11", "30", "FCC", "2.4G", "40M", "HT", "2T", "12", "63", "ETSI", "2.4G", "40M", "HT", "2T", "12", "32", "MKK", "2.4G", "40M", "HT", "2T", "12", "32", "FCC", "2.4G", "40M", "HT", "2T", "13", "63", "ETSI", "2.4G", "40M", "HT", "2T", "13", "32", "MKK", "2.4G", "40M", "HT", "2T", "13", "32", "FCC", "2.4G", "40M", "HT", "2T", "14", "63", "ETSI", "2.4G", "40M", "HT", "2T", "14", "63", "MKK", "2.4G", "40M", "HT", "2T", "14", "63" }; void ODM_ReadAndConfig_MP_8723B_TXPWR_LMT( IN PDM_ODM_T pDM_Odm ) { u4Byte i = 0; u4Byte ArrayLen = sizeof(Array_MP_8723B_TXPWR_LMT)/sizeof(pu1Byte); pu1Byte *Array = Array_MP_8723B_TXPWR_LMT; ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD, ("===> ODM_ReadAndConfig_MP_8723B_TXPWR_LMT\n")); for (i = 0; i < ArrayLen; i += 7 ) { pu1Byte regulation = Array[i]; pu1Byte band = Array[i+1]; pu1Byte bandwidth = Array[i+2]; pu1Byte rate = Array[i+3]; pu1Byte rfPath = Array[i+4]; pu1Byte chnl = Array[i+5]; pu1Byte val = Array[i+6]; odm_ConfigBB_TXPWR_LMT_8723B(pDM_Odm, regulation, band, bandwidth, rate, rfPath, chnl, val); } } #endif // end of HWIMG_SUPPORT
#!/bin/bash #================================================= # Description: DIY script # Lisence: MIT # Author: eSirPlayground # Youtube Channel: https://goo.gl/fvkdwm #================================================= #1. Modify default IP sed -i 's/192.168.1.1/192.168.10.2/g' openwrt/package/base-files/files/bin/config_generate #2. Clear the login password sed -i 's/$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.//g' openwrt/package/lean/default-settings/files/zzz-default-settings #3. Replace with JerryKuKu’s Argon #rm openwrt/package/lean/luci-theme-argon -rf #4. 修改主机名 sed -i '/uci commit system/i\uci set system.@system[0].hostname='Hong OpenWrt'' openwrt/package/lean/default-settings/files/zzz-default-settings #5. 版本号显示名字 sed -i "s/Openwrt /HongnahZ Build $(TZ=UTC-8 date "+%Y.%m.%d") @ Openwrt /g" openwrt/package/lean/default-settings/files/zzz-default-settings
* { font-family: 'Times New Roman', Times, serif; }
class FincaService { private model: any; // Replace 'any' with the actual model type constructor(model: any) { this.model = model; } create(item: Finca, callback: (error: any, result: any) => void) { this.model.create(item, (error: any, result: any) => { if (error) { callback(error, null); } else { callback(null, result); } }); } getAll(callback: (error: any, result: any) => void) { this.model.find({}, (error: any, result: any) => { if (error) { callback(error, null); } else { callback(null, result); } }); } update(item: Finca, data: Finca, callback: (error: any, result: any) => void) { this.model.updateOne({ _id: item._id }, data, (error: any, result: any) => { if (error) { callback(error, null); } else { callback(null, result); } }); } delete(item: Finca, callback: (error: any, result: any) => void) { this.model.deleteOne({ _id: item._id }, (error: any) => { if (error) { callback(error, null); } else { callback(null, { _id: item._id }); } }); } }
#!/bin/bash echo "uninstall older versions" sudo apt-get remove docker docker-engine docker.io containerd runc sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io -y echo "docker install succesfully"
#!/bin/bash # dmd src/*.d -ofCSVtoKML F:/Compilers/D/dmd2/windows/bin/dmd.exe src/*.d -ofCSVtoKML rm -f CSVtoKML.obj ./CSVtoKML.exe
public class KeyVaultSecretReferenceData { private String secretUrl; private String sourceVault; public KeyVaultSecretReferenceData(String secretUrl, String sourceVault) { this.secretUrl = secretUrl; this.sourceVault = sourceVault; } public KeyVaultSecretReferenceData createSecretReference(String secretUrl, String sourceVault) { return new KeyVaultSecretReferenceData(secretUrl, sourceVault); } }
def generate_item_urls(completed_items): item_urls = [] for item in completed_items: iut = oseo.ItemURLType() iut.itemId = item.item_specification.item_id if item_id is None else item_id iut.productId = oseo.ProductIdType(identifier=item.identifier) iut.productId.collectionId = utilities.get_collection_identifier(item.item_specification.collection) iut.itemAddress = oseo.OnLineAccessAddressType() iut.itemAddress.ResourceAddress = pyxb.BIND() iut.itemAddress.ResourceAddress.URL = item.url iut.expirationDate = item.expires_on item_urls.append(iut) return item_urls
class Employee: def __init__(self, name, salary): self.name = name self.salary = salary def calculate_pay(self): return self.salary class Manager(Employee): def __init__(self, name, salary, bonus): super().__init__(name, salary) self.bonus = bonus def calculate_pay(self): return super().calculate_pay() + self.bonus class Developer(Employee): def __init__(self, name, salary, skill_level): super().__init__(name, salary) self.skill_level = skill_level def calculate_pay(self): if self.skill_level == "junior": return self.salary * 0.8 elif self.skill_level == "senior": return self.salary * 1.2 else: return self.salary
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import * as React from "react"; import { useMemo, useEffect, useRef, useState } from "react"; import { useConfig, usePrevious } from "../../../../docz-lib/docz/dist"; //import { MenuItem } from "./Menu"; import styled, { css } from "styled-components"; import _isArray from "lodash/fp/isArray"; import { MenuHeadings } from "./MenuHeadings"; import { get } from "../../../utils/theme"; export const MenuItem = { id: "", name: "", route: "", href: "", menu: [], order: Number, parent: "" }; const WrapperProps = { active: false, theme: null }; const hrefLinks = css` font-weight: normal !important; color: #807e7e !important; &:hover, &.active { color: ${p => get("colors.sidebarPrimary")(p) || get("colors.primary")(p)} !important; } `; const activeWrapper = css` padding-left: 0; &:after { width: 1px; } `; const Wrapper = styled.div` position: relative; transition: padding 0.2s; &:after { position: absolute; display: block; content: ""; top: 30px; left: 24px; width: 0; height: calc(100% - 36px); border-left: 1px dashed ${get("colors.sidebarBorder")}; transition: width 0.2s; } ${p => p.active && activeWrapper}; `; Wrapper.defaultProps = WrapperProps; export const createLink = Link => styled(Link)` position: relative; display: block; padding: 4px 15px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: ${get("colors.sidebarText")}; text-decoration: none; transition: color 0.2s; &:hover, &:visited { color: ${get("colors.sidebarText")}; } &:hover, &.active { color: ${p => get("colors.sidebarPrimary")(p) || get("colors.primary")(p)}; font-weight: 600; } ${p => { return checkChildMenu(p) ? hrefLinks : ""; }} `; const checkChildMenu = obj => { const { partiallyActive, to, children } = obj; return partiallyActive && !`REST API,ASF`.includes(children.trim()); }; const LinkAnchor = createLink(styled.a``); const getActiveByLocation = route => { if (typeof window === "undefined") return; return location.pathname.slice(0, location.pathname.length - 1) === route; }; const getActiveFromClass = (el = null, route = undefined) => { const activeByClass = el && el.classList.contains("active"); const activeByLocation = route && getActiveByLocation(route); return Boolean(activeByClass || activeByLocation); }; const checkActiveClass = ($el, isActive) => { if (!isActive) return; if (isActive && !$el.classList.contains("active")) { $el.classList.add("active"); } }; const LinkProps = { item: MenuItem, onClick: React.MouseEventHandler, className: "", innerRef: node => null, children: React.ReactNode, onActiveChange: active => null }; export const MenuLink = React.forwardRef( ({ item, children, onClick, onActiveChange }, ref) => { const { linkComponent } = useConfig(); const [active, setActive] = useState(false); const prevActive = usePrevious(active); const $el = useRef(ref); const Link = useMemo(() => createLink(linkComponent), [linkComponent]); const linkProps = { children, onClick }; useEffect(() => { const isActive = getActiveFromClass($el.current, item.route); if (prevActive !== isActive) { setActive(isActive); $el && checkActiveClass($el.current, isActive); //isActive && onActiveChange && onActiveChange(item.name); } }); return ( <Wrapper active={active}> {item.route ? ( <Link {...linkProps} to={item.route} innerRef={$el} activeClassName="active" partiallyActive={true} /> ) : ( <LinkAnchor {...linkProps} ref={$el} href={item.href || "#"} target={item.href ? "_blank" : "_self"} {...(!item.href && { onClick: ev => { ev.preventDefault(); linkProps.onClick && linkProps.onClick(ev); } })} /> )} {active && item.route && <MenuHeadings route={item.route} />} </Wrapper> ); } ); MenuLink.displayName = "MenuLink";
def count_unique_substrings(string): # Create a set to store all unique substrings substrings = set() # Generate all possible substrings for i in range(len(string)): for j in range(i+1, len(string)+1): substrings.add(string[i:j]) # Return the count of all unique substrings return len(substrings)