public class DirectoryService extends Object
| Constructor and Description |
|---|
DirectoryService() |
| Modifier and Type | Method and Description |
|---|---|
List<Field> |
getFieldsListFromIdEntry(int nIdEntry)
Get the list of fields from a given id entry
|
static DirectoryService |
getInstance()
Returns the instance of the singleton
|
Map<String,Object> |
getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
Build the advanced parameters management
|
int |
getMaxNumber(IEntry entry)
Get the max number
|
Map<String,String> |
getModelForEntryForXml(IEntry entry)
Get the model for entry for xml
|
int |
getNumber(IEntry entry,
String strNumber)
Get the number to insert to the entry type numbering.
|
List<RecordField> |
getRecordFieldByFilter(RecordFieldFilter recordFieldFilter)
Get the list of record fields from a given Filter
|
int |
getRecordsCount(Directory directory,
fr.paris.lutece.portal.business.user.AdminUser user)
Get the records count
|
Map<String,Object> |
getResourceAction(Record record,
Directory directory,
List<IEntry> listEntryResultSearch,
fr.paris.lutece.portal.business.user.AdminUser adminUser,
List<DirectoryAction> listActionsForDirectoryEnable,
List<DirectoryAction> listActionsForDirectoryDisable,
boolean bGetFileName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the resource action for a record
|
String |
getUserGuid(int nIdRecord,
int nIdEntry)
Get the user guid from a given id record and id entry.
|
fr.paris.lutece.util.ReferenceList |
getUserInfos(String strUserGuid,
int nIdEntry)
Get the user infos from a given id record and id entry.
|
String |
getWSRestUrl(IEntry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the WS rest url from a given entry
|
void |
init()
Initialize the Form service
|
void |
removeAsynchronousFile(RecordField recordField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove asynchronous file
|
boolean |
showXY(IEntry entry)
Check if the entry must show the X and Y or not
|
public void init()
public static DirectoryService getInstance()
public Map<String,Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
user - the current userpublic int getRecordsCount(Directory directory, fr.paris.lutece.portal.business.user.AdminUser user)
directory - the Directoryuser - the AdminUserpublic fr.paris.lutece.util.ReferenceList getUserInfos(String strUserGuid, int nIdEntry)
EntryTypeMyLuteceUser, then it will use the SecurityService APIEntryTypeRemoteMyLuteceUser, then it will use the UserAttributesService APIstrUserGuid - the user guidnIdEntry - the id entryReferenceListpublic String getUserGuid(int nIdRecord, int nIdEntry)
nIdRecord - the id recordnIdEntry - the id entrypublic int getMaxNumber(IEntry entry)
entry - the entrypublic int getNumber(IEntry entry, String strNumber) throws DirectoryErrorException
entry - the entry type numberingstrNumber - the number to insertDirectoryErrorException - exception if the number already exists on an another record fieldpublic List<Field> getFieldsListFromIdEntry(int nIdEntry)
nIdEntry - the id entrypublic Map<String,String> getModelForEntryForXml(IEntry entry)
entry - the entrypublic boolean showXY(IEntry entry)
entry - The entrypublic void removeAsynchronousFile(RecordField recordField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
recordField - the record fieldplugin - the pluginpublic String getWSRestUrl(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
entry - the entryplugin - the pluginpublic Map<String,Object> getResourceAction(Record record, Directory directory, List<IEntry> listEntryResultSearch, fr.paris.lutece.portal.business.user.AdminUser adminUser, List<DirectoryAction> listActionsForDirectoryEnable, List<DirectoryAction> listActionsForDirectoryDisable, boolean bGetFileName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
record - the recorddirectory - the directorylistEntryResultSearch - the list of entryadminUser - the AdminUserlistActionsForDirectoryEnable - The list of actions to use if the record is enabledlistActionsForDirectoryDisable - The list of actions to use if the record is disabledbGetFileName - True to get file names. Warning : The file name is fetch by a webservice call. Beware of performance.plugin - the pluginpublic List<RecordField> getRecordFieldByFilter(RecordFieldFilter recordFieldFilter)
recordFieldFilter - the filterCopyright © 2017 City of Paris. All rights reserved.