Class ViewHome
java.lang.Object
fr.paris.lutece.plugins.profiles.business.views.ViewHome
ProfileHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddProfileForView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Add a profile for a viewstatic booleancheckExistView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if a view already exists or notstatic ViewCreation of an instance of Viewstatic voidcreateDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a dashboard for a viewfindAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a List of Views objectsstatic ViewfindByPrimaryKey(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a profile whose identifier is specified in parameterfindColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds all columnsstatic fr.paris.lutece.portal.service.dashboard.IDashboardComponentfindDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the dashboardstatic List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>findDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of dashboards from a given view keystatic List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>findDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of all the IDashboardComponentstatic intfindMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds the max order for the column.static intfindMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds the max order for all columns.static ViewfindViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the view from a profilefindViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find Views by filtergetProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of profiles associated to the viewstatic fr.paris.lutece.util.ReferenceListgetViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of Viewsstatic booleanCheck if the given profile has a view or notstatic voidRemove the View whose identifier is specified in parameterstatic voidremoveDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a dashboard of a viewstatic voidremoveDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all dashboards of a viewstatic voidremoveProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a view from a profilestatic voidremoveProfiles(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a profile from a viewstatic ViewUpdate of the view which is specified in parameterstatic voidupdateDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a dashboard
-
Method Details
-
create
Creation of an instance of View- Parameters:
view- The instance of the View which contains the informations to storeplugin- Plugin- Returns:
- The instance of View which has been created with its primary key.
-
update
Update of the view which is specified in parameter- Parameters:
view- The instance of the view which contains the new data to storeplugin- Plugin- Returns:
- The instance of the view which has been updated
-
remove
Remove the View whose identifier is specified in parameter- Parameters:
strViewKey- The View object to removeplugin- Plugin
-
findByPrimaryKey
public static View findByPrimaryKey(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a profile whose identifier is specified in parameter- Parameters:
strViewKey- The key of the Viewplugin- Plugin- Returns:
- An instance of View
-
findAll
Returns a List of Views objects- Parameters:
plugin- Plugin- Returns:
- A List of Views
-
findViewsByFilter
public static List<View> findViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find Views by filter- Parameters:
vFilter- the Filterplugin- Plugin- Returns:
- List of Views
-
checkExistView
public static boolean checkExistView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if a view already exists or not- Parameters:
strViewKey- The view keyplugin- Plugin- Returns:
- true if it already exists, false otherwise
-
getViewsList
public static fr.paris.lutece.util.ReferenceList getViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of Views- Parameters:
plugin- Plugin- Returns:
- the list of Views
-
getProfilesListForView
public static List<Profile> getProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of profiles associated to the view- Parameters:
strViewKey- The view Keyplugin- Plugin- Returns:
- The list of profile
-
findViewForProfile
public static View findViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the view from a profile- Parameters:
strProfileKey- the profile keyplugin- Plugin- Returns:
- the view associated to the profile
-
hasView
public static boolean hasView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if the given profile has a view or not- Parameters:
strProfileKey- the profile keyplugin- Plugin- Returns:
- true if the profile has the view, false otherwise
-
addProfileForView
public static void addProfileForView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Add a profile for a view- Parameters:
strViewKey- The view KeystrProfileKey- The profile Keyplugin- Plugin
-
removeProfiles
public static void removeProfiles(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a profile from a view- Parameters:
strViewKey- The view Keyplugin- Plugin
-
removeProfileFromView
public static void removeProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a view from a profile- Parameters:
strViewKey- the view keystrProfileKey- the profile keyplugin- Plugin
-
findDashboards
public static List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> findDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of dashboards from a given view key- Parameters:
strViewKey- the view keyplugin- Plugin- Returns:
- a list of
IDashboardComponent
-
findDashboard
public static fr.paris.lutece.portal.service.dashboard.IDashboardComponent findDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the dashboard- Parameters:
strDashboardName- the dashboard namestrViewKey- the view keyplugin- Plugin- Returns:
- the dashboard
-
createDashboard
public static void createDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a dashboard for a view- Parameters:
strViewKey- the view keydashboard- the dashboardplugin- Plugin
-
removeDashboards
public static void removeDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all dashboards of a view- Parameters:
strViewKey- the view keyplugin- Plugin
-
removeDashboard
public static void removeDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a dashboard of a view- Parameters:
strViewKey- the view keystrDashboardName- the dashboard nameplugin- Plugin
-
updateDashboard
public static void updateDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a dashboard- Parameters:
strViewKey- the view keydashboard- the dashboardplugin- Plugin
-
findDashboardsByFilter
public static List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> findDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of all the IDashboardComponent- Parameters:
filter- the filterstrViewKey- the view keyplugin- Plugin- Returns:
- the list which contains the data of all the IDashboardComponent
-
findMaxOrder
public static int findMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds the max order for all columns.- Parameters:
plugin- Plugin- Returns:
- the max order
-
findMaxOrder
public static int findMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin) Finds the max order for the column.- Parameters:
nColumn- the columnplugin- Plugin- Returns:
- the max order
-
findColumns
Finds all columns- Parameters:
plugin- Plugin- Returns:
- the list of columns
-