public class ContentManagerHelper extends Object
| Constructor and Description |
|---|
ContentManagerHelper() |
| Modifier and Type | Method and Description |
|---|---|
JCRNodeWrapper |
addNode(JCRNodeWrapper parentNode,
String name,
String nodeType,
List<String> mixin,
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props,
Locale uiLocale)
Deprecated.
: This method is used only to maintain compatibility with existing modules. Do not use it !
|
JCRNodeWrapper |
addNode(JCRNodeWrapper parentNode,
String name,
String nodeType,
List<String> mixin,
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props,
Locale uiLocale,
String httpSessionID) |
boolean |
checkExistence(String path,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
void |
checkWriteable(List<String> paths,
JahiaUser user,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
void |
clearAllLocks(String path,
boolean processChildNodes,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
List<org.jahia.ajax.gwt.client.data.node.GWTJahiaNode> |
copy(List<String> pathsToCopy,
String destinationPath,
String newName,
boolean moveOnTop,
boolean cut,
boolean reference,
boolean allLanguages,
JCRSessionWrapper currentUserSession) |
List<org.jahia.ajax.gwt.client.data.node.GWTJahiaNode> |
copy(List<String> pathsToCopy,
String destinationPath,
String newName,
boolean moveOnTop,
boolean cut,
boolean reference,
List<String> childNodeTypesToSkip,
boolean allLanguages,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
createFolder(String parentPath,
String name,
JCRSessionWrapper currentUserSession,
Locale uiLocale,
String httpSessionID) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
createNode(String parentPath,
String name,
String nodeType,
List<String> mixin,
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props,
JCRSessionWrapper currentUserSession,
Locale uiLocale,
Map<String,String> parentNodesType,
boolean forceCreation)
Deprecated.
: This method is used only to maintain compatibility with existing modules. Do not use it !
|
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
createNode(String parentPath,
String name,
String nodeType,
List<String> mixin,
List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props,
JCRSessionWrapper currentUserSession,
Locale uiLocale,
Map<String,String> parentNodesType,
boolean forceCreation,
String httpSessionID) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
deletePaths(List<String> paths,
boolean permanentlyDelete,
String comment,
JahiaUser user,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
void |
deleteReferences(String path,
JahiaUser user,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
String |
findAvailableName(JCRNodeWrapper dest,
String name) |
String |
generateNameFromTitle(List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props) |
org.jahia.ajax.gwt.client.data.acl.GWTJahiaNodeACL |
getACL(String path,
boolean newAcl,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
List<org.jahia.ajax.gwt.client.data.GWTJahiaContentHistoryEntry> |
getContentHistory(JCRSessionWrapper session,
String nodeIdentifier,
int offset,
int limit) |
void |
importContent(String parentPath,
String fileKey,
boolean replaceContent,
JCRSessionWrapper session,
Locale uiLocale,
String httpSessionID) |
void |
importContent(String parentPath,
String fileKey,
JCRSessionWrapper session,
Locale uiLocale,
String httpSessionID) |
void |
markConflictAsResolved(String moduleId,
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode node,
JCRSessionWrapper session) |
void |
move(String sourcePath,
String targetPath,
JCRSessionWrapper currentUserSession) |
void |
moveAtEnd(String sourcePath,
String targetPath,
JCRSessionWrapper currentUserSession) |
void |
moveOnTopOf(String sourcePath,
String targetPath,
JCRSessionWrapper currentUserSession) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
rename(String path,
String newName,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
void |
saveVisibilityConditions(org.jahia.ajax.gwt.client.data.node.GWTJahiaNode node,
List<org.jahia.ajax.gwt.client.data.node.GWTJahiaNode> conditions,
JCRSessionWrapper session,
Locale uiLocale,
String httpSessionID) |
org.jahia.ajax.gwt.client.data.node.GWTJahiaNode |
sendToSourceControl(String moduleId,
String scmURI,
String scmType,
JCRSessionWrapper session) |
void |
setACL(String uuid,
org.jahia.ajax.gwt.client.data.acl.GWTJahiaNodeACL acl,
JCRSessionWrapper currentUserSession) |
void |
setContentHistoryService(ContentHistoryService contentHistoryService) |
void |
setFileStorage(SessionNamedDataStorage<UploadedPendingFile> fileStorage) |
void |
setLock(List<String> paths,
boolean toLock,
JCRSessionWrapper currentUserSession) |
void |
setNavigation(NavigationHelper navigation) |
void |
setProperties(PropertiesHelper properties) |
void |
setSitesService(JahiaSitesService sitesService) |
void |
setTemplateManagerService(JahiaTemplateManagerService templateManagerService) |
void |
setVersioning(VersioningHelper versioning) |
void |
undeletePaths(List<String> paths,
JahiaUser user,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
void |
uploadedFile(String location,
String tmpName,
int operation,
String newName,
JCRSessionWrapper currentUserSession,
Locale uiLocale,
String httpSessionID)
Upload file depending on operation (add version, auto-rename or just upload)
|
public void setNavigation(NavigationHelper navigation)
public void setProperties(PropertiesHelper properties)
public void setSitesService(JahiaSitesService sitesService)
public void setVersioning(VersioningHelper versioning)
public void setContentHistoryService(ContentHistoryService contentHistoryService)
public void setTemplateManagerService(JahiaTemplateManagerService templateManagerService)
public void setFileStorage(SessionNamedDataStorage<UploadedPendingFile> fileStorage)
@Deprecated public JCRNodeWrapper addNode(JCRNodeWrapper parentNode, String name, String nodeType, List<String> mixin, List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic JCRNodeWrapper addNode(JCRNodeWrapper parentNode, String name, String nodeType, List<String> mixin, List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props, Locale uiLocale, String httpSessionID) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceException@Deprecated public org.jahia.ajax.gwt.client.data.node.GWTJahiaNode createNode(String parentPath, String name, String nodeType, List<String> mixin, List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props, JCRSessionWrapper currentUserSession, Locale uiLocale, Map<String,String> parentNodesType, boolean forceCreation) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode createNode(String parentPath, String name, String nodeType, List<String> mixin, List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props, JCRSessionWrapper currentUserSession, Locale uiLocale, Map<String,String> parentNodesType, boolean forceCreation, String httpSessionID) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic String generateNameFromTitle(List<org.jahia.ajax.gwt.client.data.definition.GWTJahiaNodeProperty> props)
public org.jahia.ajax.gwt.client.data.node.GWTJahiaNode createFolder(String parentPath, String name, JCRSessionWrapper currentUserSession, Locale uiLocale, String httpSessionID) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic String findAvailableName(JCRNodeWrapper dest, String name)
public boolean checkExistence(String path, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void move(String sourcePath, String targetPath, JCRSessionWrapper currentUserSession) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void moveAtEnd(String sourcePath, String targetPath, JCRSessionWrapper currentUserSession) throws javax.jcr.RepositoryException, org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
javax.jcr.RepositoryExceptionorg.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void moveOnTopOf(String sourcePath, String targetPath, JCRSessionWrapper currentUserSession) throws javax.jcr.RepositoryException, org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
javax.jcr.RepositoryExceptionorg.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void checkWriteable(List<String> paths, JahiaUser user, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic List<org.jahia.ajax.gwt.client.data.node.GWTJahiaNode> copy(List<String> pathsToCopy, String destinationPath, String newName, boolean moveOnTop, boolean cut, boolean reference, boolean allLanguages, JCRSessionWrapper currentUserSession) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic List<org.jahia.ajax.gwt.client.data.node.GWTJahiaNode> copy(List<String> pathsToCopy, String destinationPath, String newName, boolean moveOnTop, boolean cut, boolean reference, List<String> childNodeTypesToSkip, boolean allLanguages, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode deletePaths(List<String> paths, boolean permanentlyDelete, String comment, JahiaUser user, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void undeletePaths(List<String> paths, JahiaUser user, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode rename(String path, String newName, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void importContent(String parentPath, String fileKey, JCRSessionWrapper session, Locale uiLocale, String httpSessionID) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void importContent(String parentPath, String fileKey, boolean replaceContent, JCRSessionWrapper session, Locale uiLocale, String httpSessionID) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic org.jahia.ajax.gwt.client.data.acl.GWTJahiaNodeACL getACL(String path, boolean newAcl, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void setACL(String uuid, org.jahia.ajax.gwt.client.data.acl.GWTJahiaNodeACL acl, JCRSessionWrapper currentUserSession) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void clearAllLocks(String path, boolean processChildNodes, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void setLock(List<String> paths, boolean toLock, JCRSessionWrapper currentUserSession) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void uploadedFile(String location, String tmpName, int operation, String newName, JCRSessionWrapper currentUserSession, Locale uiLocale, String httpSessionID) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
location - tmpName - operation - newName - currentUserSession - org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void markConflictAsResolved(String moduleId, org.jahia.ajax.gwt.client.data.node.GWTJahiaNode node, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionpublic org.jahia.ajax.gwt.client.data.node.GWTJahiaNode sendToSourceControl(String moduleId, String scmURI, String scmType, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException
IOExceptionjavax.jcr.RepositoryExceptionpublic List<org.jahia.ajax.gwt.client.data.GWTJahiaContentHistoryEntry> getContentHistory(JCRSessionWrapper session, String nodeIdentifier, int offset, int limit) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void deleteReferences(String path, JahiaUser user, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void saveVisibilityConditions(org.jahia.ajax.gwt.client.data.node.GWTJahiaNode node,
List<org.jahia.ajax.gwt.client.data.node.GWTJahiaNode> conditions,
JCRSessionWrapper session,
Locale uiLocale,
String httpSessionID)
throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.