org.proteios.core
Class SystemItems
java.lang.Object
org.proteios.core.SystemItems
public class SystemItems
- extends Object
This class is used to map the system id of all SystemData items to the numerical internal
id in the current installation. This information is initialised
at startup and is then kept in memory.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $
|
Method Summary |
static int |
getId(String systemId)
Get the numeric id for an item when you know the system id. |
static int |
getRoleKeyId(Item itemType)
Get the numeric id for a RoleKey when you know the Item
type of the RoleKey. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemItems
public SystemItems()
getId
public static int getId(String systemId)
- Get the numeric id for an item when you know the system id.
- Parameters:
systemId - The system id string
- Returns:
- The numeric id of the item, or 0 if it could not be found
getRoleKeyId
public static int getRoleKeyId(Item itemType)
- Get the numeric id for a
RoleKey when you know the Item
type of the RoleKey.
- Parameters:
itemType - The item type code as defined by the Item class
- Returns:
- The numeric id for the RoleKey