@Override protected void doInit() throws ResourceException { super.doInit(); String lastSeg = getRequest().getResourceRef().getLastSegment(); this.isCopyRequest = lastSeg.equalsIgnoreCase("copy_settings"); this.batchDelete = lastSeg.equals("delete"); }
@Override protected void doInit() throws ResourceException { super.doInit(); this.type = (String) getRequestAttributes().get("type"); this.id = getIdFromAttributes("id"); if (this.id == null) { return; } }