Package org.ametys.odf.content.code
Class RandomCodeGenerator
java.lang.Object
org.ametys.odf.content.code.AbstractUniqueCodeGenerator
org.ametys.odf.content.code.RandomCodeGenerator
- All Implemented Interfaces:
UniqueCodeGenerator,PluginAware,Configurable
Implementation of
UniqueCodeGenerator that generates a random code based on System.currentTimeMillis()-
Field Summary
Fields inherited from class org.ametys.odf.content.code.AbstractUniqueCodeGenerator
_pluginName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateUniqueCode(String odfContentTypeId) Generate a unique codeMethods inherited from class org.ametys.odf.content.code.AbstractUniqueCodeGenerator
configure, getId, getLabel, setPluginInfo
-
Constructor Details
-
RandomCodeGenerator
public RandomCodeGenerator()
-
-
Method Details
-
generateUniqueCode
Description copied from interface:UniqueCodeGeneratorGenerate a unique code- Parameters:
odfContentTypeId- The ODF content type- Returns:
- a unique code
-