Package org.xwiki.filemanager.reference
Interface UniqueDocumentReferenceGenerator
-
@Role @Unstable public interface UniqueDocumentReferenceGeneratorInterface used to generate a uniqueDocumentReference, i.e. a reference to a document that doesn't exist.- Since:
- 2.0RC1
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.xwiki.model.reference.DocumentReferencegenerate(org.xwiki.model.reference.SpaceReference spaceReference, Iterator<String> documentNameSequence)Iterates the given sequence of document names until it finds one that doesn't exist already in the specified space or that isn't already reserved.
-
-
-
Method Detail
-
generate
org.xwiki.model.reference.DocumentReference generate(org.xwiki.model.reference.SpaceReference spaceReference, Iterator<String> documentNameSequence)Iterates the given sequence of document names until it finds one that doesn't exist already in the specified space or that isn't already reserved.- Parameters:
spaceReference- the space where the generated document name must be uniquedocumentNameSequence- a sequence of document names that will be iterated until a document name that is unique in the specified space is found- Returns:
- the reference to the first document in the given sequence that doesn't exist already in the specified space, or that isn't already reserved
-
-