public final class MyAppsDatabaseService extends Object
| Constructor and Description |
|---|
MyAppsDatabaseService() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(MyAppsDatabase myApp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new
MyAppsDatabase |
void |
createMyAppUser(MyAppsDatabaseUser myAppsUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new
MyAppsDatabaseUser |
fr.paris.lutece.plugins.myapps.business.MyApps |
findByPrimaryKey(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a myApps whose identifier is specified in parameter
|
fr.paris.lutece.plugins.myapps.business.MyAppsUser |
getCredential(int nMyAppId,
String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the myAppsUsers and returns them in form of a collection
|
fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the image resource
|
static MyAppsDatabaseService |
getInstance()
Returns the instance of the singleton
|
fr.paris.lutece.util.ReferenceList |
getMyApps(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of MyApps
|
List<fr.paris.lutece.plugins.myapps.business.MyApps> |
getMyAppsListByFilter(MyAppsDatabaseFilter filter,
boolean bIsAscSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads a list of myApps belonging to a filter
|
Map<String,Map<String,Boolean>> |
getMyAppsPermissions(List<fr.paris.lutece.plugins.myapps.business.MyApps> listMyApps,
fr.paris.lutece.portal.business.user.AdminUser user)
Get the permissions for each
MyApps |
String |
getResourceImageUrl(String strMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Management of the image associated to the application
|
void |
init()
Initialize the Database service
|
void |
remove(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a
MyAppsDatabase |
void |
removeMyAppUser(int nMyAppsUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a
MyAppsDatabaseUser |
void |
removeMyAppUser(int nMyAppId,
String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a
MyAppsDatabaseUser |
List<fr.paris.lutece.plugins.myapps.business.MyApps> |
selectMyAppsList(MyAppsDatabaseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the MyApps list
|
void |
update(MyAppsDatabase myApp,
boolean bUpdateIcon,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a
MyAppsDatabase |
void |
updateMyAppUser(MyAppsDatabaseUser myAppsUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a
MyAppsDatabaseUser |
public void init()
public static MyAppsDatabaseService getInstance()
public fr.paris.lutece.util.ReferenceList getMyApps(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - PluginMyAppsDatabasepublic fr.paris.lutece.plugins.myapps.business.MyApps findByPrimaryKey(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nMyAppId - The myApps primary keyplugin - the Pluginpublic List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter - the app filterplugin - PluginMyAppspublic Map<String,Map<String,Boolean>> getMyAppsPermissions(List<fr.paris.lutece.plugins.myapps.business.MyApps> listMyApps, fr.paris.lutece.portal.business.user.AdminUser user)
MyAppslistMyApps - a list of MyAppsuser - the current AdminUserpublic void create(MyAppsDatabase myApp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabasemyApp - the MyAppsDatabase to createplugin - Pluginpublic void update(MyAppsDatabase myApp, boolean bUpdateIcon, fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabasemyApp - the MyAppsDatabase to updatebUpdateIcon - true if the icon must be updated, false otherwiseplugin - Pluginpublic void remove(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabasenMyAppId - the MyApp Idplugin - Pluginpublic fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nMyAppId - the MyApp Idplugin - Pluginpublic void createMyAppUser(MyAppsDatabaseUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUsermyAppsUser - the MyAppsDatabaseUser to createplugin - Pluginpublic void updateMyAppUser(MyAppsDatabaseUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUsermyAppsUser - the MyAppsDatabaseUser to updateplugin - Pluginpublic void removeMyAppUser(int nMyAppsUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUsernMyAppsUserId - the MyAppsUser Idplugin - Pluginpublic void removeMyAppUser(int nMyAppId,
String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUsernMyAppId - the MyApp IdstrUserName - the user nameplugin - Pluginpublic List<fr.paris.lutece.plugins.myapps.business.MyApps> getMyAppsListByFilter(MyAppsDatabaseFilter filter, boolean bIsAscSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter - the app filterbIsAscSort - true if it is sorted ascendly, false otherwiseplugin - the Pluginpublic String getResourceImageUrl(String strMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strMyAppId - The myapp identifierplugin - Pluginpublic fr.paris.lutece.plugins.myapps.business.MyAppsUser getCredential(int nMyAppId,
String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nMyAppId - the ID of the appicationstrUserName - the user nameplugin - the PluginMyAppsUserCopyright © 2018 City of Paris. All rights reserved.