VersioningServices

Hello, I want override some functions like doPostCreate, or setInitialVersion. i use more documentmodels and lifecycleState customized.

Must i use : public class Versioning extends StandardVersioningService{} or an other class ?

<service class="my.classe.Versioning" />

Thanks

0 votes

1 answers

814 views

ANSWER



The use of the class “StandardVersioningService " seems correct

public class Versioning extends StandardVersioningService {

@Override
protected void setInitialVersion(Document doc) throws DocumentException {
    InitialStateDescriptor initialState = null;
            ...
}
}
0 votes