SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2008, 03:45 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Question SortTechnique and Filter Method?

I was wondering if there is a complete list of valid values for SortTechnique and filter Method as used in the Sort() and FilterByMethod() API calls. I have found a few poking around, but I'm sure there are more that I am not aware of. Does such a list exist, or do I just have to search through the default STV to look for examples? Thanks!

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #2  
Old 09-05-2008, 04:17 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
From the API docs:

Quote:
SortTechnique - the technique to sort the data by; this can be a java.util.Comparator which then explicitly controls the sort, or it can be one of the named sorting techniques of: Intelligent, ChannelNumber, CaseInsensitive, FavoritePriority, Natural or a method name. If null is passed then the elements "natural" sorting is used.
The "or a method name" part means that there is no fixed list of acceptable values. Any API function or Java method with the appropriate call signature can be used as a comparison function by passing its name in string form.

Similarly, the Method for filtering is just the string name of a SageTV API function or Java method that takes an object of the type being filtered and returns an appropriate value (Boolean, String, or Comparable depending on which filter function you're calling).

In either case you're free to write a custom Java function to do the comparison or filtering and pass its name as the SortTechnique or Method.
__________________
-- Greg
Reply With Quote
  #3  
Old 09-05-2008, 04:38 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
Thanks Greg,

You know, I started to write a reply clarifying my request and then I realized what I was missing (thanks to your comments). It looks like there are a number of instances where a Get*() API call is used as a sort technique. I didn't make this connection before as they are just enclosed in quotes (such as "GetPathLastModifiedTime"). Thanks again for your help!

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.