Interface UniqueIdService
- 
- All Known Implementing Classes:
- TurbineUniqueIdService
 
 public interface UniqueIdService extends Service This service provides unique identifiers for the instance of Turbine, and for objects it creates. - Version:
- $Id$
- Author:
- Rafal Krzewski
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringSERVICE_NAMEThe service name
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetInstanceId()Returns an identifier of this Turbine instance that is unique both on the server and worldwide.StringgetPseudorandomId()Returns a unique identifier that looks like random data.StringgetUniqueId()Returns an identifier that is unique within this Turbine instance, but does not have random-like appearance.- 
Methods inherited from interface org.apache.turbine.services.InitablegetInit, init, init, setInitableBroker, shutdown
 - 
Methods inherited from interface org.apache.turbine.services.ServicegetConfiguration, getName, getProperties, setName, setServiceBroker
 
- 
 
- 
- 
- 
Field Detail- 
SERVICE_NAMEstatic final String SERVICE_NAME The service name- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getInstanceIdString getInstanceId() Returns an identifier of this Turbine instance that is unique both on the server and worldwide. - Returns:
- A String with the instance identifier.
 
 - 
getUniqueIdString getUniqueId() Returns an identifier that is unique within this Turbine instance, but does not have random-like appearance. This method is intended to work fast; it can be used for creating names of temporary files. - Returns:
- A String with the non-random looking instance identifier.
 
 - 
getPseudorandomIdString getPseudorandomId() Returns a unique identifier that looks like random data. This method provides identifiers in a way that makes it hard to guess or count, but still ensures their uniqueness within this instance of Turbine. It can be used for generating cookies or other data that travels back and forth between server and browser, and is potentially security sensitive. - Returns:
- A String with the random looking instance identifier.
 
 
- 
 
-