fr.paris.lutece.plugins.jcr.business.admin
Class AdminJcrHome
java.lang.Object
fr.paris.lutece.plugins.jcr.business.admin.AdminJcrHome
public final class AdminJcrHome
- extends java.lang.Object
Home class for JCR administration
|
Method Summary |
void |
createView(AdminView view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
createWorkspace(AdminWorkspace workspace,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
deleteView(int id,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
deleteWorkspace(int id,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
boolean |
existsViewWithWorkspaceId(int nWorkspaceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
java.util.Collection<AdminView> |
findAllViews(fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
java.util.Collection<AdminWorkspace> |
findAllWorkspaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
java.lang.String |
findJcrType(int nViewId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
AdminView |
findViewById(int nViewId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
AdminWorkspace |
findWorkspaceById(int nWorkspaceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
static AdminJcrHome |
getInstance()
|
java.util.Map<java.lang.String,AdminWorkspace> |
getWorkspacesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
modifyView(AdminView view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
modifyWorkspace(AdminWorkspace workspace,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static AdminJcrHome getInstance()
- Returns:
- an instance of AdminJcrHome
createWorkspace
public void createWorkspace(AdminWorkspace workspace,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
workspace - the workspace to createplugin - the plugin
modifyWorkspace
public void modifyWorkspace(AdminWorkspace workspace,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
workspace - the workspace to modifyplugin - the plugin
deleteWorkspace
public void deleteWorkspace(int id,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
id - of the workspace to deleteplugin - the plugin
createView
public void createView(AdminView view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
view - the view to createplugin - the plugin
modifyView
public void modifyView(AdminView view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
view - the view to modifyplugin - the plugin
deleteView
public void deleteView(int id,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
id - the id of the view to deleteplugin - the plugin
findAllViews
public java.util.Collection<AdminView> findAllViews(fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
plugin - the plugin
- Returns:
- all available views
findAllWorkspaces
public java.util.Collection<AdminWorkspace> findAllWorkspaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
plugin - the plugin
- Returns:
- all available workspaces
getWorkspacesList
public java.util.Map<java.lang.String,AdminWorkspace> getWorkspacesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
plugin - the plugin
- Returns:
- amapp of all workspaces
findWorkspaceById
public AdminWorkspace findWorkspaceById(int nWorkspaceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
nWorkspaceId - the workspace id to findplugin - the plugin
- Returns:
- an AdminWorkspace
findViewById
public AdminView findViewById(int nViewId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
nViewId - the view ID to finplugin - the plugin
- Returns:
- the adminView
findJcrType
public java.lang.String findJcrType(int nViewId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
nViewId - the view ID to search the jcr type forplugin - the plugin
- Returns:
- the jcr type
existsViewWithWorkspaceId
public boolean existsViewWithWorkspaceId(int nWorkspaceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copyright © 2007 Mairie de Paris. All Rights Reserved.