*/
protected Transactionable[] getObjectsToLock() throws UsecaseException {
List nodes = new ArrayList();
Document doc = getSourceDocument();
try {
DocumentSet sources = SiteUtil.getSubSite(this.manager, doc);
Document[] docs = sources.getDocuments();
for (int i = 0; i < docs.length; i++) {
nodes.addAll(Arrays.asList(docs[i].getRepositoryNodes()));
}
DocumentSet targets = SiteUtil.getTransferedSubSite(this.manager,
doc,
getTargetArea(),
SiteUtil.MODE_CHANGE_ID);
docs = targets.getDocuments();
for (int i = 0; i < docs.length; i++) {
nodes.addAll(Arrays.asList(docs[i].getRepositoryNodes()));
}
nodes.add(SiteUtil.getSiteStructure(this.manager, doc).getRepositoryNode());
nodes.add(SiteUtil.getSiteStructure(this.manager, targets.getDocuments()[0])
.getRepositoryNode());
} catch (Exception e) {
throw new UsecaseException(e);
}
return (Transactionable[]) nodes.toArray(new Transactionable[nodes.size()]);