GetContactType Method.
10593
public ContactType getContactType(Person recPerson)
    {
        if (m_recContactType == null)
        {
            m_recContactType = (ContactType)Record.makeRecordFromClassName(ContactTypeModel.CONTACT_TYPE_FILE, this.getOwner().getRecord().findRecordOwner());
            if (((Record)m_recContactType).getRecordOwner() != null)
                ((Record)m_recContactType).getRecordOwner().removeRecord((Record)m_recContactType);
        }
        return m_recContactType.getContactType(recPerson);
    }
931688
@Override
   public String getContentType()
   {
      try
      {
         if (!connected)
         {
            connect();
         }

         return nodeRepresentation.getMediaType();
      }
      catch (IOException e)
      {
         if (LOG.isTraceEnabled())
         {
            LOG.trace("An exception occurred: " + e.getMessage());
         }
      }
      catch (RepositoryException e)
      {
         if (LOG.isTraceEnabled())
         {
            LOG.trace("An exception occurred: " + e.getMessage());
         }
      }
      return null;
   }
415223
def get_my_contacts(self):
        
        my_contacts = self.wapi_functions.getMyContacts()
        return [Contact(contact, self) for contact in my_contacts]
1197151
function getSingleCallSignature(type) {
            if (type.flags & 2588672 /* ObjectType */) {
                var resolved = resolveStructuredTypeMembers(type);
                if (resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0 &&
                    resolved.properties.length === 0 && !resolved.stringIndexInfo && !resolved.numberIndexInfo) {
                    return resolved.callSignatures[0];
                }
            }
            return undefined;
        }
671179
def getContactCreationParameters(self):
        
        for contactType in self.getContactTypes():
            if contactType.allowMultipleContactItems:
                descriptiveIdentifier = _descriptiveIdentifier(contactType)
                yield liveform.ListChangeParameter(
                    contactType.uniqueIdentifier(),
                    contactType.getParameters(None),
                    defaults=[],
                    modelObjects=[],
                    modelObjectDescription=descriptiveIdentifier)
            else:
                yield liveform.FormParameter(
                    contactType.uniqueIdentifier(),
                    liveform.LiveForm(
                        lambda **k: k,
                        contactType.getParameters(None)))
679138
def getContactItems(self, person):
        
        return person.store.query(
            PhoneNumber, PhoneNumber.person == person)
696869
func (r Account_Contact) GetAllContactTypes() (resp []datatypes.Account_Contact_Type, err error) {
	err = r.Session.DoRequest("SoftLayer_Account_Contact", "getAllContactTypes", nil, &r.Options, &resp)
	return
}
720197
def getClientContact(self):
        
        pc = getToolByName(api.portal.get(), 'portal_catalog')
        contentFilter = {'portal_type': 'Contact',
                         'id': self.client_contact}
        cnt = pc(contentFilter)
        cntdict = {'uid': '', 'id': '', 'fullname': '', 'url': ''}
        if len(cnt) == 1:
            cnt = cnt[0].getObject()
            cntdict = {
                'uid': cnt.id,
                'id': cnt.UID(),
                'fullname': cnt.getFullname(),
                'url': cnt.absolute_url(),
            }
        else:
            from bika.lims import logger
            error = "Error when looking for contact with id '%s'. "
            logger.exception(error, self.client_contact)
        return cntdict
844226
public void openOtherRecords()
    {
        super.openOtherRecords();
        Record recContactType = ((ReferenceField)this.getMainRecord().getField(MessageDetail.CONTACT_TYPE_ID)).getReferenceRecord(this);
    }
644210
function printScannedDataConnectionTypes(scannedData) {
        var keys = Object.keys(scannedData);
        keys.forEach(function(key) {
            var dev = scannedData[key];
            var cts = dev.connectionTypes;
            debugLFDS(key, cts);
        });
    }
118865
public boolean isContactDisplay()
    {
        String strUserContactType = this.getProperty(DBParams.CONTACT_TYPE);
        String strUserContactID = this.getProperty(DBParams.CONTACT_ID);
        
        String strContactType = ((ReferenceField)this.getScreenRecord().getField(MessageLogScreenRecord.CONTACT_TYPE_ID)).getReference().getField(ContactType.CODE).toString();
        String strContactID = this.getScreenRecord().getField(MessageLogScreenRecord.CONTACT_ID).toString();
        
        if ((strUserContactID != null) && (strUserContactID.equals(strContactID)))
            if ((strUserContactType != null) && (strUserContactType.equals(strContactType)))
                return true;
        return false;
    }
794580
def getContactTypes(self):
        
        yield VIPPersonContactType()
        yield EmailContactType(self.store)
        yield PostalContactType()
        yield PhoneNumberContactType()
        yield NotesContactType()
        for getContactTypes in self._gatherPluginMethods('getContactTypes'):
            for contactType in getContactTypes():
                self._checkContactType(contactType)
                yield contactType
884297
public int getConnectionType()
    {
        int iConnectionType = DEFAULT_CONNECTION_TYPE;
        if (this.getMuffinManager() != null)
            if (this.getMuffinManager().isServiceAvailable())
                iConnectionType = PROXY;    // HACK - Webstart gives a warning when using RMI
        String strConnectionType = this.getProperty(Params.CONNECTION_TYPE);
        if (strConnectionType != null)
        {
            if ("proxy".equalsIgnoreCase(strConnectionType))
                iConnectionType = PROXY;
//x                 if ("rmi".equalsIgnoreCase(strConnectionType))
//x                     iConnectionType = RMI;
            if (Util.isNumeric(strConnectionType))
                iConnectionType = Integer.parseInt(strConnectionType);
        }
        if (ClassServiceUtility.getClassService().getClassFinder(null) == null)
            iConnectionType = PROXY;    // No OSGi
        /*                if (iConnectionType == RMI)
        {
            try {
                Hashtable<String,String> env = new Hashtable<String,String>();
                env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
                env.put(Context.PROVIDER_URL, "rmi://" + strServer);    // + ":1099");  // The RMI server port
                Context initial = new InitialContext(env);
                Object objref = initial.lookup(strRemoteApp);
                if (objref == null)
                    return null;    // Ahhhhh, The app is not registered.
    
                appServer = (ApplicationServer)PortableRemoteObject.narrow(objref, org.jbundle.thin.base.remote.ApplicationServer.class);
            } catch (NameNotFoundException ex) {
                return null;    // Error - not found
            } catch (ServiceUnavailableException ex) {
                return null;    // Error - not found
            } catch (Exception ex) {
                ex.printStackTrace();
    //        } catch (java.net.ConnectException ex) {
                // Try tunneling through http
                iConnectionType = PROXY;
            }
        } */
        return iConnectionType;
    }
323954
def _checkContactType(self, contactType):
        
        if getattr(contactType, 'getEditFormForPerson', None) is None:
            warn(
                "IContactType now has the 'getEditFormForPerson'"
                " method, but %s did not implement it." % (
                    contactType.__class__,),
                category=PendingDeprecationWarning)

        if getattr(contactType, 'getEditorialForm', None) is not None:
            warn(
                "The IContactType %s defines the 'getEditorialForm'"
                " method, which is deprecated.  'getEditFormForPerson'"
                " does something vaguely similar." % (contactType.__class__,),
                category=DeprecationWarning)
446329
public function getContactType()
    {
        if (null === $this->contact_type) {
            return null;
        }
        $valueSet = DealerContactInfoTableMap::getValueSet(DealerContactInfoTableMap::CONTACT_TYPE);
        if (!isset($valueSet[$this->contact_type])) {
            throw new PropelException('Unknown stored enum key: ' . $this->contact_type);
        }

        return $valueSet[$this->contact_type];
    }
998358
def calling_convention(self):
        """"""
        if self._calling_convention is None:
            self._calling_convention = \
                calldef_types.CALLING_CONVENTION_TYPES.extract(self.attributes)
            if not self._calling_convention:
                self._calling_convention = self.guess_calling_convention()
        return self._calling_convention
529624
public String getOtherTrackType()
	{
		final Element element = getElement("Type", 0);

		if (element != null)
		{
			return element.getText();
		}
		else
		{
			return null;
		}
	}