* Document.txt --> Document_fr.txt ** * The necessary translation structures will be created as necessary. * * @param translationOfNodeRef An existing cm:mlDocument * @param name The name of the file to create, or null to use * the default naming convention. * @return Returns the new created cm:mlEmptyTranslation */ @Auditable(key = Auditable.Key.ARG_0, parameters = {"translationOfNodeRef", "name", "locale"}) NodeRef addEmptyTranslation(NodeRef translationOfNodeRef, String name, Locale locale); /** * Copies the given cm:mlContainer. *
* This involves the copy of the cm:mlContainer node and the copy of its cm:mlDocument. *
* * @param translationNodeRef The cm:mlContainer to copy * @param newParentRef The new parent of the copied cm:mlDocument * @param prefixName The prefix of the name of the copied translations. Can be null. * @return The copied cm:mlContainer * @throws FileNotFoundException * @throws FileExistsException * @throws Exception */ @Auditable(key = Auditable.Key.ARG_0, parameters = {"mlContainerNodeRef", "newParentRef"}) NodeRef copyTranslationContainer(NodeRef mlContainerNodeRef, NodeRef newParentRef, String prefixName) throws FileExistsException, FileNotFoundException, Exception; /** * Moves the location of the given cm:mlContainer. *
* This not involves changing the cm:mlContainer node but moves its cm:mlDocument. *
* * @param translationNodeRef The cm:mlContainer to move * @param newParentRef The new parent of the moved cm:mlDocument * @throws FileExistsException * @throws FileNotFoundException */ @Auditable(key = Auditable.Key.ARG_0, parameters = {"mlContainerNodeRef", "newParentRef"}) void moveTranslationContainer(NodeRef mlContainerNodeRef, NodeRef newParentRef) throws FileExistsException, FileNotFoundException; /** * Delete the given mlContainer and its translations. The translations will lost their cm:mlDocument aspect and * will be archved. The empty translations will be permanently deleted. * * @param mlContainerNodeRef The cm:mlContainer to remove */ @Auditable(key = Auditable.Key.ARG_0, parameters = {"mlContainerNodeRef"}) void deleteTranslationContainer(NodeRef mlContainerNodeRef); }