fr.paris.lutece.plugins.document.modules.calendar.service
Class MappingService

java.lang.Object
  extended by fr.paris.lutece.plugins.document.modules.calendar.service.MappingService

public final class MappingService
extends Object

MappingService


Method Summary
static void getAttributeDescription(MappingAttribute mappingAttribute)
          complete the mapping attribute with descriptions for user
static List<CalendarAttribute> getCalendarAttributeListByIdMappingAttribute(int nIdMappingAttribute)
          Return all CalendarAttribute which can be potentially mapped to the document attribute
static List<Mapping> getCodeDocumentTypeWithoutMapping()
          Return all document types from document_type which are not present in documenttocalendar_mapping
static List<fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute> getDocumentAttributesByCodeDocument(String strCodeDocumentType)
          Return all attributes of a document wich are required
static List<MappingAttribute> getDocumentMappingAttributeList(String strCodeDocumentType)
          Return all attributes of a mapping
static MappingAttribute getMappingAttribute(int nIdMappingAttribute)
          Return all datas of a mapping document attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCodeDocumentTypeWithoutMapping

public static List<Mapping> getCodeDocumentTypeWithoutMapping()
Return all document types from document_type which are not present in documenttocalendar_mapping

Returns:
the list of mapping

getDocumentAttributesByCodeDocument

public static List<fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute> getDocumentAttributesByCodeDocument(String strCodeDocumentType)
Return all attributes of a document wich are required

Parameters:
strCodeDocumentType - document type code
Returns:
the list of DocumentAttribute

getDocumentMappingAttributeList

public static List<MappingAttribute> getDocumentMappingAttributeList(String strCodeDocumentType)
Return all attributes of a mapping

Parameters:
strCodeDocumentType - document type code
Returns:
the list of MappingAttribute

getMappingAttribute

public static MappingAttribute getMappingAttribute(int nIdMappingAttribute)
Return all datas of a mapping document attribute

Parameters:
nIdMappingAttribute - mapping attribute id
Returns:
the mappin gAttribute

getAttributeDescription

public static void getAttributeDescription(MappingAttribute mappingAttribute)
complete the mapping attribute with descriptions for user

Parameters:
mappingAttribute - the mapping attribute

getCalendarAttributeListByIdMappingAttribute

public static List<CalendarAttribute> getCalendarAttributeListByIdMappingAttribute(int nIdMappingAttribute)
Return all CalendarAttribute which can be potentially mapped to the document attribute

Parameters:
nIdMappingAttribute - mapping attribute id
Returns:
the calendar attribute list


Copyright © 2014 Mairie de Paris. All Rights Reserved.