Returns Target Update window based on the selected Entity Id in the
target table.

@param controllerId
the target controller id
@return window or {@code null} if target is not exists.
550402
public Window getWindow(final String controllerId) {
        final Optional<Target> target = targetManagement.getByControllerID(controllerId);
        if (!target.isPresent()) {
            uINotification.displayWarning(i18n.getMessage("target.not.exists", controllerId));
            return null;
        }
        populateValuesOfTarget(target.get());
        createNewWindow();
        window.setCaption(i18n.getMessage("caption.update", i18n.getMessage("caption.target")));
        window.addStyleName("target-update-window");
        return window;
    }
988042
public Window getWindow() {
        managementUIState.setBulkUploadWindowMinimised(false);

        bulkUploadWindow = new WindowBuilder(SPUIDefinitions.CREATE_UPDATE_WINDOW).caption("").content(this)
                .buildWindow();
        bulkUploadWindow.addStyleName("bulk-upload-window");
        bulkUploadWindow.setImmediate(true);
        if (managementUIState.getTargetTableFilters().getBulkUpload().getProgressBarCurrentValue() <= 0) {
            bulkUploader.getUpload().setEnabled(true);
        } else {
            bulkUploader.getUpload().setEnabled(false);
        }
        return bulkUploadWindow;
    }
1073277
@Override
    public PortletDelegationDispatcher getRequestDispatcher(
            PortletRequest portletRequest, IPortletWindowId portletWindowId) {
        final HttpServletRequest request =
                this.portalRequestUtils.getPortletHttpRequest(portletRequest);
        final IPerson person = this.personManager.getPerson(request);

        final IPortletWindow portletWindow =
                this.portletWindowRegistry.getPortletWindow(request, portletWindowId);

        final IPortletWindowId delegationParentId = portletWindow.getDelegationParentId();
        if (delegationParentId == null) {
            throw new IllegalArgumentException(
                    "Portlet window '"
                            + portletWindow
                            + "' is not a delegate window and cannot be delgated to.");
        }

        return new PortletDelegationDispatcherImpl(
                portletWindow,
                person.getID(),
                this.portalRequestUtils,
                this.personManager,
                this.portletRenderer,
                this.portalUrlProvider,
                this.portletDelegationManager);
    }
325467
private synchronized Window getPopupWindow() throws Exception {
        if (popupDefinition == null) {
            popupDefinition = PageParser.getInstance().parse(RESOURCE_PREFIX + "popupWindow.fsp");
        }
        
        Window window = (Window) popupDefinition.materialize(null);
        windows.add(window);
        return window;
    }
1090399
public void setTargetWindow(final String targetWindow) {
		String currTargWin = getTargetWindow();

		if (!Objects.equals(targetWindow, currTargWin)) {
			getOrCreateComponentModel().targetWindow = targetWindow;
		}
	}
109922
public function getById($appId, $profileId, $controllerId, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->controllers()->getById($appId, $profileId, $controllerId, $queryParams);

        return new ControllerResponse($response);
    }
1337426
WSController getWSController() {
		if (null == controller) {
			controller = CDI.current().select(WSController.class).get();
//			controller = getCdiBeanResolver().getBean(WSController.class);
		}
		return controller;
	}
1279434
public String getDeployedViewURI(String controllerName, String viewName) {
        FastStringWriter buf = new FastStringWriter(PATH_TO_VIEWS);
        return getViewURIInternal(controllerName, viewName, buf, true);
    }
868959
public BoxRequestsFolder.UpdateFolder getUpdateRequest(String id) {
        BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession);
        return request;
    }
134984
@Override
    public IPortletWindowId getDefaultPortletWindowId(
            HttpServletRequest request, IPortletEntityId portletEntityId) {
        final IPortletWindowId portletWindowId = this.createPortletWindowId(null, portletEntityId);
        logger.trace(
                "Determined default portlet window id {} for portlet entity {}",
                portletWindowId,
                portletEntityId);
        return portletWindowId;
    }
401551
public boolean updatePostGuid(long postId, final String guid) throws SQLException {
      Connection conn = null;
      PreparedStatement stmt = null;
      Timer.Context ctx = metrics.updatePostTimer.time();
      try {
         conn = connectionSupplier.getConnection();
         stmt = conn.prepareStatement(updatePostGuidSQL);
         stmt.setString(1, guid);
         stmt.setLong(2, postId);
         return stmt.executeUpdate() > 0;
      } finally {
         ctx.stop();
         SQLUtil.closeQuietly(conn, stmt);
      }
   }
1327657
public static function findControllerID()
    {
        if (empty($_REQUEST[self::KEY_ID])
            || empty($_SESSION[sprintf(self::KEY_CONTAINER, $_REQUEST[self::KEY_ID])])
        ) {
            return null;
        } else {
            return $_REQUEST[self::KEY_ID];
        }
    }
1178963
@GET
	@Produces(MediaType.APPLICATION_JSON)
	@Path("/{dashboardId}")
	@Description("Returns a dashboard by its ID.")
	public DashboardDto getDashboardByID(@Context HttpServletRequest req,
			@PathParam("dashboardId") BigInteger dashboardId) {
		if (dashboardId == null || dashboardId.compareTo(BigInteger.ZERO) < 1) {
			throw new WebApplicationException("Dashboard Id cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
		}

		Dashboard dashboard = dService.findDashboardByPrimaryKey(dashboardId);

		if (dashboard != null && !dashboard.isShared()) {
			validateAndGetOwner(req, null);
			validateResourceAuthorization(req, dashboard.getOwner(), getRemoteUser(req));
		}
		if (dashboard != null) {
			return DashboardDto.transformToDto(dashboard);
		}
		throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
	}
1265778
@Override
    public IPortletWindow getPortletWindow(
            HttpServletRequest request, IPortletWindowId portletWindowId) {
        Validate.notNull(request, "request can not be null");
        Validate.notNull(portletWindowId, "portletWindowId can not be null");

        final PortletWindowCache<IPortletWindow> portletWindowMap = getPortletWindowMap(request);

        IPortletWindow portletWindow = portletWindowMap.getWindow(portletWindowId);
        if (portletWindow != null) {
            logger.trace(
                    "Found IPortletWindow {} in request cache", portletWindow.getPortletWindowId());
            return portletWindow;
        }

        final PortletWindowIdImpl localPortletWindowId =
                this.convertPortletWindowId(request, portletWindowId);

        // Find the window data from the correct window data map
        final PortletWindowData portletWindowData;
        if (STATELESS_PORTLET_WINDOW_ID.equals(localPortletWindowId.getWindowInstanceId())) {
            final PortletWindowCache<PortletWindowData> statelessPortletWindowDataMap =
                    this.getStatelessPortletWindowDataMap(request);
            if (statelessPortletWindowDataMap != null) {
                portletWindowData = statelessPortletWindowDataMap.getWindow(portletWindowId);
            } else {
                portletWindowData = null;
            }
        } else {
            portletWindowData = this.getPortletWindowData(request, portletWindowId);
        }

        if (portletWindowData == null) {
            logger.trace("No IPortletWindow {} exists, returning null", portletWindowId);
            return null;
        }

        portletWindow = this.wrapPortletWindowData(request, portletWindowData);

        // Cache the wrapped window in the request
        return portletWindowMap.storeIfAbsentWindow(portletWindow);
    }
1270632
private Result executeResultUpdate(Result cmd) {

        long   id         = cmd.getResultId();
        int    actionType = cmd.getActionType();
        Result result     = sessionData.getDataResult(id);

        if (result == null) {
            return Result.newErrorResult(Error.error(ErrorCode.X_24501));
        }

        Object[]        pvals     = cmd.getParameterData();
        Type[]          types     = cmd.metaData.columnTypes;
        StatementQuery  statement = (StatementQuery) result.getStatement();
        QueryExpression qe        = statement.queryExpression;
        Table           baseTable = qe.getBaseTable();
        int[]           columnMap = qe.getBaseTableColumnMap();

        sessionContext.rowUpdateStatement.setRowActionProperties(actionType,
                baseTable, types, columnMap);

        Result resultOut =
            executeCompiledStatement(sessionContext.rowUpdateStatement, pvals);

        return resultOut;
    }
431683
@POST
    @Path("{guid}")
    @Consumes({Servlets.JSON_MEDIA_TYPE, MediaType.APPLICATION_JSON})
    @Produces(Servlets.JSON_MEDIA_TYPE)
    public Response updateEntityByGuid(@PathParam("guid") String guid, @QueryParam("property") String attribute,
                                       @Context HttpServletRequest request) {
        if (LOG.isDebugEnabled()) {
            LOG.debug("==> EntityResource.updateEntityByGuid({}, {})", guid, attribute);
        }

        AtlasPerfTracer perf = null;
        try {
            if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
                perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "EntityResource.updateEntityByGuid(" + guid + ", " + attribute + ")");
            }

            if (StringUtils.isEmpty(attribute)) {
                return partialUpdateEntityByGuid(guid, request);
            } else {
                return partialUpdateEntityAttrByGuid(guid, attribute, request);
            }
        } finally {
            AtlasPerfTracer.log(perf);

            if (LOG.isDebugEnabled()) {
                LOG.debug("<== EntityResource.updateEntityByGuid({}, {})", guid, attribute);
            }
        }
    }
300810
function getPanelByPoint(controller, e, localCursorPoint) {
    var panels = controller._panels;
    if (!panels) {
        return true; // Global panel
    }
    var panel;
    var transform = controller._transform;
    each(panels, function (pn) {
        pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);
    });
    return panel;
}