|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.myapps.modules.database.service.MyAppsDatabaseService
public final class MyAppsDatabaseService
MyAppsDatabaseService
| Constructor Summary | |
|---|---|
MyAppsDatabaseService()
|
|
| Method Summary | |
|---|---|
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,
java.lang.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 |
java.util.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 |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> |
getMyAppsPermissions(java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> listMyApps,
fr.paris.lutece.portal.business.user.AdminUser user)
Get the permissions for each MyApps |
java.lang.String |
getResourceImageUrl(java.lang.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,
java.lang.String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a MyAppsDatabaseUser |
java.util.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyAppsDatabaseService()
| Method Detail |
|---|
public void init()
public static MyAppsDatabaseService getInstance()
public fr.paris.lutece.util.ReferenceList getMyApps(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - Plugin
MyAppsDatabase
public fr.paris.lutece.plugins.myapps.business.MyApps findByPrimaryKey(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nMyAppId - The myApps primary keyplugin - the Plugin
public java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter - the app filterplugin - Plugin
MyApps
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Boolean>> getMyAppsPermissions(java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> listMyApps,
fr.paris.lutece.portal.business.user.AdminUser user)
MyApps
listMyApps - a list of MyAppsuser - the current AdminUser
public void create(MyAppsDatabase myApp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabase
myApp - the MyAppsDatabase to createplugin - Plugin
public void update(MyAppsDatabase myApp,
boolean bUpdateIcon,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabase
myApp - the MyAppsDatabase to updatebUpdateIcon - true if the icon must be updated, false otherwiseplugin - Plugin
public void remove(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabase
nMyAppId - the MyApp Idplugin - Plugin
public fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nMyAppId - the MyApp Idplugin - Plugin
public void createMyAppUser(MyAppsDatabaseUser myAppsUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUser
myAppsUser - the MyAppsDatabaseUser to createplugin - Plugin
public void updateMyAppUser(MyAppsDatabaseUser myAppsUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUser
myAppsUser - the MyAppsDatabaseUser to updateplugin - Plugin
public void removeMyAppUser(int nMyAppsUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUser
nMyAppsUserId - the MyAppsUser Idplugin - Plugin
public void removeMyAppUser(int nMyAppId,
java.lang.String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
MyAppsDatabaseUser
nMyAppId - the MyApp IdstrUserName - the user nameplugin - Plugin
public java.util.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 Plugin
public java.lang.String getResourceImageUrl(java.lang.String strMyAppId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strMyAppId - The myapp identifierplugin - Plugin
public fr.paris.lutece.plugins.myapps.business.MyAppsUser getCredential(int nMyAppId,
java.lang.String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nMyAppId - the ID of the appicationstrUserName - the user nameplugin - the Plugin
MyAppsUser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||