public class PageSequenceNameGenerator extends Object implements NameGenerator
Constructor and Description |
---|
PageSequenceNameGenerator(ContentLocation location) |
PageSequenceNameGenerator(ContentLocation location,
String defaultNameHint) |
PageSequenceNameGenerator(ContentLocation location,
String defaultNameHint,
String defaultSuffix) |
Modifier and Type | Method and Description |
---|---|
String |
generateName(String nameHint,
String mimeType)
Generates a new, unique name for storing resources in the output repository.
|
public PageSequenceNameGenerator(ContentLocation location)
public PageSequenceNameGenerator(ContentLocation location, String defaultNameHint)
public PageSequenceNameGenerator(ContentLocation location, String defaultNameHint, String defaultSuffix)
public String generateName(String nameHint, String mimeType) throws ContentIOException
generateName
in interface NameGenerator
nameHint
- a user defined name for that resource.mimeType
- the mime type of the resource to be stored in the repository.ContentIOException
- if the name could not be generated for any reason.Copyright © 2019 Hitachi Vantara. All rights reserved.