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 java.lang.Object

MappingService


Method Summary
static void getAttributeDescription(MappingAttribute mappingAttribute)
          complete the mapping attribute with descriptions for user
static java.util.List<CalendarAttribute> getCalendarAttributeListByIdMappingAttribute(int nIdMappingAttribute)
          Return all CalendarAttribute which can be potentially mapped to the document attribute
static java.util.List<Mapping> getCodeDocumentTypeWithoutMapping()
          Return all document types from document_type which are not present in documenttocalendar_mapping
static java.util.List<fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute> getDocumentAttributesByCodeDocument(java.lang.String strCodeDocumentType)
          Return all attributes of a document wich are required
static java.util.List<MappingAttribute> getDocumentMappingAttributeList(java.lang.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 java.util.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 java.util.List<fr.paris.lutece.plugins.document.business.attributes.DocumentAttribute> getDocumentAttributesByCodeDocument(java.lang.String strCodeDocumentType)
Return all attributes of a document wich are required

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

getDocumentMappingAttributeList

public static java.util.List<MappingAttribute> getDocumentMappingAttributeList(java.lang.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 java.util.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 © 2012 Mairie de Paris. All Rights Reserved.