Access to the WorkClassifier

@return WorkClassifier - null if not found
429866
public static WorkClassifier getWorkClassifier() {
        HttpDispatcher f = instance.get().get();
        if (f != null)
            return f.workClassifier;

        return null;
    }
81001
public TaskStatus getTaskStatus() {
    TaskStatusUpdate update = get(TaskStatusUpdate.class);
    if (update == null) {
      return null;
    }
    return update.getStatus();
  }
1134614
def get_work_items(self, **filters):
        '''
        
        '''
        filter_string = ""
        for key, val in filters.iteritems():
            filter_string += "%s='%s'" % (key, val)
        url = "/rpt/repository/workitem?fields=workitem/workItem[%s]/(" \
              "*|\
               owner/name|\
               state/name|\
               projectArea/name|\
               type/name|\
               comments/*|\
               comments/creator/*|\
               stringComplexity/*|\
               category/*|\
               creator/*|\
               tags/*|\
               priority/*|\
               severity/*\
               )" % filter_string
        try:
            response = self.get(url)
        except requests.exceptions.ReadTimeout:
            return "Request timed out :("

        if response.status_code != 200:
            return None

        output = xmltodict.parse(response.text)
        if "workItem" not in output["workitem"]:
            return None
        else:
            workitems = []
            if isinstance(output["workitem"]["workItem"], list):
                for wi in output["workitem"]["workItem"]:
                    workitems.append(Workitem(wi))
            else:
                workitems.append(Workitem(output["workitem"]["workItem"]))
            return workitems
366858
public WorkspaceEntry getWorkspaceEntry(String wsName)
   {
      for (WorkspaceEntry entry : config.getWorkspaceEntries())
      {
         if (entry.getName().equals(wsName))
            return entry;
      }
      return null;
   }
1358641
public function getPersonalWorkspace()
    {
        $workspaceName = $this->getPersonalWorkspaceName();
        if ($workspaceName !== null) {
            return $this->workspaceRepository->findOneByName($this->getPersonalWorkspaceName());
        }
    }
502116
function continueWorkflow()
    {
        if( $this->paymentObject )
        {
            $workflowID = $this->paymentObject->attribute( 'workflowprocess_id' );
            if( $workflowID )
            {
                return eZPaymentObject::continueWorkflow( $workflowID );
            }

            $this->logger->writeTimedString( "workflowID is not set", 'continueWorkflow failed' );
            return null;
        }

        $this->logger->writeTimedString( "payment object is not set", 'continueWorkflow failed' );
        return null;
    }
366234
private ResourceBundle locateBundleFromCallee() {
		ResourceBundle rb = null;

		if (finder == null) {
			finder = StackFinder.getInstance();
		}

		final Class<?> aClass = finder.getCaller();

		if (aClass != null) {
			// If aClass is NOT null (it was passed in, or we found it),
			// use its classloader first to try loading the resource
			// bundle
			ClassLoader classLoader = null;
			try {
                classLoader = AccessController.doPrivileged(new PrivilegedExceptionAction<ClassLoader>() {
					public ClassLoader run() throws Exception {
						return aClass.getClassLoader();
					}
				});
			} catch (PrivilegedActionException e) {
				// convert to a runtime exception since callers already have
				// to deal
				// with that type
				throw new java.lang.RuntimeException(e.getMessage());
			}

			try {
				rb = ResourceBundle.getBundle(ivBundleName, ivLocale, classLoader);
			} catch (RuntimeException re) {
				// if (quiet) {
				//
				// logger.log(Level.FINEST,
				// "Unable to load {0} from {1} (from class {2}) in {3}; caught exception: {4}",
				// new Object[] { ivBundleName, classLoader, aClass, ivLocale,
				// re });
				// }
			}
			// } else {
			// if (quiet) {
			//
			// logger.log(Level.FINEST, "Unable to load {0} class was null", new
			// Object[] { ivBundleName });
			// }
		}
		return rb;
	}
1292314
public static IWorkbenchPage getActivePage()
	{
		IWorkbenchWindow w = getActiveWorkbenchWindow();
		if (w != null)
		{
			return w.getActivePage();
		}
		return null;
	}
418169
private Worker getWorker() throws InterruptedException {
    while (!courtesyMonitor.allowTasksToRun()) {
      courtesyMonitor.waitFor();
    }
    while (numWorkers > maxWorkers) {
      workerQueue.take();
      numWorkers--;
    }
    return workerQueue.take();
  }
83550
public String getWorkingDirectory() {
    final String workingDir = getJobProps().getString(WORKING_DIR, this.jobPath);
    return Utils.ifNull(workingDir, "");
  }
388981
@Nullable
  private MasterWorkerInfo findUnregisteredWorker(WorkerNetAddress workerNetAddress) {
    for (IndexedSet<MasterWorkerInfo> workers: Arrays.asList(mTempWorkers, mLostWorkers)) {
      MasterWorkerInfo worker = workers.getFirstByField(ADDRESS_INDEX, workerNetAddress);
      if (worker != null) {
        return worker;
      }
    }
    return null;
  }
65630
public Discriminator getDiscriminator() {
        if (tc.isEntryEnabled())
            SibTr.entry(this, tc, "getDiscriminator");
        if (tc.isEntryEnabled())
            SibTr.exit(this, tc, "getDiscriminator", discriminator);
        return discriminator;
    }
757730
public function getWorkflow()
	{
		return $this->hasWorkflowStatus() ? $this->getWorkflowSource()->getWorkflow($this->getWorkflowStatus()->getWorkflowId()) : null;
	}
1308055
public static function getAccessControlManager()
	{
		if(self::$_instance === NULL)
			throw new SonicRuntimeException('Sonic instance not initialized');
		
		if(self::$_instance->accessControlManager != NULL)
			return self::$_instance->accessControlManager;
		else
			throw new AccessControlManagerException('AccessControlManager instance not found');
	}
792260
@Nullable
  private MasterWorkerInfo findUnregisteredWorker(long workerId) {
    for (IndexedSet<MasterWorkerInfo> workers: Arrays.asList(mTempWorkers, mLostWorkers)) {
      MasterWorkerInfo worker = workers.getFirstByField(ID_INDEX, workerId);
      if (worker != null) {
        return worker;
      }
    }
    return null;
  }
245142
protected String checkWorkingFolderInPath( String filePath ) {
        if (filePath.contains(HMConstants.WORKINGFOLDER)) {
            return null;
        }
        return filePath;
    }
16284
protected Iterator<WorkUnit> getWorkUnitIterator(Iterator<Dataset> datasetIterator, String previousDatasetUrnWatermark,
      @Nullable String previousPartitionUrnWatermark, int maximumWorkUnits) throws IOException {
    return new DeepIterator(datasetIterator, previousDatasetUrnWatermark, previousPartitionUrnWatermark,
            maximumWorkUnits);
  }