|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.soa.id.DefaultIDGeneratorService
public class DefaultIDGeneratorService
default ID generator. A data modeller can specify parameters for prefix and keys to exclude from generation.
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
| Constructor Summary | |
|---|---|
DefaultIDGeneratorService()
|
|
| Method Summary | |
|---|---|
void |
excludeKey(String keyToExclude)
excludes a key as a possible value to generate. |
String |
generateKey(Project35FormContext project35FormContext)
generates an identifier value that Project35 can insert into a field that takes ID values |
Parameter[] |
getInitialisationParameters()
|
Parameter[] |
getParameters()
|
void |
initialiseService(URL resourceDirectory,
Parameter[] parameters)
|
void |
setIDPrefix(String identifierPrefix)
set the prefix of identifier keys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIDGeneratorService()
| Method Detail |
|---|
public void setIDPrefix(String identifierPrefix)
identifierPrefix - the prefix that is used
to create key valuespublic void excludeKey(String keyToExclude)
IDGeneratorService
excludeKey in interface IDGeneratorServicekeyToExclude - an identifier value that can't be generated by the
ID Generator servicepublic Parameter[] getParameters()
public String generateKey(Project35FormContext project35FormContext)
IDGeneratorService
generateKey in interface IDGeneratorServiceproject35FormContext - collection of environment variables that
can be used to access different parts of the Project35 application.
Information in these variables may help determine the best identifier
to return.public Parameter[] getInitialisationParameters()
getInitialisationParameters in interface ServiceClass
public void initialiseService(URL resourceDirectory,
Parameter[] parameters)
throws Exception
initialiseService in interface ServiceClassException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||