text:
Settings Overrides

Settings overrides are a way for extensions to override selected Chrome settings.
The API is available only on Windows.

Homepage, Search Provider, and Startup Pages

Here is an example how homepage, search provider and startup
pages can be modified in the extension
manifest. Web sites used in the settings API must be
verified (via
Webmaster Tools) as being associated with that item in the Chrome Web Store.
Note that if you verify ownership for a domain (for example, http://example.com)
you can use any subdomain or page (for example, http://app.example.com or
http://example.com/page.html) within your extension.

{
  "name": "My extension",
  ...
  "chrome_settings_overrides": {
    "homepage": "http://www.homepage.com",
    "search_provider": {
        "name": "name.__MSG_url_domain__",
        "keyword": "keyword.__MSG_url_domain__",
        "search_url": "http://www.foo.__MSG_url_domain__/s?q={searchTerms}",
        "favicon_url": "http://www.foo.__MSG_url_domain__/favicon.ico",
        "suggest_url": "http://www.foo.__MSG_url_domain__/suggest?q={searchTerms}",
        "instant_url": "http://www.foo.__MSG_url_domain__/instant?q={searchTerms}",
        "image_url": "http://www.foo.__MSG_url_domain__/image?q={searchTerms}",
        "search_url_post_params": "search_lang=__MSG_url_domain__",
        "suggest_url_post_params": "suggest_lang=__MSG_url_domain__",
        "instant_url_post_params": "instant_lang=__MSG_url_domain__",
        "image_url_post_params": "image_lang=__MSG_url_domain__",
        "alternate_urls": [
          "http://www.moo.__MSG_url_domain__/s?q={searchTerms}",
          "http://www.noo.__MSG_url_domain__/s?q={searchTerms}"
        ],
        "encoding": "UTF-8",
        "is_default": true
    },
    "startup_pages": ["http://www.startup.com"]
   },
   "default_locale": "de",
   ...
}

Customizing values

Values in the manifest can be customized in the following ways:

  All values of the search_provider, homepage and
  startup_pages properties can be localized using the
  $(ref:i18n chrome.i18n API).

  For external extensions,
  the search_provider, homepage and
  startup_pages URL values can be parametrized using a registry key.
  A new registry entry should be created next to the "update_url" key (see
  instructions here).
  The value name is "install_parameter", the value data is an arbitrary string:

{
    "update_url": "https://clients2.google.com/service/update2/crx",
    "install_parameter": "Value"
  }

  All occurrences of the substring "__PARAM__" in the manifest URLs will be
  substituted with the "install_parameter" value. If "install_parameter" is
  absent, occurrences of "__PARAM__" are removed. Note that "__PARAM__" cannot
  be part of the hostname. It needs to occur after the first '/' in the URL.

Reference

An extension can override one or more of the following properties in the
manifest:

{{+partials.manifest_type
   type:apis.extensions.manifestTypes.byName.ChromeSettingsOverrides /}}


text:
var _ = require('underscore'),
  ini = require('../../../utils/ini.js');
module.exports = {
  'desc' : 'Lists resources of a cloud app',
  'examples' : [
    { cmd : 'fhc app resources --app=1a --env=dev', desc : 'Shows the resources of the app with id 1a in the dev environment'}
  ],
  'demand' : ['app', 'env'],
  'alias' : {
    'app' : 'a',
    0 : 'app'
  },
  'describe' : {
    'app' : 'Unique 24 character GUID of the cloud app you want to see resource info for',
    'env' : 'The cloud environment your app is running in'
  },
  'preCmd' : function(params, cb) {
    this.app = params.app;
    params.domain = ini.get('domain', 'user');
    return cb(null, params);
  },
  'url' : function(argv){
    return "api/v2/resources"+ '/' + argv.domain + '/' + argv.env;
  },
  postCmd : function(params, cb){
    var apps = params.apps,
      app = _.findWhere(apps, {guid : this.app });
    if (!app){
      return cb('App with id ' + this.app + ' not found');
    }

    return cb(null, app);
  }
};

redpajama_set_name: RedPajamaGithub


text:
/**
 * Listeners for listening to various ONOS events.
 *
 */
package org.onosproject.kafkaintegration.listener;


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
SiteInvestigator
</TITLE>

<META NAME="keywords" CONTENT="gov.nih.nci.cabig.caaers.domain.SiteInvestigator class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

gov.nih.nci.cabig.caaers.domain

Class SiteInvestigator

java.lang.Object
  gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject
      gov.nih.nci.cabig.caaers.domain.SiteInvestigator

All Implemented Interfaces:
gov.nih.nci.cabig.ctms.domain.DomainObject, gov.nih.nci.cabig.ctms.domain.GridIdentifiable, gov.nih.nci.cabig.ctms.domain.MutableDomainObject

public class SiteInvestigator
extends gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject

This class represents the SiteInvestigator domain object associated with the Adverse event
 report.

Author:

Constructor Summary

SiteInvestigator()

          Instantiates a new site investigator.

Method Summary

 boolean
equals(java.lang.Object obj)

 java.lang.String
getEmailAddress()

          Gets the email address.

 java.util.Date
getEndDate()

          Gets the end date.

 Investigator
getInvestigator()

          Gets the investigator.

 Organization
getOrganization()

          Gets the organization.

 java.util.Date
getStartDate()

          Gets the start date.

 java.lang.String
getStatus()

          This method will return a status text for display purpose's.

 java.util.List<StudyInvestigator>
getStudyInvestigators()

          Gets the study investigators.

 int
hashCode()

 boolean
isActive()

          Checks if is active.

 boolean
isInActive()

          Checks if is in active.

 void
setEmailAddress(java.lang.String emailAddress)

          Sets the email address.

 void
setEndDate(java.util.Date endDate)

          Sets the end date.

 void
setInvestigator(Investigator investigator)

          Sets the investigator.

 void
setOrganization(Organization organization)

          Sets the organization.

 void
setStartDate(java.util.Date startDate)

          Sets the start date.

 void
setStudyInvestigators(java.util.List<StudyInvestigator> studyInvestigators)

          Sets the study investigators.

 java.lang.String
toString()

Methods inherited from class gov.nih.nci.cabig.ctms.domain.AbstractMutableDomainObject

getGridId, getId, getVersion, hasGridId, setGridId, setId, setVersion

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

SiteInvestigator

public SiteInvestigator()

Instantiates a new site investigator.

Method Detail

getInvestigator

public Investigator getInvestigator()

Gets the investigator.

Returns:
the investigator

getStudyInvestigators

public java.util.List<StudyInvestigator> getStudyInvestigators()

Gets the study investigators.

Returns:
the study investigators

setStudyInvestigators

public void setStudyInvestigators(java.util.List<StudyInvestigator> studyInvestigators)

Sets the study investigators.

Parameters:
studyInvestigators - the new study investigators

setInvestigator

public void setInvestigator(Investigator investigator)

Sets the investigator.

Parameters:
investigator - the new investigator

getOrganization

public Organization getOrganization()

Gets the organization.

Returns:
the organization

setOrganization

public void setOrganization(Organization organization)

Sets the organization.

Parameters:
organization - the new organization

getEmailAddress

public java.lang.String getEmailAddress()

Gets the email address.

Returns:
the email address

setEmailAddress

public void setEmailAddress(java.lang.String emailAddress)

Sets the email address.

Parameters:
emailAddress - the new email address

getStartDate

public java.util.Date getStartDate()

Gets the start date.

Returns:
the start date

setStartDate

public void setStartDate(java.util.Date startDate)

Sets the start date.

Parameters:
startDate - the new start date

getEndDate

public java.util.Date getEndDate()

Gets the end date.

Returns:
the end date

setEndDate

public void setEndDate(java.util.Date endDate)

Sets the end date.

Parameters:
endDate - the new end date

isActive

public boolean isActive()

Checks if is active.

Returns:
true, if is active

isInActive

public boolean isInActive()

Checks if is in active.

Returns:
true, if is in active

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

getStatus

public java.lang.String getStatus()

This method will return a status text for display purpose's.

Returns:
the status

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


text:
#ifndef BB_ENTITY_H
#define BB_ENTITY_H

namespace bigball
{

class BIGBALL_API Component;
class BIGBALL_API EntityPattern;
class Archive;

namespace json
{
	class Object;
};

class BIGBALL_API Entity
{
	CLASS_EQUIP_BASE_H(Entity)

public:

	enum State
	{
		Empty,
		Created,
		InWorld,
	};

	Array<Component*>	m_components;

					Entity();
	virtual			~Entity();

	static Entity*	NewEntity()		{ return new Entity();	}

	virtual void	Create( EntityPattern* pattern, class json::Object* proto = nullptr, Name in_name = Name() );
	virtual void	Destroy();
	virtual void	AddToWorld();
	virtual void	RemoveFromWorld();
	virtual void	Tick( float DeltaSeconds );
    virtual void    Serialize(Archive& file);
	virtual void    PostLoad();

	bool			IsInWorld()		{ return m_state == InWorld; }
	Component*		GetComponent( Name const& component_name );
	Component*		GetCompatibleComponent( Name const& component_name );
	Name const&		GetName()		{ return m_name;			}

protected:
	EntityPattern*		m_pattern;
	Name				m_name;
	State				m_state;

};

} /* namespace bigball */

#endif // BB_ENTITY_H


text:
package com.google.gerrit.server.restapi.group;

import com.google.gerrit.common.data.GroupDescription;
import com.google.gerrit.common.errors.NoSuchGroupException;
import com.google.gerrit.extensions.common.GroupInfo;
import com.google.gerrit.extensions.restapi.ResourceNotFoundException;
import com.google.gerrit.extensions.restapi.RestReadView;
import com.google.gerrit.server.account.GroupControl;
import com.google.gerrit.server.group.GroupResource;
import com.google.gerrit.server.permissions.PermissionBackendException;
import com.google.gwtorm.server.OrmException;
import com.google.inject.Inject;
import com.google.inject.Singleton;

@Singleton
public class GetOwner implements RestReadView<GroupResource> {

  private final GroupControl.Factory controlFactory;
  private final GroupJson json;

  @Inject
  GetOwner(GroupControl.Factory controlFactory, GroupJson json) {
    this.controlFactory = controlFactory;
    this.json = json;
  }

  @Override
  public GroupInfo apply(GroupResource resource)
      throws NotInternalGroupException, ResourceNotFoundException, OrmException,
          PermissionBackendException {
    GroupDescription.Internal group =
        resource.asInternalGroup().orElseThrow(NotInternalGroupException::new);
    try {
      GroupControl c = controlFactory.validateFor(group.getOwnerGroupUUID());
      return json.format(c.getGroup());
    } catch (NoSuchGroupException e) {
      throw new ResourceNotFoundException(group.getOwnerGroupUUID().get(), e);
    }
  }
}