Interface IdentifierService
-
- All Known Implementing Classes:
IdentifierServiceImpl
@AlfrescoPublicApi public interface IdentifierService
Records management identifier service- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_NODEREF
Context value namesstatic String
CONTEXT_ORIG_TYPE
static String
CONTEXT_PARENT_NODEREF
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
generateIdentifier(NodeRef nodeRef)
Generate an identifier for the given node.String
generateIdentifier(QName type, NodeRef parent)
Generate an identifier for a node with the given type and parent.void
register(IdentifierGenerator identifierGenerator)
Register an identifier generator implementation with the service.
-
-
-
Field Detail
-
CONTEXT_NODEREF
static final String CONTEXT_NODEREF
Context value names- See Also:
- Constant Field Values
-
CONTEXT_PARENT_NODEREF
static final String CONTEXT_PARENT_NODEREF
- See Also:
- Constant Field Values
-
CONTEXT_ORIG_TYPE
static final String CONTEXT_ORIG_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
register
void register(IdentifierGenerator identifierGenerator)
Register an identifier generator implementation with the service.- Parameters:
identifierGenerator
- identifier generator implementation
-
generateIdentifier
String generateIdentifier(QName type, NodeRef parent)
Generate an identifier for a node with the given type and parent.- Parameters:
type
- type of the nodeparent
- parent of the ndoe- Returns:
- String generated identifier
-
-