|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.jcr.business.admin.AdminJcrHome
public final class AdminJcrHome
Home class for JCR administration
| Field Summary | |
|---|---|
static java.lang.String |
ROLE_NONE
|
| 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)
Test if given worksapce has attached views |
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)
|
java.lang.String[] |
getAuthorizedRoles(AdminView adminView,
java.lang.String strAccess,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of roles authorized on this view |
java.lang.Boolean |
getAvailableAccess(AdminView adminView,
java.lang.String[] userRoles,
java.lang.String strAccessRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Computes authorizations |
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)
|
void |
updateRoles(AdminView adminView,
java.lang.String strAccess,
java.lang.String[] roles,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update roles of a view |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROLE_NONE
| Method Detail |
|---|
public static AdminJcrHome getInstance()
public void createWorkspace(AdminWorkspace workspace,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
workspace - the workspace to createplugin - the plugin
public void modifyWorkspace(AdminWorkspace workspace,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
workspace - the workspace to modifyplugin - the plugin
public void deleteWorkspace(int id,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
id - of the workspace to deleteplugin - the plugin
public void createView(AdminView view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
view - the view to createplugin - the plugin
public void modifyView(AdminView view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
view - the view to modifyplugin - the plugin
public void deleteView(int id,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
id - the id of the view to deleteplugin - the pluginpublic java.util.Collection<AdminView> findAllViews(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public java.util.Collection<AdminWorkspace> findAllWorkspaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public java.util.Map<java.lang.String,AdminWorkspace> getWorkspacesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public AdminWorkspace findWorkspaceById(int nWorkspaceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWorkspaceId - the workspace id to findplugin - the plugin
public AdminView findViewById(int nViewId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nViewId - the view ID to finplugin - the plugin
public java.lang.String findJcrType(int nViewId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nViewId - the view ID to search the jcr type forplugin - the plugin
public boolean existsViewWithWorkspaceId(int nWorkspaceId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nWorkspaceId - the workspace idplugin - the plugin
public java.lang.Boolean getAvailableAccess(AdminView adminView,
java.lang.String[] userRoles,
java.lang.String strAccessRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
adminView - the viewuserRoles - an array of roles to teststrAccessRight - the permission to checkplugin - the plugin
public void updateRoles(AdminView adminView,
java.lang.String strAccess,
java.lang.String[] roles,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
adminView - the viewstrAccess - the permissionroles - the roles to attachplugin - the plugin
public java.lang.String[] getAuthorizedRoles(AdminView adminView,
java.lang.String strAccess,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
adminView - the viestrAccess - the permissionplugin - the plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||