WebKiosk/Rental Profiles

From CasperTech Wiki
Jump to navigation Jump to search

What Are Rental Profiles?

Rental profiles allow you to specify which group of units will be shown via a particular rental kiosk They're basically stored searches, which are intelligently cached by our servers to ensure that everything runs as quickly as possible.

The default behavior is for the rental kiosks and vendors to show all of your rentals, across all sims/regions.

If you want to sort specific units to specific kiosks/vendors, then you will need to use rental profiles.

Rental profiles (and their associated rule filters) allow you to add filter rules to specify which units you want to display via a particular kiosk or vendor.

Overview of Profile Rule Filters


A rental kiosk may use a rental profile instead of the default setting.

A rental kiosk is only able to display ONE profile - but the profile may include any number of rule filters, which the system will interpret to filter the display of your rental units in a specific manner. (Much the same way as you'd use email filters to sort specific emails to specific folders in your email client.)

When a new rental unit is added, deleted, or a rental state change occurs, the system first tests each of your profiles against that single unit key to see if the unit is "included" in the profile.

If a match is found, then the full profile is regenerated, and cached.

This means that a query is not performed every time someone browses a vendor or loads the units on the website, but instead only when the data changes. This keeps everything running quickly despite the complex queries involved.

What Is In a Rental Profile?

A complete profile may hold one, or multiple rule filters. At the present time there are no limits on the number of rule filters that may be added to a profile.

The components of a complete rental profile are:

  1. Profile name (this is shown on the CasperPanel website)
  2. Avatar name (the owner of the rental kiosk)
  3. The rule filter(s).

The rule filter components are:

  1. Pulldown box to select Include or Exclude
  2. Pulldown box to select "Where" clause (owner name, owner uuid, unit name, unit uuid, unit group, region name)
    Note: This is a search TYPE, not a location reference.
  3. Pulldown box to select "Condition" clause (equals, contains, doesn't equal, doesn't contain)
  4. Search query (keywords you type in)

Don't forget to click "Save" when you're done setting up a rule filter!

Avatar Account Name


This is the owner of the rental kiosk. The profiles created under this avatar name can only be attached to kiosk(s) owned by the same avatar. This is so the system knows who the payments are initially going to when the kiosk is paid.

Rule Filter Options


"Include" or "Exclude":
You have a pulldown to select either "include" or "exclude. "Include" rules are run first, to include the maximum number of rental units that match. "Exclude" rules are run after, so any of the previously included units matching the exclude rules will be removed from the end results.

"Where" clause:
This is the type of search the rule is doing. You have a pulldown to select search by "unit name", "unit UUID", "unit group", or "region name".
When "unit group" is selection, the rules options change to present you with a dropdown to select a group you've already created.

"Condition" clause:
This allows you to match your search query as "Equals (equal to)", "contains", "doesn't equal", or "doesn't contain".

If the selected "where" clause is "unit group", then the "condition" is always "equals", and the search term turns into a dropdown box showing the groups you've already defined.

Search Term:
This is where you can actually type in the search term you want to use, such as the sim/region name if you're setting profiles by regions.

Don't forget to click "Save" when you're done setting up a rule filter!

Editing Existing Rental Profiles


To edit existing rule filters, you will need to:

  1. Select the profile name from the dropdown
  2. click the "Edit" button
  3. You will get a popup with the selected rental profile information

The things you may do on this popup window are:

  • Edit the profile NAME
  • Delete existing rule filters
  • Add new rule filters

And of course, don't forget to SAVE your changes!

Testing


When you click save, the system will perform a test query and show you how many units were found, as well as how long the search took to complete based on your rule filters.

Currently there is no limit on the time this test query will take, however, time limits MAY be enforced in the future to maintain system performance at an acceptable level for everyone.

Examples

If I want to include units owned by "Casper Warden", but not those which include "demo" in the name, the profile needs to contain the following:

  • Select "Avatar" name of Casper Warden
  • Rule #: Exclude units where Unit Name contains "Demo"