public List<String> execute(CommandContext commandContext) { return commandContext .getIdentityInfoManager() .findUserInfoKeysByUserIdAndType(userId, userInfoType); } }
public Account execute(CommandContext commandContext) { return commandContext .getIdentityInfoManager() .findUserAccountByUserIdAndKey(userId, userPassword, accountName); } }
public String execute(CommandContext commandContext) { commandContext .getIdentityInfoManager() .deleteUserInfoByUserIdAndKey(userId, key); return null; } }
public Object execute(CommandContext commandContext) { commandContext .getIdentityInfoManager() .setUserInfo(userId, userPassword, type, key, value, accountPassword, accountDetails); return null; } }
public String execute(CommandContext commandContext) { commandContext .getIdentityInfoManager() .deleteUserInfoByUserIdAndKey(userId, key); return null; } }
public List<String> execute(CommandContext commandContext) { return commandContext .getIdentityInfoManager() .findUserInfoKeysByUserIdAndType(userId, userInfoType); } }
public Object execute(CommandContext commandContext) { commandContext .getIdentityInfoManager() .setUserInfo(userId, userPassword, type, key, value, accountPassword, accountDetails); return null; } }
public Account execute(CommandContext commandContext) { return commandContext .getIdentityInfoManager() .findUserAccountByUserIdAndKey(userId, userPassword, accountName); } }
public String execute(CommandContext commandContext) { IdentityInfoEntity identityInfo = commandContext .getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, key); return (identityInfo!=null ? identityInfo.getValue() : null); } }
public String execute(CommandContext commandContext) { IdentityInfoEntity identityInfo = commandContext .getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, key); return (identityInfo!=null ? identityInfo.getValue() : null); } }
public Void execute(CommandContext commandContext) { ensureNotNull("UserId", userId); IdentityInfoEntity infoEntity = commandContext.getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, "picture"); if(infoEntity != null) { String byteArrayId = infoEntity.getValue(); if(byteArrayId != null) { commandContext.getByteArrayManager() .deleteByteArrayById(byteArrayId); } commandContext.getIdentityInfoManager() .delete(infoEntity); } return null; }
public Void execute(CommandContext commandContext) { ensureNotNull("UserId", userId); IdentityInfoEntity infoEntity = commandContext.getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, "picture"); if(infoEntity != null) { String byteArrayId = infoEntity.getValue(); if(byteArrayId != null) { commandContext.getByteArrayManager() .deleteByteArrayById(byteArrayId); } commandContext.getIdentityInfoManager() .delete(infoEntity); } return null; }
protected Void executeCmd(CommandContext commandContext) { ensureNotNull("userId", userId); // delete user picture new DeleteUserPictureCmd(userId).execute(commandContext); commandContext.getIdentityInfoManager() .deleteUserInfoByUserId(userId); commandContext .getWritableIdentityProvider() .deleteUser(userId); return null; } }
protected Void executeCmd(CommandContext commandContext) { ensureNotNull("userId", userId); // delete user picture new DeleteUserPictureCmd(userId).execute(commandContext); commandContext.getIdentityInfoManager() .deleteUserInfoByUserId(userId); commandContext .getWritableIdentityProvider() .deleteUser(userId); return null; } }
public Picture execute(CommandContext commandContext) { ensureNotNull("userId", userId); IdentityInfoEntity pictureInfo = commandContext.getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, "picture"); if (pictureInfo != null) { String pictureByteArrayId = pictureInfo.getValue(); if (pictureByteArrayId != null) { ByteArrayEntity byteArray = commandContext.getDbEntityManager() .selectById(ByteArrayEntity.class, pictureByteArrayId); return new Picture(byteArray.getBytes(), byteArray.getName()); } } return null; }
public Picture execute(CommandContext commandContext) { ensureNotNull("userId", userId); IdentityInfoEntity pictureInfo = commandContext.getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, "picture"); if (pictureInfo != null) { String pictureByteArrayId = pictureInfo.getValue(); if (pictureByteArrayId != null) { ByteArrayEntity byteArray = commandContext.getDbEntityManager() .selectById(ByteArrayEntity.class, pictureByteArrayId); return new Picture(byteArray.getBytes(), byteArray.getName()); } } return null; }
public List<String> execute(CommandContext commandContext) { return commandContext .getIdentityInfoManager() .findUserInfoKeysByUserIdAndType(userId, userInfoType); } }
public Account execute(CommandContext commandContext) { return commandContext .getIdentityInfoManager() .findUserAccountByUserIdAndKey(userId, userPassword, accountName); } }
public Void execute(CommandContext commandContext) { ensureNotNull("userId", userId); IdentityInfoEntity pictureInfo = commandContext.getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, "picture"); if (pictureInfo != null) { String byteArrayId = pictureInfo.getValue(); if (byteArrayId != null) { commandContext.getByteArrayManager() .deleteByteArrayById(byteArrayId); } } else { pictureInfo = new IdentityInfoEntity(); pictureInfo.setUserId(userId); pictureInfo.setKey("picture"); commandContext.getDbEntityManager().insert(pictureInfo); } ByteArrayEntity byteArrayEntity = new ByteArrayEntity(picture.getMimeType(), picture.getBytes(), ResourceTypes.REPOSITORY); commandContext.getByteArrayManager() .insertByteArray(byteArrayEntity); pictureInfo.setValue(byteArrayEntity.getId()); return null; }
public Void execute(CommandContext commandContext) { ensureNotNull("userId", userId); IdentityInfoEntity pictureInfo = commandContext.getIdentityInfoManager() .findUserInfoByUserIdAndKey(userId, "picture"); if (pictureInfo != null) { String byteArrayId = pictureInfo.getValue(); if (byteArrayId != null) { commandContext.getByteArrayManager() .deleteByteArrayById(byteArrayId); } } else { pictureInfo = new IdentityInfoEntity(); pictureInfo.setUserId(userId); pictureInfo.setKey("picture"); commandContext.getDbEntityManager().insert(pictureInfo); } ByteArrayEntity byteArrayEntity = new ByteArrayEntity(picture.getMimeType(), picture.getBytes(), ResourceTypes.REPOSITORY); commandContext.getByteArrayManager() .insertByteArray(byteArrayEntity); pictureInfo.setValue(byteArrayEntity.getId()); return null; }