Convert a {@link net.jeremybrooks.jinx.JinxConstants.PrivacyFilter} enum into the corresponding Flickr
privacy filter id.

@param privacyFilter privacy filter enum to convert.
@return Flickr privacy filter id, or 0 if argument is null.
336354
public static int privacyFilterToFlickrPrivacyFilterId(JinxConstants.PrivacyFilter privacyFilter) {
        if (privacyFilter == null) {
            return -1;
        }
        int level;
        switch (privacyFilter) {
            case privacyPublic:
                level = 1;
                break;
            case privacyFriends:
                level = 2;
                break;
            case privacyFamily:
                level = 3;
                break;
            case privacyFriendsAndFamily:
                level = 4;
                break;
            case privacyPrivate:
                level = 5;
                break;
            default:
                level = -1;
                break;
        }
        return level;
    }
469754
public static vpnclientlessaccessprofile[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile();
		options option = new options();
		option.set_filter(filter);
		vpnclientlessaccessprofile[] response = (vpnclientlessaccessprofile[]) obj.getfiltered(service, option);
		return response;
	}
442870
public CmsRelationFilter filterNotDefinedInContent() {

        CmsRelationFilter filter = (CmsRelationFilter)clone();
        if (filter.m_types.isEmpty()) {
            filter.m_types.addAll(CmsRelationType.getAllNotDefinedInContent());
        } else {
            filter.m_types = new HashSet<CmsRelationType>(CmsRelationType.filterNotDefinedInContent(filter.m_types));
        }
        return filter;
    }
461073
public String getAuthorizationUrl(OAuth1RequestToken oAuthRequestToken, Permission permission) {

        OAuth10aService service = new ServiceBuilder(apiKey)
                .apiSecret(sharedSecret)
                .build(FlickrApi.instance());
        String authorizationUrl = service.getAuthorizationUrl(oAuthRequestToken);
        return String.format("%s&perms=%s", authorizationUrl, permission.toString());
    }
889171
public static authenticationauthnprofile[] get_filtered(nitro_service service, String filter) throws Exception{
		authenticationauthnprofile obj = new authenticationauthnprofile();
		options option = new options();
		option.set_filter(filter);
		authenticationauthnprofile[] response = (authenticationauthnprofile[]) obj.getfiltered(service, option);
		return response;
	}
638809
@Override
    public IPersonAttributes getPerson(final String uid,
                                       final IPersonAttributeDaoFilter filter) {
        if (!this.isEnabled()) {
            return null;
        }
        if (uid == null) {
            throw new IllegalArgumentException("Illegal to invoke getPerson(String) with a null argument.");
        }
        return this.backingPerson;
    }
473236
public ParamValueType<FilterType<T>> getOrCreateInitParam()
   {
      List<Node> nodeList = childNode.get("init-param");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ParamValueTypeImpl<FilterType<T>>(this, "init-param", childNode, nodeList.get(0));
      }
      return createInitParam();
   }
435235
public static authenticationradiusaction[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		authenticationradiusaction obj = new authenticationradiusaction();
		options option = new options();
		option.set_filter(filter);
		authenticationradiusaction[] response = (authenticationradiusaction[]) obj.getfiltered(service, option);
		return response;
	}
809056
public static ns_ssl_certkey[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_ssl_certkey obj = new ns_ssl_certkey();
		options option = new options();
		option.set_filter(filter);
		ns_ssl_certkey[] response = (ns_ssl_certkey[]) obj.getfiltered(service, option);
		return response;
	}
261991
public static long count_filtered(nitro_service service, String certkey, String filter) throws Exception{
		sslcertkey_service_binding obj = new sslcertkey_service_binding();
		obj.set_certkey(certkey);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		sslcertkey_service_binding[] response = (sslcertkey_service_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
190761
public CmsVisitEntryFilter filterFrom(long from) {

        CmsVisitEntryFilter filter = (CmsVisitEntryFilter)clone();
        filter.m_dateFrom = from;
        return filter;
    }
927525
public static ssl_key[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ssl_key obj = new ssl_key();
		options option = new options();
		option.set_filter(filter);
		ssl_key[] response = (ssl_key[]) obj.getfiltered(service, option);
		return response;
	}
461422
public static long count_filtered(nitro_service service, String id, String filter) throws Exception{
		linkset_channel_binding obj = new linkset_channel_binding();
		obj.set_id(id);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		linkset_channel_binding[] response = (linkset_channel_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
1181123
public static vrid[] get_filtered(nitro_service service, String filter) throws Exception{
		vrid obj = new vrid();
		options option = new options();
		option.set_filter(filter);
		vrid[] response = (vrid[]) obj.getfiltered(service, option);
		return response;
	}
901578
public FilterType<WebFragmentType<T>> getOrCreateFilter()
   {
      List<Node> nodeList = childNode.get("filter");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FilterTypeImpl<WebFragmentType<T>>(this, "filter", childNode, nodeList.get(0));
      }
      return createFilter();
   }
570185
public static vpnglobal_vpnclientlessaccesspolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		vpnglobal_vpnclientlessaccesspolicy_binding obj = new vpnglobal_vpnclientlessaccesspolicy_binding();
		options option = new options();
		option.set_filter(filter);
		vpnglobal_vpnclientlessaccesspolicy_binding[] response = (vpnglobal_vpnclientlessaccesspolicy_binding[]) obj.getfiltered(service, option);
		return response;
	}
1271549
public synchronized MemberId loadVote() {
    String id = metadataBuffer.readString(8);
    return id != null ? MemberId.from(id) : null;
  }