|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.directory.service.DirectoryService
public class DirectoryService
FormService
Constructor Summary | |
---|---|
DirectoryService()
|
Method Summary | |
---|---|
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,
Locale locale,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryService()
Method Detail |
---|
public void init()
public static DirectoryService getInstance()
public Map<String,Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
user
- the current user
public int getRecordsCount(Directory directory, fr.paris.lutece.portal.business.user.AdminUser user)
directory
- the Directory
user
- the AdminUser
public fr.paris.lutece.util.ReferenceList getUserInfos(String strUserGuid, int nIdEntry)
EntryTypeMyLutece
, then it will use the SecurityService
APIEntryTypeRemoteMyLutece
, then it will use the UserAttributeService
API
strUserGuid
- the user guidnIdEntry
- the id entry
ReferenceList
public String getUserGuid(int nIdRecord, int nIdEntry)
nIdRecord
- the id recordnIdEntry
- the id entry
public int getMaxNumber(IEntry entry)
nIdEntryTypeNumbering
- the id entry type numberingnIdDirectory
- the id directory
public int getNumber(IEntry entry, String strNumber) throws DirectoryErrorException
entry
- the entry type numberingstrNumber
- the number to insert
DirectoryErrorException
- exception if the number already exists on an another record fieldpublic List<Field> getFieldsListFromIdEntry(int nIdEntry)
nIdEntry
- the id entry
public Map<String,String> getModelForEntryForXml(IEntry entry)
entry
- the entry
public boolean showXY(IEntry entry)
public 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 plugin
public Map<String,Object> getResourceAction(Record record, Directory directory, List<IEntry> listEntryResultSearch, Locale locale, 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 entrylocale
- the localeadminUser
- the AdminUserplugin
- the plugin
public List<RecordField> getRecordFieldByFilter(RecordFieldFilter recordFieldFilter)
recordFieldFilter
- the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |