bean id: IdGenerator
The IdGenerator is used by Jetspeed 2 to generate unique id's were they are required. You can define any number of IdGenerators, however, only one can have the id of IdGenerator, which is the one that Jetspeed 2 will use for generating unique id's when requested. However, you can easily chane this by finding all of the other bean definitions within jetspeed-spring.xml that reference IdGenerator and change them to a custom id generator you have defined OR you can simply change the existing IdGenerator bean to use your own, custom IdGenerator implementation.
The default implemetation of the IdGenerator uses a simple, sequential alogrithm for generating unique ids. The configuration requires a starting value and optionally a unqiue prefix and suffix.
<bean id="IdGenerator" class="org.apache.jetspeed.idgenerator.JetspeedIdGenerator" init-method="start" destroy-method="stop" > <!-- ID Start value --> <constructor-arg index="0"><value>65536</value></constructor-arg> <!-- ID Prefix --> <constructor-arg index="1"><value>P-</value></constructor-arg> <!-- ID Suffix --> <constructor-arg index="2"><value></value></constructor-arg> </bean>