Nuxeo Enterprise Platform 5.4

org.nuxeo.correspondence.core.generators
Class CorrespondenceUIDGenerator

java.lang.Object
  extended by org.nuxeo.ecm.platform.uidgen.AbstractUIDGenerator
      extended by org.nuxeo.correspondence.core.generators.CorrespondenceUIDGenerator
All Implemented Interfaces:
org.nuxeo.ecm.platform.uidgen.UIDGenerator

public class CorrespondenceUIDGenerator
extends org.nuxeo.ecm.platform.uidgen.AbstractUIDGenerator

Generates an UID with a specific format for a given document

Author:
Mariana Cedica

Field Summary
static String NFORMAT
           
static String NXC_PREFIX
           
static String NXC_PREFIX_IN
           
static String NXC_PREFIX_OUT
           
 
Constructor Summary
CorrespondenceUIDGenerator()
           
 
Method Summary
 String createUID(org.nuxeo.ecm.core.api.DocumentModel doc)
           
 String getSequenceKey(org.nuxeo.ecm.core.api.DocumentModel doc)
           
 
Methods inherited from class org.nuxeo.ecm.platform.uidgen.AbstractUIDGenerator
getPropertyName, getPropertyNames, setPropertyName, setPropertyNames, setSequencer, setUID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NXC_PREFIX

public static final String NXC_PREFIX
See Also:
Constant Field Values

NXC_PREFIX_IN

public static final String NXC_PREFIX_IN
See Also:
Constant Field Values

NXC_PREFIX_OUT

public static final String NXC_PREFIX_OUT
See Also:
Constant Field Values

NFORMAT

public static final String NFORMAT
See Also:
Constant Field Values
Constructor Detail

CorrespondenceUIDGenerator

public CorrespondenceUIDGenerator()
Method Detail

getSequenceKey

public String getSequenceKey(org.nuxeo.ecm.core.api.DocumentModel doc)
                      throws org.nuxeo.ecm.core.api.DocumentException
Throws:
org.nuxeo.ecm.core.api.DocumentException

createUID

public String createUID(org.nuxeo.ecm.core.api.DocumentModel doc)
                 throws org.nuxeo.ecm.core.api.DocumentException
Throws:
org.nuxeo.ecm.core.api.DocumentException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.