Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (C) 2009 eXo Platform SAS.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.exoplatform.services.jcr.ext.hierarchy;
This service is used as an helper to initialize the JCR Created by The eXo Platform SAS Author : Dang Van Minh minh.dang@exoplatform.com Nov 15, 2007 10:10:10 AM
public interface NodeHierarchyCreator
{

   
Gets the JCR path corresponding to the given alias

Parameters:
alias the alias of the path to retrieve
Returns:
the corresponding JCR path
   String getJcrPath(String alias);

   
Initialize the given repository thanks to all the registered plugins

Deprecated:
use init() instead
Parameters:
repository the repository to initialize
Throws:
java.lang.Exception if an exception occurs
   void init(String repositorythrows Exception;

   
Initialize the current repository thanks to all the registered plugins

Parameters:
repository the repository to initialize
Throws:
java.lang.Exception if an exception occurs
   void init() throws Exception;

   
Remove the JCR node corresponding to the root node of the user workspace

Parameters:
sessionProvider the session provider to use to remove the root node
userName the user name for which we want to remove the root node of his workspace
Throws:
java.lang.Exception if an exception occurs
   void removeUserNode(SessionProvider sessionProviderString userNamethrows Exception;

   
Gets the JCR node corresponding to the root node of the user workspace

Parameters:
sessionProvider the session provider to use to get the root node
userName the user name for which we want to find the root node of his workspace
Returns:
the root node of the workspace of the given user
Throws:
java.lang.Exception if an exception occurs
   Node getUserNode(SessionProvider sessionProviderString userNamethrows Exception;

   
Gets the JCR node corresponding to the root node of the user's applications

Parameters:
sessionProvider the session provider to use to get the root node
userName the user name for which we want to find the root node of his applications
Returns:
the root node of the user's applications of the given user
Throws:
java.lang.Exception if an exception occurs
   Node getUserApplicationNode(SessionProvider sessionProviderString userNamethrows Exception;

   
Gets the JCR node corresponding to the root node of the public applications

Parameters:
sessionProvider the session provider to use to get the root node
Returns:
the root node of the public applications
Throws:
java.lang.Exception if an exception occurs
   Node getPublicApplicationNode(SessionProvider sessionProviderthrows Exception;

   
Registers a new plugins

Parameters:
plugin the plugin to register
   void addPlugin(ComponentPlugin plugin);
New to GrepCode? Check out our FAQ X