signature:
public class GovernmentBodyChartDataManagerImpl { /** * Adds the annual data .
 * @ param content
 * the content
 * @ param name
 * the name
 * @ param label
 * the label
 * @ param collect
 * the collect */
private void addAnnualData ( final VerticalLayout content , final String name , final String label , final Map < String , List < GovernmentBodyAnnualOutcomeSummary > > collect ) { } }

implementation: final DataSeries dataSeries = new DataSeries ( ) ; final Series series = new Series ( ) ; final SimpleDateFormat simpleDateFormat = new SimpleDateFormat ( "yyyy-MM-dd" , Locale . ENGLISH ) ; for ( final Entry < String , List < GovernmentBodyAnnualOutcomeSummary > > entry : collect . entrySet ( ) ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; addEntryData ( dataSeries , simpleDateFormat , entry ) ; } addChart ( content , name + label , new DCharts ( ) . setDataSeries ( dataSeries ) . setOptions ( getChartOptions ( ) . createOptionsXYDateFloatLogYAxisLegendOutside ( series ) ) . show ( ) , true ) ;


signature:
public class GovernmentBodyChartDataManagerImpl { /** * Adds the entry data .
 * @ param dataSeries the data series
 * @ param simpleDateFormat the simple date format
 * @ param entry the entry */
private static void addEntryData ( final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final Entry < String , List < GovernmentBodyAnnualOutcomeSummary > > entry ) { } }

implementation: for ( final GovernmentBodyAnnualOutcomeSummary data : entry . getValue ( ) ) { final Map < Date , Double > valueMap = data . getValueMap ( ) ; for ( final Entry < Date , Double > entryData : valueMap . entrySet ( ) ) { if ( entryData . getValue ( ) != null && entryData . getValue ( ) . intValue ( ) > 0 ) { dataSeries . add ( simpleDateFormat . format ( entryData . getKey ( ) ) , entryData . getValue ( ) . intValue ( ) ) ; } } }


signature:
public class GovernmentBodyChartDataManagerImpl { /** * Creates the ministry summary .
 * @ param content the content
 * @ param field the field
 * @ param label the label */
private void createMinistrySummary ( final AbstractOrderedLayout content , final String field , final String label ) { } }

implementation: final DataSeries dataSeries = new DataSeries ( ) ; final Series series = new Series ( ) ; final Map < String , List < GovernmentBodyAnnualOutcomeSummary > > reportByMinistry = esvApi . getGovernmentBodyReportByMinistry ( ) ; for ( final Entry < String , List < GovernmentBodyAnnualOutcomeSummary > > entry : reportByMinistry . entrySet ( ) ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; final Map < Integer , Double > annualSummaryMap = entry . getValue ( ) . stream ( ) . filter ( t -> t . getDescriptionFields ( ) . get ( field ) != null ) . collect ( Collectors . groupingBy ( GovernmentBodyAnnualOutcomeSummary :: getYear , Collectors . summingDouble ( GovernmentBodyAnnualOutcomeSummary :: getYearTotal ) ) ) ; for ( final Entry < Integer , Double > entryData : annualSummaryMap . entrySet ( ) ) { if ( entryData . getValue ( ) != null && entryData . getValue ( ) . intValue ( ) > 0 ) { dataSeries . add ( entryData . getKey ( ) + 1 + "-01-01" , entryData . getValue ( ) ) ; } } } addChart ( content , label , new DCharts ( ) . setDataSeries ( dataSeries ) . setOptions ( getChartOptions ( ) . createOptionsXYDateFloatLogYAxisLegendOutside ( series ) ) . show ( ) , true ) ;


signature:
public class PoliticianRoleListPageModContentFactoryImpl { /** * Creates the role list .
 * @ param roleSummaryLayoutTabsheet the role summary layout tabsheet
 * @ param assignmentList the assignment list */
private void createRoleList ( final VerticalLayout roleSummaryLayoutTabsheet , final List < AssignmentData > assignmentList ) { } }

implementation: final Comparator < AssignmentData > compare = ( o1 , o2 ) -> o1 . getFromDate ( ) . compareTo ( o2 . getFromDate ( ) ) ; Collections . sort ( assignmentList , compare ) ; getGridFactory ( ) . createBasicBeanItemGrid ( roleSummaryLayoutTabsheet , AssignmentData . class , assignmentList , ASSIGNMENTS , COLUMN_ORDER , HIDE_COLUMNS , null , null , null ) ;


signature:
public class RiksdagenDocumentApiImpl { /** * Process all .
 * @ param dokument
 * the dokument
 * @ param processStrategy
 * the process strategy */
private static void processAll ( final List < DocumentElement > dokument , final ProcessDataStrategy < DocumentElement > processStrategy ) { } }

implementation: for ( final DocumentElement documentElement : dokument ) { try { processStrategy . process ( documentElement ) ; } catch ( final RuntimeException e ) { LOGGER . warn ( ERROR_PROCESSING_DOCUMENT , documentElement . getId ( ) , e ) ; } }


signature:
public class RiksdagenDocumentApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenDocumentApi # getDocumentContent ( java . lang . String ) */
@ Override public DocumentContentData getDocumentContent ( final String id ) throws DataFailureException { } }

implementation: try { return new DocumentContentData ( ) . withId ( id ) . withContent ( xmlAgent . retriveContent ( DOCUMENT_CONTENT . replace ( DOC_ID_KEY , id ) ) ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_DOCUMENT_CONTENT_FOR_ID_S_FROM_DATA_RIKSDAGEN_SE , id ) ; throw new DataFailureException ( e ) ; }


signature:
public class RiksdagenDocumentApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenDocumentApi # getDocumentList ( com . hack23 . cia . model . external . riksdagen . dokumentstatus . impl . DocumentType , int ) */
@ Override public List < DocumentElement > getDocumentList ( final DocumentType documentType , final int maxNumberPages ) throws DataFailureException { } }

implementation: try { return loadDocumentList ( DOCUMENT_LIST_TYPE . replace ( TYPE_KEY , documentType . value ( ) ) , maxNumberPages ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_DOCUMENT_LIST_FOR_DOCUMENT_TYPE_S_MAX_NUMBER_PAGES_S_FROM_DATA_RIKSDAGEN_SE , documentType , Integer . toString ( maxNumberPages ) ) ; throw new DataFailureException ( e ) ; }


signature:
public class RiksdagenDocumentApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenDocumentApi # getDocumentList ( java . lang . Integer , int ) */
@ Override public List < DocumentElement > getDocumentList ( final Integer year , final int maxNumberPages ) throws DataFailureException { } }

implementation: try { return loadDocumentList ( DOCUMENT_LIST_YEAR . replace ( YEAR_KEY , year . toString ( ) ) , maxNumberPages ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_DOCUMENT_LIST_FOR_YEAR_S_FROM_DATA_RIKSDAGEN_SE , year ) ; throw new DataFailureException ( e ) ; }


signature:
public class RiksdagenDocumentApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenDocumentApi # getDocumentList ( java . lang . String , java . lang . String , int ) */
@ Override public List < DocumentElement > getDocumentList ( final String changedSinceDate , final String changedToDate , final int maxNumberPages ) throws DataFailureException { } }

implementation: try { return loadDocumentList ( DOCUMENT_LIST_CHANGED_DATE . replace ( CHANGED_SINCE_KEY , changedSinceDate ) . replace ( CHANGED_TO_KEY , changedToDate ) , maxNumberPages ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_DOCUMENT_LIST_CHANGED_SINCE_DATE_S_CHANGED_TO_DATE_S_FROM_DATA_RIKSDAGEN_SE , changedSinceDate , changedToDate ) ; throw new DataFailureException ( e ) ; }


signature:
public class RiksdagenDocumentApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenDocumentApi # getDocumentStatus ( java . lang . String ) */
@ Override public DocumentStatusContainer getDocumentStatus ( final String id ) throws DataFailureException { } }

implementation: try { final String url = DOCUMENT_STATUS . replace ( ID_KEY , id ) ; return ( ( JAXBElement < DocumentStatusContainer > ) xmlAgent . unmarshallXml ( riksdagenDocumentStatusMarshaller , url , HTTP_DOKUMENTSTATUS_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_DOCUMENT_STATUS_ID_S_FROM_DATA_RIKSDAGEN_SE , id ) ; throw new DataFailureException ( e ) ; }


signature:
public class RiksdagenDocumentApiImpl { /** * Load and process document list .
 * @ param url
 * the url
 * @ param processStrategy
 * the process strategy
 * @ throws XmlAgentException
 * the xml agent exception */
private void loadAndProcessDocumentList ( final String url , final ProcessDataStrategy < DocumentElement > processStrategy ) throws XmlAgentException { } }

implementation: final DocumentContainerElement dokumentLista = ( ( JAXBElement < DocumentContainerElement > ) xmlAgent . unmarshallXml ( riksdagenDocumentListMarshaller , url , HTTP_DOKUMENTLISTA_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) ; int resultSize = dokumentLista . getDokument ( ) . size ( ) ; processAll ( dokumentLista . getDokument ( ) , processStrategy ) ; final BigInteger pages = dokumentLista . getTotalPages ( ) ; for ( int i = 1 ; i < pages . intValue ( ) ; i ++ ) { final DocumentContainerElement otherPagesdokumentLista = ( ( JAXBElement < DocumentContainerElement > ) xmlAgent . unmarshallXml ( riksdagenDocumentListMarshaller , url + PAGE_PROPERTY + i , HTTP_DOKUMENTLISTA_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) ; resultSize = resultSize + otherPagesdokumentLista . getDokument ( ) . size ( ) ; processAll ( otherPagesdokumentLista . getDokument ( ) , processStrategy ) ; LOGGER . info ( LOADING_DOCUMENTS , resultSize , dokumentLista . getHits ( ) ) ; }


signature:
public class RiksdagenDocumentApiImpl { /** * Load document list .
 * @ param url
 * the url
 * @ param maxNumberPages
 * the max number pages
 * @ return the list
 * @ throws XmlAgentException
 * the xml agent exception */
private List < DocumentElement > loadDocumentList ( final String url , final int maxNumberPages ) throws XmlAgentException { } }

implementation: final List < DocumentElement > result = new ArrayList < > ( ) ; DocumentContainerElement dokumentLista = ( ( JAXBElement < DocumentContainerElement > ) xmlAgent . unmarshallXml ( riksdagenDocumentListMarshaller , url , HTTP_DOKUMENTLISTA_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) ; result . addAll ( dokumentLista . getDokument ( ) ) ; final BigInteger pages = dokumentLista . getTotalPages ( ) ; for ( int i = 1 ; i < pages . intValue ( ) && i < maxNumberPages ; i ++ ) { dokumentLista = ( ( JAXBElement < DocumentContainerElement > ) xmlAgent . unmarshallXml ( riksdagenDocumentListMarshaller , fixBrokenUrl ( dokumentLista . getNextPage ( ) ) , HTTP_DOKUMENTLISTA_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) ; result . addAll ( dokumentLista . getDokument ( ) ) ; LOGGER . info ( LOADING_DOCUMENTS , result . size ( ) , dokumentLista . getHits ( ) ) ; } return result ;


signature:
public class RiksdagenDocumentApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenDocumentApi # processDocumentList ( java . lang . String , java . lang . String , com . hack23 . cia . service . external . common . api . ProcessDataStrategy ) */
@ Override public void processDocumentList ( final String changedSinceDate , final String changedToDate , final ProcessDataStrategy < DocumentElement > processStrategy ) throws DataFailureException { } }

implementation: try { loadAndProcessDocumentList ( DOCUMENT_LIST_CHANGED_DATE . replace ( CHANGED_SINCE_KEY , changedSinceDate ) . replace ( CHANGED_TO_KEY , changedToDate ) , processStrategy ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_PROCCESSING_DOCUMENT_BETWEEN_CHANGED_SINCE_DATE_S_AND_CHANGE_TO_DATE , changedSinceDate , changedToDate ) ; throw new DataFailureException ( e ) ; }


signature:
public class PersonDetailData { /** * Gets the detail list .
 * @ return the detail list */
@ OneToMany ( targetEntity = DetailData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DETAIL_LIST_PERSON_DETAIL_DA_0" ) public List < DetailData > getDetailList ( ) { return this . detailList ;


signature:
public class XmlAgentImpl { /** * Read with string buffer .
 * @ param fr
 * the fr
 * @ return the string
 * @ throws IOException
 * Signals that an I / O exception has occurred . */
private static String readWithStringBuffer ( final Reader fr ) throws IOException { } }

implementation: final BufferedReader br = new BufferedReader ( fr ) ; String line ; final StringBuilder result = new StringBuilder ( ) ; while ( ( line = br . readLine ( ) ) != null ) { result . append ( line ) ; } return result . toString ( ) ;


signature:
public class XmlAgentImpl { /** * Read input stream .
 * @ param accessUrl
 * the access url
 * @ return the string
 * @ throws IOException
 * Signals that an I / O exception has occurred . */
private static String readInputStream ( final String accessUrl ) throws IOException { } }

implementation: final URL url = new URL ( accessUrl . replace ( " " , "" ) ) ; return readWithStringBuffer ( new BufferedReader ( new InputStreamReader ( url . openConnection ( ) . getInputStream ( ) , StandardCharsets . UTF_8 ) ) ) ;


signature:
public class PersonContainerElement { /** * Gets the person .
 * @ return the person */
@ OneToMany ( targetEntity = PersonElement . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PERSON_PERSON_CONTAINER_ELEM_0" ) public List < PersonElement > getPerson ( ) { return this . person ;


signature:
public class VoteListContainerElement { /** * Gets the votering .
 * @ return the votering */
@ OneToMany ( targetEntity = BallotDocumentElement . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "VOTERING_VOTE_LIST_CONTAINER_0" ) public List < BallotDocumentElement > getVotering ( ) { return this . votering ;


signature:
public class PartyComplianceCheckImpl { /** * Supports .
 * @ param committeeReport the committee report
 * @ param rm the rm
 * @ return true , if successful */
public boolean supports ( final String committeeReport , final String rm ) { } }

implementation: for ( final ViewRiksdagenCommitteeBallotDecisionPartySummary summary : ballotDecisions ) { if ( summary . getRm ( ) . equalsIgnoreCase ( rm ) && summary . getCommitteeReport ( ) . equalsIgnoreCase ( committeeReport ) ) { return summary . isPartyApproved ( ) ; } } return false ;


signature:
public class EsvApiImpl { /** * Gets the government body list .
 * @ return the government body list */
private List < GovernmentBodyAnnualOutcomeSummary > getGovernmentBodyList ( ) { } }

implementation: final List < GovernmentBodyAnnualOutcomeSummary > result = new ArrayList < > ( ) ; try { result . addAll ( esvGovernmentBodyOperationOutcomeReader . readIncomeCsv ( ) ) ; result . addAll ( esvGovernmentBodyOperationOutcomeReader . readOutgoingCsv ( ) ) ; } catch ( final IOException e ) { LOGGER . error ( GET_GOVERNMENT_BODY_REPORT , e ) ; return result ; } return result ;


signature:
public class PersonElement { /** * Gets the person assignment element .
 * @ return the person assignment element */
@ ManyToOne ( targetEntity = PersonAssignmentElement . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PERSON_ASSIGNMENT_ELEMENT_PE_0" ) public PersonAssignmentElement getPersonAssignmentElement ( ) { return personAssignmentElement ;


signature:
public class PersonElement { /** * Gets the person detail element .
 * @ return the person detail element */
@ ManyToOne ( targetEntity = PersonDetailElement . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PERSON_DETAIL_ELEMENT_PERSON_0" ) public PersonDetailElement getPersonDetailElement ( ) { return personDetailElement ;


signature:
public class RegisterUserService { /** * Creates the user account .
 * @ param serviceRequest the service request
 * @ return the user account */
private UserAccount createUserAccount ( final RegisterUserRequest serviceRequest ) { } }

implementation: final ApplicationConfiguration registeredUsersGetAdminConfig = applicationConfigurationService . checkValueOrLoadDefault ( "Registered User All get Role Admin" , "Registered User All get Role Admin" , ConfigurationGroup . AUTHORIZATION , RegisterUserService . class . getSimpleName ( ) , "Register User Service" , "Responsible for create of useraccounts" , "registered.users.get.admin" , "true" ) ; final UserAccount userAccount = new UserAccount ( ) ; userAccount . setCountry ( serviceRequest . getCountry ( ) ) ; userAccount . setEmail ( serviceRequest . getEmail ( ) ) ; userAccount . setUsername ( serviceRequest . getUsername ( ) ) ; userAccount . setUserId ( UUID . randomUUID ( ) . toString ( ) ) ; userAccount . setUserpassword ( passwordEncoder . encode ( userAccount . getUserId ( ) + ".uuid" + serviceRequest . getUserpassword ( ) ) ) ; userAccount . setNumberOfVisits ( 1 ) ; if ( serviceRequest . getUserType ( ) == null ) { userAccount . setUserType ( UserType . PRIVATE ) ; } else { userAccount . setUserType ( serviceRequest . getUserType ( ) ) ; } userAccount . setUserEmailStatus ( UserEmailStatus . UNKNOWN ) ; userAccount . setUserLockStatus ( UserLockStatus . UNLOCKED ) ; userAccount . setCreatedDate ( new Date ( ) ) ; getUserDAO ( ) . persist ( userAccount ) ; final Collection < SimpleGrantedAuthority > authorities = new ArrayList < > ( ) ; if ( "true" . equals ( registeredUsersGetAdminConfig . getPropertyValue ( ) ) ) { userAccount . setUserRole ( UserRole . ADMIN ) ; authorities . add ( new SimpleGrantedAuthority ( "ROLE_ADMIN" ) ) ; } else { userAccount . setUserRole ( UserRole . USER ) ; authorities . add ( new SimpleGrantedAuthority ( "ROLE_USER" ) ) ; } SecurityContextHolder . getContext ( ) . setAuthentication ( new UsernamePasswordAuthenticationToken ( userAccount . getUserId ( ) , "n/a" , authorities ) ) ; return userAccount ;


signature:
public class RowUtil { /** * Creates the row item .
 * @ param row the row
 * @ param button the button
 * @ param description the description */
public static void createRowItem ( final ResponsiveRow row , final Button button , final String description ) { } }

implementation: final CssLayout layout = new CssLayout ( ) ; layout . addStyleName ( "v-layout-content-overview-panel-level2" ) ; Responsive . makeResponsive ( layout ) ; layout . setSizeUndefined ( ) ; button . addStyleName ( ITEMBOX ) ; button . addStyleName ( TITLE ) ; Responsive . makeResponsive ( button ) ; button . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . addComponent ( button ) ; final Label descriptionLabel = new Label ( description ) ; descriptionLabel . addStyleName ( ITEMBOX ) ; Responsive . makeResponsive ( descriptionLabel ) ; descriptionLabel . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . addComponent ( descriptionLabel ) ; row . addColumn ( ) . withDisplayRules ( DISPLAY_SIZE_XS_DEVICE , DISPLAYS_SIZE_XM_DEVICE , DISPLAY_SIZE_MD_DEVICE , DISPLAY_SIZE_LG_DEVICE ) . withComponent ( layout ) ;


signature:
public class RowUtil { /** * Creates the grid layout .
 * @ param panelContent the panel content
 * @ return the responsive row */
public static ResponsiveRow createGridLayout ( final AbstractOrderedLayout panelContent ) { } }

implementation: final ResponsiveLayout layout = new ResponsiveLayout ( ) ; Responsive . makeResponsive ( layout ) ; layout . addStyleName ( "v-layout-content-overview-panel-level1" ) ; layout . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . setHeight ( 100 , Unit . PERCENTAGE ) ; panelContent . addComponent ( layout ) ; panelContent . setExpandRatio ( layout , ContentRatio . LARGE ) ; return layout . addRow ( ) ;


signature:
public class WorldBankDataWorkGeneratorImpl { /** * Send country indicator work order .
 * @ param currentSaved the current saved
 * @ param indicators the indicators
 * @ param countryIso2Code the country iso 2 code */
private void sendCountryIndicatorWorkOrder ( final Map < String , String > currentSaved , final List < String > indicators , final String countryIso2Code ) { } }

implementation: for ( final String indicator : indicators ) { if ( countryIso2Code != null && countryIso2Code . length ( ) > 0 && ! currentSaved . containsKey ( countryIso2Code + '.' + indicator ) ) { final List < String > load = new ArrayList < > ( ) ; load . add ( countryIso2Code ) ; load . add ( indicator ) ; getJmsSender ( ) . send ( dataWorkdestination , ( Serializable ) load ) ; } }


signature:
public class DocumentStatusContainer { /** * Gets the document .
 * @ return the document */
@ ManyToOne ( targetEntity = DocumentData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_DOCUMENT_STATUS_CON_0" ) public DocumentData getDocument ( ) { return document ;


signature:
public class DocumentStatusContainer { /** * Gets the document proposal .
 * @ return the document proposal */
@ ManyToOne ( targetEntity = DocumentProposalContainer . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_PROPOSAL_DOCUMENT_S_0" ) public DocumentProposalContainer getDocumentProposal ( ) { return documentProposal ;


signature:
public class DocumentStatusContainer { /** * Gets the document activity container .
 * @ return the document activity container */
@ ManyToOne ( targetEntity = DocumentActivityContainer . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_ACTIVITY_CONTAINER__0" ) public DocumentActivityContainer getDocumentActivityContainer ( ) { return documentActivityContainer ;


signature:
public class DocumentStatusContainer { /** * Gets the document detail container .
 * @ return the document detail container */
@ ManyToOne ( targetEntity = DocumentDetailContainer . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_DETAIL_CONTAINER_DO_0" ) public DocumentDetailContainer getDocumentDetailContainer ( ) { return documentDetailContainer ;


signature:
public class DocumentStatusContainer { /** * Gets the document attachment container .
 * @ return the document attachment container */
@ ManyToOne ( targetEntity = DocumentAttachmentContainer . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_ATTACHMENT_CONTAINE_0" ) public DocumentAttachmentContainer getDocumentAttachmentContainer ( ) { return documentAttachmentContainer ;


signature:
public class DocumentStatusContainer { /** * Gets the document reference container .
 * @ return the document reference container */
@ ManyToOne ( targetEntity = DocumentReferenceContainer . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_REFERENCE_CONTAINER_0" ) public DocumentReferenceContainer getDocumentReferenceContainer ( ) { return documentReferenceContainer ;


signature:
public class DocumentStatusContainer { /** * Gets the document person reference container .
 * @ return the document person reference container */
@ ManyToOne ( targetEntity = DocumentPersonReferenceContainer . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_PERSON_REFERENCE_CO_1" ) public DocumentPersonReferenceContainer getDocumentPersonReferenceContainer ( ) { return documentPersonReferenceContainer ;


signature:
public class PartyDocumentChartDataManagerImpl { /** * Gets the view riksdagen party document daily summary map .
 * @ return the view riksdagen party document daily summary map */
private Map < String , List < ViewRiksdagenPartyDocumentDailySummary > > getViewRiksdagenPartyDocumentDailySummaryMap ( ) { } }

implementation: final DataContainer < ViewRiksdagenPartyDocumentDailySummary , RiksdagenDocumentPartySummaryEmbeddedId > politicianBallotSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewRiksdagenPartyDocumentDailySummary . class ) ; return politicianBallotSummaryDailyDataContainer . getAll ( ) . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> t . getEmbeddedId ( ) . getPartyShortCode ( ) . toUpperCase ( Locale . ENGLISH ) . replace ( UNDER_SCORE , EMPTY_STRING ) . trim ( ) ) ) ;


signature:
public class PartyDocumentChartDataManagerImpl { /** * Adds the document history by party data .
 * @ param dataSeries the data series
 * @ param series the series
 * @ param map the map */
private static void addDocumentHistoryByPartyData ( final DataSeries dataSeries , final Series series , final Map < String , List < ViewRiksdagenPartyDocumentDailySummary > > map ) { } }

implementation: final SimpleDateFormat simpleDateFormat = new SimpleDateFormat ( DD_MMM_YYYY , Locale . ENGLISH ) ; for ( final Entry < String , List < ViewRiksdagenPartyDocumentDailySummary > > entry : map . entrySet ( ) ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; if ( entry . getValue ( ) != null ) { for ( final ViewRiksdagenPartyDocumentDailySummary item : entry . getValue ( ) ) { dataSeries . add ( simpleDateFormat . format ( item . getEmbeddedId ( ) . getPublicDate ( ) ) , item . getTotal ( ) ) ; } } else { LOGGER . info ( LOG_MSG_MISSING_DATA_FOR_KEY , entry ) ; } }


signature:
public class RiksdagenPersonsWorkGeneratorImpl { /** * Read missing person list .
 * @ return the string [ ] */
private static String [ ] readMissingPersonList ( ) { } }

implementation: final Scanner sc = new Scanner ( RiksdagenPersonsWorkGeneratorImpl . class . getResourceAsStream ( "/personlist.txt" ) , StandardCharsets . UTF_8 . name ( ) ) ; final List < String > lines = new ArrayList < > ( ) ; while ( sc . hasNextLine ( ) ) { lines . add ( sc . nextLine ( ) ) ; } sc . close ( ) ; return lines . toArray ( new String [ 0 ] ) ;


signature:
public class ListPropertyConverter { /** * Append object presentation .
 * @ param stringBuilder
 * the string builder
 * @ param object
 * the object */
private void appendObjectPresentation ( final StringBuilder stringBuilder , final Object object ) { } }

implementation: try { final String beanProperty = BeanUtils . getProperty ( object , property ) ; if ( beanProperty != null ) { stringBuilder . append ( beanProperty ) ; } else { addFallbackValue ( stringBuilder , object ) ; } } catch ( final IllegalAccessException | InvocationTargetException | NoSuchMethodException e ) { LOGGER . warn ( "Problem getting property {}, object {} , exception {}" , property , object , e ) ; } stringBuilder . append ( CONTENT_SEPARATOR ) ;


signature:
public class ListPropertyConverter { /** * Adds the fallback value .
 * @ param stringBuilder the string builder
 * @ param object the object
 * @ throws IllegalAccessException the illegal access exception
 * @ throws InvocationTargetException the invocation target exception
 * @ throws NoSuchMethodException the no such method exception */
private void addFallbackValue ( final StringBuilder stringBuilder , final Object object ) throws IllegalAccessException , InvocationTargetException , NoSuchMethodException { } }

implementation: if ( fallbackColumn != null ) { final String beanPropertyFallBack = BeanUtils . getProperty ( object , fallbackColumn ) ; if ( beanPropertyFallBack != null ) { stringBuilder . append ( beanPropertyFallBack ) ; } }


signature:
public class ObjectFactory { /** * Creates a new Object object .
 * @ param value the value
 * @ return the JAXB element < document status container > */
@ XmlElementDecl ( namespace = "http://dokumentstatus.riksdagen.external.model.cia.hack23.com/impl" , name = "dokumentstatus" ) public JAXBElement < DocumentStatusContainer > createDokumentstatus ( final DocumentStatusContainer value ) { } }

implementation: return new JAXBElement < > ( _Dokumentstatus_QNAME , DocumentStatusContainer . class , null , value ) ;


signature:
public class ChangePasswordService { /** * Reencrypt vault values .
 * @ param serviceRequest the service request
 * @ param userAccount the user account */
private void reencryptVaultValues ( final ChangePasswordRequest serviceRequest , final UserAccount userAccount ) { } }

implementation: final String authKey = vaultManager . getEncryptedValue ( serviceRequest . getCurrentPassword ( ) , userAccount ) ; if ( authKey != null ) { final EncryptedValue encryptedValue = encryptedValueDAO . findFirstByProperty ( EncryptedValue_ . userId , userAccount . getUserId ( ) ) ; encryptedValue . setStorage ( vaultManager . encryptValue ( serviceRequest . getNewPassword ( ) , userAccount . getUserId ( ) , authKey ) ) ; encryptedValueDAO . merge ( encryptedValue ) ; }


signature:
public class SwedenCountyElectoralRegion { /** * Gets the landstingsvalkrets .
 * @ return the landstingsvalkrets */
@ OneToMany ( targetEntity = SwedenCountyElectoralArea . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "LANDSTINGSVALKRETS_SWEDEN_CO_0" ) public List < SwedenCountyElectoralArea > getLandstingsvalkrets ( ) { return this . landstingsvalkrets ;


signature:
public class DecisionFlowChartManagerImpl { /** * Adds the commitee summary .
 * @ param stringBuilder the string builder
 * @ param entry the entry
 * @ param vewRiksdagenCommittee the vew riksdagen committee */
private static void addCommiteeSummary ( final StringBuilder stringBuilder , final Entry < String , List < ProposalCommitteeeSummary > > entry , final Optional < ViewRiksdagenCommittee > vewRiksdagenCommittee ) { } }

implementation: if ( vewRiksdagenCommittee . isPresent ( ) ) { final Map < String , List < ProposalCommitteeeSummary > > docTypeMap = entry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDocType ) ) ; stringBuilder . append ( '\n' ) . append ( vewRiksdagenCommittee . get ( ) . getEmbeddedId ( ) . getDetail ( ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > docEntry : docTypeMap . entrySet ( ) ) { if ( docEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { addEntry ( stringBuilder , entry , docEntry ) ; } } }


signature:
public class DecisionFlowChartManagerImpl { /** * Adds the entry .
 * @ param stringBuilder the string builder
 * @ param entry the entry
 * @ param docEntry the doc entry */
private static void addEntry ( final StringBuilder stringBuilder , final Entry < String , List < ProposalCommitteeeSummary > > entry , final Entry < String , List < ProposalCommitteeeSummary > > docEntry ) { } }

implementation: stringBuilder . append ( "( " ) . append ( docEntry . getValue ( ) . size ( ) ) . append ( ' ' ) . append ( docEntry . getKey ( ) ) . append ( " -> " ) ; final Map < String , List < ProposalCommitteeeSummary > > decisionMap = docEntry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDecision ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > decisionEntry : decisionMap . entrySet ( ) ) { if ( decisionEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { stringBuilder . append ( decisionEntry . getValue ( ) . size ( ) ) . append ( ' ' ) . append ( decisionEntry . getKey ( ) ) . append ( ' ' ) ; } } stringBuilder . append ( ')' ) ;


signature:
public class DecisionFlowChartManagerImpl { /** * Adds the decision data rows .
 * @ param chart
 * the chart
 * @ param entry
 * the entry
 * @ param vewRiksdagenCommittee
 * the vew riksdagen committee */
private static void addDecisionDataRows ( final SankeyChart chart , final Entry < String , List < ProposalCommitteeeSummary > > entry , final ViewRiksdagenCommittee vewRiksdagenCommittee ) { } }

implementation: final Map < String , List < ProposalCommitteeeSummary > > decisionMap = entry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDecision ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > decisionEntry : decisionMap . entrySet ( ) ) { if ( decisionEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { chart . addDataRow ( vewRiksdagenCommittee . getEmbeddedId ( ) . getDetail ( ) , decisionEntry . getKey ( ) , decisionEntry . getValue ( ) . size ( ) ) ; } }


signature:
public class DecisionFlowChartManagerImpl { /** * Adds the doc type data rows .
 * @ param chart
 * the chart
 * @ param entry
 * the entry
 * @ param vewRiksdagenCommittee
 * the vew riksdagen committee */
private static void addDocTypeDataRows ( final SankeyChart chart , final Entry < String , List < ProposalCommitteeeSummary > > entry , final ViewRiksdagenCommittee vewRiksdagenCommittee ) { } }

implementation: final Map < String , List < ProposalCommitteeeSummary > > docTypeMap = entry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDocType ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > docEntry : docTypeMap . entrySet ( ) ) { if ( docEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { chart . addDataRow ( docEntry . getKey ( ) , vewRiksdagenCommittee . getEmbeddedId ( ) . getDetail ( ) , docEntry . getValue ( ) . size ( ) ) ; } }


signature:
public class DecisionFlowChartManagerImpl { /** * Adds the doc type decision data rows .
 * @ param chart
 * the chart
 * @ param entry
 * the entry */
private static void addDocTypeDecisionDataRows ( final SankeyChart chart , final Entry < String , List < ProposalCommitteeeSummary > > entry ) { } }

implementation: final Map < String , List < ProposalCommitteeeSummary > > docTypeMap = entry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDocType ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > docEntry : docTypeMap . entrySet ( ) ) { final Map < String , List < ProposalCommitteeeSummary > > decisionMap = docEntry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDecision ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > decisionEntry : decisionMap . entrySet ( ) ) { if ( decisionEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { chart . addDataRow ( docEntry . getKey ( ) , decisionEntry . getKey ( ) , decisionEntry . getValue ( ) . size ( ) ) ; } } }


signature:
public class UserContextUtil { /** * Gets the user id from security context .
 * @ return the user id from security context */
public static String getUserIdFromSecurityContext ( ) { } }

implementation: final SecurityContext context = SecurityContextHolder . getContext ( ) ; if ( context != null ) { final Authentication authentication = context . getAuthentication ( ) ; if ( authentication != null ) { return authentication . getPrincipal ( ) . toString ( ) ; } } return null ;


signature:
public class UserContextUtil { /** * Gets the request url .
 * @ param current
 * the current
 * @ return the request url */
public static String getRequestUrl ( final Page current ) { } }

implementation: if ( current != null ) { return current . getLocation ( ) . toString ( ) ; } else { final HttpServletRequest httpRequest = ( ( ServletRequestAttributes ) RequestContextHolder . currentRequestAttributes ( ) ) . getRequest ( ) ; return httpRequest . getRequestURL ( ) . toString ( ) ; }


signature:
public class UserContextUtil { /** * Allow role in security context .
 * @ param role
 * the role
 * @ return true , if successful */
public static boolean allowRoleInSecurityContext ( final String role ) { } }

implementation: boolean result = false ; final SecurityContext context = SecurityContextHolder . getContext ( ) ; if ( context != null && context . getAuthentication ( ) != null ) { final Collection < ? extends GrantedAuthority > authorities = context . getAuthentication ( ) . getAuthorities ( ) ; for ( final GrantedAuthority grantedAuthority : authorities ) { if ( role . equalsIgnoreCase ( grantedAuthority . getAuthority ( ) ) ) { result = true ; } } } return result ;


signature:
public class AdminChartDataManagerImpl { /** * Gets the application action event page daily summary map .
 * @ return the application action event page daily summary map */
private Map < String , List < ViewApplicationActionEventPageDailySummary > > getApplicationActionEventPageDailySummaryMap ( ) { } }

implementation: final DataContainer < ViewApplicationActionEventPageDailySummary , ApplicationActionEventPagePeriodSummaryEmbeddedId > documentTypeSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewApplicationActionEventPageDailySummary . class ) ; return documentTypeSummaryDailyDataContainer . getAll ( ) . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> t . getEmbeddedId ( ) . getPage ( ) ) ) ;


signature:
public class AdminChartDataManagerImpl { /** * Gets the application action event page mode daily summary map .
 * @ param page the page
 * @ return the application action event page mode daily summary map */
private Map < String , List < ViewApplicationActionEventPageModeDailySummary > > getApplicationActionEventPageModeDailySummaryMap ( final String page ) { } }

implementation: final DataContainer < ViewApplicationActionEventPageModeDailySummary , ApplicationActionEventPageModePeriodSummaryEmbeddedId > documentTypeSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewApplicationActionEventPageModeDailySummary . class ) ; final List < ViewApplicationActionEventPageModeDailySummary > findOrderedListByEmbeddedProperty = documentTypeSummaryDailyDataContainer . findOrderedListByEmbeddedProperty ( ViewApplicationActionEventPageModeDailySummary . class , ViewApplicationActionEventPageModeDailySummary_ . embeddedId , ApplicationActionEventPageModePeriodSummaryEmbeddedId . class , ApplicationActionEventPageModePeriodSummaryEmbeddedId_ . page , page , ApplicationActionEventPageModePeriodSummaryEmbeddedId_ . createdDate ) ; return findOrderedListByEmbeddedProperty . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> t . getEmbeddedId ( ) . getPageMode ( ) ) ) ;


signature:
public class AdminChartDataManagerImpl { /** * Gets the application action event page element daily summary list .
 * @ param page the page
 * @ param elementId the element id
 * @ return the application action event page element daily summary list */
private List < ViewApplicationActionEventPageElementDailySummary > getApplicationActionEventPageElementDailySummaryList ( final String page , final String elementId ) { } }

implementation: final DataContainer < ViewApplicationActionEventPageElementDailySummary , ApplicationActionEventPageElementPeriodSummaryEmbeddedId > documentTypeSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewApplicationActionEventPageElementDailySummary . class ) ; final List < ViewApplicationActionEventPageElementDailySummary > findOrderedListByEmbeddedProperty = documentTypeSummaryDailyDataContainer . findOrderedListByEmbeddedProperty ( ViewApplicationActionEventPageElementDailySummary . class , ViewApplicationActionEventPageElementDailySummary_ . embeddedId , ApplicationActionEventPageElementPeriodSummaryEmbeddedId . class , ApplicationActionEventPageElementPeriodSummaryEmbeddedId_ . elementId , elementId , ApplicationActionEventPageElementPeriodSummaryEmbeddedId_ . createdDate ) ; return findOrderedListByEmbeddedProperty . parallelStream ( ) . filter ( t -> t != null && t . getEmbeddedId ( ) . getPage ( ) . equals ( page ) ) . collect ( Collectors . toList ( ) ) ;


signature:
public class AdminChartDataManagerImpl { /** * Adds the view application action event page element daily summary values .
 * @ param label the label
 * @ param series the series
 * @ param list the list
 * @ param dataSeries the data series
 * @ param simpleDateFormat the simple date format
 * @ param t the t */
private static void addViewApplicationActionEventPageElementDailySummaryValues ( final String label , final Series series , final List < ViewApplicationActionEventPageElementDailySummary > list , final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final ToLongFunction < ViewApplicationActionEventPageElementDailySummary > t ) { } }

implementation: series . addSeries ( new XYseries ( ) . setLabel ( label ) ) ; dataSeries . newSeries ( ) ; for ( final ViewApplicationActionEventPageElementDailySummary item : list ) { dataSeries . add ( simpleDateFormat . format ( item . getEmbeddedId ( ) . getCreatedDate ( ) ) , t . applyAsLong ( item ) ) ; }


signature:
public class RiksdagenUpdateServiceImpl { /** * Update person assignment data .
 * @ param exist the exist
 * @ param update the update */
private static void updatePersonAssignmentData ( final PersonAssignmentData exist , final PersonAssignmentData update ) { } }

implementation: final List < AssignmentData > assignmentList = update . getAssignmentList ( ) ; for ( final AssignmentData assignmentData : assignmentList ) { updateAssignmentData ( exist . getAssignmentList ( ) , assignmentData ) ; }


signature:
public class RiksdagenUpdateServiceImpl { /** * Update assignment data .
 * @ param assignmentList the assignment list
 * @ param assignmentData the assignment data */
private static void updateAssignmentData ( final List < AssignmentData > assignmentList , final AssignmentData assignmentData ) { } }

implementation: for ( final AssignmentData matchAssignmentData : assignmentList ) { if ( matchAssignmentData . getFromDate ( ) . equals ( assignmentData . getFromDate ( ) ) && matchAssignmentData . getOrgCode ( ) . equals ( assignmentData . getOrgCode ( ) ) && matchAssignmentData . getRoleCode ( ) . equals ( assignmentData . getRoleCode ( ) ) ) { matchAssignmentData . setStatus ( assignmentData . getStatus ( ) ) ; matchAssignmentData . setToDate ( assignmentData . getToDate ( ) ) ; return ; } } assignmentList . add ( assignmentData ) ;


signature:
public class AbstractBusinessServiceImpl { /** * Input validation .
 * @ param serviceRequest
 * the service request
 * @ return the v */
protected final V inputValidation ( final T serviceRequest ) { } }

implementation: final Set < ConstraintViolation < T > > validateRequest = validateRequest ( serviceRequest ) ; if ( ! validateRequest . isEmpty ( ) ) { final CreateApplicationEventRequest eventRequest = createApplicationEventForService ( serviceRequest ) ; final V response = createErrorResponse ( ) ; handleInputViolations ( eventRequest , validateRequest , response ) ; createApplicationEventService . processService ( eventRequest ) ; return response ; } else { return null ; }


signature:
public class AbstractBusinessServiceImpl { /** * Creates the base application event request .
 * @ return the creates the application event request */
protected final CreateApplicationEventRequest createBaseApplicationEventRequest ( ) { } }

implementation: final CreateApplicationEventRequest eventRequest = new CreateApplicationEventRequest ( ) ; final UserAccount userAccount = getUserAccountFromSecurityContext ( ) ; if ( userAccount != null ) { eventRequest . setUserId ( userAccount . getUserId ( ) ) ; } return eventRequest ;


signature:
public class AbstractBusinessServiceImpl { /** * Validate request .
 * @ param request
 * the request
 * @ return the sets the */
private Set < ConstraintViolation < T > > validateRequest ( final T request ) { } }

implementation: final ValidatorFactory factory = Validation . buildDefaultValidatorFactory ( ) ; return factory . getValidator ( ) . validate ( request ) ;


signature:
public class AbstractBusinessServiceImpl { /** * Gets the human message .
 * @ param requestConstraintViolations
 * the request constraint violations
 * @ return the human message */
private String getHumanMessage ( final Set < ConstraintViolation < T > > requestConstraintViolations ) { } }

implementation: return requestConstraintViolations . stream ( ) . sorted ( ( p1 , p2 ) -> p1 . getPropertyPath ( ) . toString ( ) . compareTo ( p2 . getPropertyPath ( ) . toString ( ) ) ) . map ( p -> p . getPropertyPath ( ) . toString ( ) + " " + p . getMessage ( ) ) . collect ( Collectors . joining ( ", " ) ) ;


signature:
public class AbstractBusinessServiceImpl { /** * Handle input violations .
 * @ param eventRequest
 * the event request
 * @ param requestConstraintViolations
 * the request constraint violations
 * @ param response
 * the response
 * @ return the v */
private void handleInputViolations ( final CreateApplicationEventRequest eventRequest , final Set < ConstraintViolation < T > > requestConstraintViolations , final V response ) { } }

implementation: final String errorMessage = getHumanMessage ( requestConstraintViolations ) ; ( ( AbstractResponse ) response ) . setErrorMessage ( errorMessage ) ; eventRequest . setErrorMessage ( errorMessage ) ;


signature:
public class WorldIndicatorsPageModContentFactoryImpl { /** * Creates the data indicator summary chart panel .
 * @ param verticalLayout
 * the vertical layout
 * @ param indicator
 * the indicator */
private void createDataIndicatorSummaryChartPanel ( final VerticalLayout verticalLayout , final String indicator ) { } }

implementation: final DataContainer < ViewWorldbankIndicatorDataCountrySummary , WorldbankIndicatorDataCountrySummaryEmbeddedId > indicatorDataCountrSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewWorldbankIndicatorDataCountrySummary . class ) ; final Optional < ViewWorldbankIndicatorDataCountrySummary > indicatorSummary = indicatorDataCountrSummaryDailyDataContainer . getAll ( ) . parallelStream ( ) . filter ( t -> t != null && t . getEmbeddedId ( ) . getIndicatorId ( ) . equals ( indicator ) ) . findFirst ( ) ; ViewWorldbankIndicatorDataCountrySummary indicatorSummaryValue = null ; if ( indicatorSummary . isPresent ( ) ) { indicatorSummaryValue = indicatorSummary . get ( ) ; getFormFactory ( ) . addFormPanelTextFields ( verticalLayout , indicatorSummaryValue , ViewWorldbankIndicatorDataCountrySummary . class , AS_LIST ) ; } final DataContainer < WorldBankData , Serializable > dataContainer = getApplicationManager ( ) . getDataContainer ( WorldBankData . class ) ; final List < WorldBankData > dataList = dataContainer . findListByEmbeddedProperty ( WorldBankData . class , WorldBankData_ . indicator , Indicator . class , Indicator_ . id , indicator ) ; chartDataManager . createIndicatorChart ( verticalLayout , dataList , indicatorSummaryValue ) ;


signature:
public class AbstractMenuItemFactoryImpl { /** * Inits the application menu bar .
 * @ param menuBar
 * the menu bar */
protected final void initApplicationMenuBar ( final MenuBar menuBar ) { } }

implementation: menuBar . removeItems ( ) ; menuBar . setWidth ( MENU_BAR_WIDTH ) ; menuBar . setStyleName ( HEADER_STYLE_NAME ) ; final MenuItem mainViewItem = menuBar . addItem ( APPLICATION , VaadinIcons . SERVER , null ) ; mainViewItem . addItem ( START_TEXT , VaadinIcons . STAR , COMMAND_MAINVIEW_OVERVIEW ) ; final MenuItem mainItem = mainViewItem . addItem ( MAIN , VaadinIcons . STAR , null ) ; mainItem . addItem ( PAGE_VISIT_HISTORY_TEXT , VaadinIcons . LINE_CHART , COMMAND_MAINVIEW_PAGEVISITHISTORY ) ; if ( UserContextUtil . allowRoleInSecurityContext ( ROLE_ADMIN ) || UserContextUtil . allowRoleInSecurityContext ( ROLE_USER ) ) { mainViewItem . addItem ( USERHOME , VaadinIcons . USER , COMMAND_USERHOME ) ; createAdminMenu ( mainViewItem ) ; mainViewItem . addItem ( LOGOUT , VaadinIcons . SIGN_OUT , COMMAND_LOGOUT ) ; } else { mainViewItem . addItem ( LOGIN , VaadinIcons . SIGN_IN , COMMAND_LOGIN ) ; mainViewItem . addItem ( REGISTER , VaadinIcons . FILE_ADD , COMMAND_REGISTER ) ; }


signature:
public class AbstractMenuItemFactoryImpl { /** * Creates the admin menu .
 * @ param mainViewItem
 * the main view item */
private static void createAdminMenu ( final MenuItem mainViewItem ) { } }

implementation: if ( UserContextUtil . allowRoleInSecurityContext ( ROLE_ADMIN ) ) { final MenuItem adminMenuItem = mainViewItem . addItem ( ADMIN_TEXT , VaadinIcons . SERVER , null ) ; final MenuItem configurationMenuItem = adminMenuItem . addItem ( CONFIGURATION , VaadinIcons . TOOLS , null ) ; configurationMenuItem . addItem ( APPLICATION_CONFIGURATION , VaadinIcons . TOOLS , COMMAND_APPLICATION_CONFIGURATION ) ; configurationMenuItem . addItem ( AGENCY , VaadinIcons . SERVER , COMMAND_AGENCY ) ; configurationMenuItem . addItem ( PORTAL , VaadinIcons . SITEMAP , COMMAND_PORTAL ) ; configurationMenuItem . addItem ( COUNTRY , VaadinIcons . FLAG , COMMAND_COUNTRY ) ; configurationMenuItem . addItem ( LANGUAGE , VaadinIcons . ACCESSIBILITY , COMMAND_LANGUAGE ) ; configurationMenuItem . addItem ( LANGUAGE_CONTENT , VaadinIcons . FILE_TEXT , COMMAND_LANGUAGE_CONTENT ) ; final MenuItem managementMenuItem = adminMenuItem . addItem ( MANAGEMENT , VaadinIcons . SERVER , null ) ; managementMenuItem . addItem ( AGENT_OPERATIONS_TEXT , VaadinIcons . BRIEFCASE , COMMAND_AGENT_OPERATION ) ; managementMenuItem . addItem ( DATA_SUMMARY_TEXT , VaadinIcons . DATABASE , COMMAND_DATASUMMARY ) ; managementMenuItem . addItem ( DATA_AUTHOR_SUMMARY , VaadinIcons . DATABASE , COMMAND_AUTHOR_DATASUMMARY ) ; managementMenuItem . addItem ( EMAIL , VaadinIcons . MAILBOX , COMMAND_EMAIL ) ; managementMenuItem . addItem ( SYSTEM_PERFORMANCE , VaadinIcons . DASHBOARD , COMMAND_MONITORING ) ; final MenuItem userActivityMenuItem = adminMenuItem . addItem ( USER_ACTIVITY , VaadinIcons . DATABASE , null ) ; userActivityMenuItem . addItem ( APPLICATION_SESSION , VaadinIcons . LAPTOP , COMMAND_APPLICATION_SESSION ) ; userActivityMenuItem . addItem ( APPLICATION_EVENT , VaadinIcons . ARROWS , COMMAND_APPLICATION_EVENTS ) ; userActivityMenuItem . addItem ( APPLICATION_EVENT_CHARTS , VaadinIcons . ARROWS , COMMAND_APPLICATION_EVENTS_CHARTS ) ; userActivityMenuItem . addItem ( USERACCOUNT , VaadinIcons . GROUP , COMMAND_USERACCOUNT ) ; }


signature:
public class AbstractMenuItemFactoryImpl { /** * Creates the button link .
 * @ param row
 * the panel content
 * @ param linkText
 * the link text
 * @ param icon
 * the icon
 * @ param command
 * the command
 * @ param description
 * the description */
protected final void createButtonLink ( final ResponsiveRow row , final String linkText , final Resource icon , final ClickListener command , final String description ) { } }

implementation: final CssLayout layout = new CssLayout ( ) ; layout . addStyleName ( "v-layout-content-overview-panel-level2" ) ; Responsive . makeResponsive ( layout ) ; layout . setSizeUndefined ( ) ; final Button button = new Button ( linkText ) ; Responsive . makeResponsive ( button ) ; button . setStyleName ( LINK_STYLE_NAME ) ; button . addStyleName ( "title" ) ; button . addClickListener ( command ) ; button . setIcon ( icon ) ; button . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . addComponent ( button ) ; final Label descriptionLabel = new Label ( description ) ; descriptionLabel . addStyleName ( "itembox" ) ; Responsive . makeResponsive ( descriptionLabel ) ; descriptionLabel . setWidth ( 100 , Unit . PERCENTAGE ) ; layout . addComponent ( descriptionLabel ) ; row . addColumn ( ) . withDisplayRules ( DISPLAY_SIZE_XS_DEVICE , DISPLAYS_SIZE_XM_DEVICE , DISPLAY_SIZE_MD_DEVICE , DISPLAY_SIZE_LG_DEVICE ) . withComponent ( layout ) ;


signature:
public class ObjectFactory { /** * Creates a new Object object .
 * @ param value the value
 * @ return the JAXB element < sweden parliament electoral region container > */
@ XmlElementDecl ( namespace = "http://riksdagsvalkrets.val.external.model.cia.hack23.com/impl" , name = "root" ) public JAXBElement < SwedenParliamentElectoralRegionContainer > createRoot ( final SwedenParliamentElectoralRegionContainer value ) { } }

implementation: return new JAXBElement < > ( _Root_QNAME , SwedenParliamentElectoralRegionContainer . class , null , value ) ;


signature:
public class ObjectFactory { /** * Creates a new Object object .
 * @ param value the value
 * @ return the JAXB element < indicator element > */
@ XmlElementDecl ( namespace = "http://indicators.worldbank.external.model.cia.hack23.com/impl" , name = "indicator" ) public JAXBElement < IndicatorElement > createIndicator ( final IndicatorElement value ) { } }

implementation: return new JAXBElement < > ( _Indicator_QNAME , IndicatorElement . class , null , value ) ;


signature:
public class SearchDocumentResponse { /** * Sets the result element .
 * @ param resultElement
 * the new result element */
public void setResultElement ( final List < DocumentElement > resultElement ) { } }

implementation: if ( resultElement != null ) { this . resultElement = resultElement . stream ( ) . collect ( Collectors . toList ( ) ) ; }


signature:
public class RulesConfiguration { /** * Kie container .
 * @ return the kie container */
@ Bean public KieContainer kieContainer ( ) { } }

implementation: final KieServices kieServices = KieServices . Factory . get ( ) ; final KieContainer kContainer = kieServices . getKieClasspathContainer ( ) ; LOGGER . info ( "Using classloader {}, parent {}" , kContainer . getClassLoader ( ) , kContainer . getClassLoader ( ) . getParent ( ) ) ; final Results verifyResults = kContainer . verify ( ) ; for ( final Message m : verifyResults . getMessages ( ) ) { LOGGER . warn ( "Kie container message: {}" , m ) ; } final KieBase kieBase = kContainer . getKieBase ( ) ; for ( final KiePackage kp : kieBase . getKiePackages ( ) ) { for ( final Rule rule : kp . getRules ( ) ) { LOGGER . info ( "Loadded Rule: {} {}" , kp , rule . getName ( ) ) ; } } return kContainer ;


signature:
public class AuditableAspectConfiguration { /** * Gets the javers .
 * @ param txManager the tx manager
 * @ return the javers */
@ Bean public Javers getJavers ( final PlatformTransactionManager txManager ) { } }

implementation: final JaversSqlRepository sqlRepository = SqlRepositoryBuilder . sqlRepository ( ) . withConnectionProvider ( new ConnectionProvider ( ) { @ Override public Connection getConnection ( ) { final SessionImpl session = ( SessionImpl ) entityManager . unwrap ( Session . class ) ; return session . connection ( ) ; } } ) . withDialect ( DialectName . POSTGRES ) . build ( ) ; return TransactionalJaversBuilder . javers ( ) . withTxManager ( txManager ) . withObjectAccessHook ( new HibernateUnproxyObjectAccessHook ( ) ) . registerJaversRepository ( sqlRepository ) . withMappingStyle ( MappingStyle . BEAN ) . build ( ) ;


signature:
public class AuditableAspectConfiguration { /** * Javers auditable aspect .
 * @ param javers the javers
 * @ param authorProvider the author provider
 * @ param commitPropertiesProvider the commit properties provider
 * @ return the javers auditable aspect */
@ Bean public JaversAuditableAspect javersAuditableAspect ( final Javers javers , final AuthorProvider authorProvider , final CommitPropertiesProvider commitPropertiesProvider ) { } }

implementation: return new JaversAuditableAspect ( javers , authorProvider , commitPropertiesProvider ) ;


signature:
public class AuditableAspectConfiguration { /** * Author provider .
 * @ return the author provider */
@ Bean public AuthorProvider authorProvider ( ) { } }

implementation: return ( ) -> { final SecurityContext context = SecurityContextHolder . getContext ( ) ; if ( context != null && context . getAuthentication ( ) != null ) { return context . getAuthentication ( ) . getPrincipal ( ) . toString ( ) ; } else { return "system" ; } } ;


signature:
public class PoliticianRoleSummaryPageModContentFactoryImpl { /** * Creates the role summary .
 * @ param roleSummaryLayoutTabsheet the role summary layout tabsheet
 * @ param assignmentList the assignment list
 * @ param viewRiksdagenPolitician the view riksdagen politician */
private void createRoleSummary ( final VerticalLayout roleSummaryLayoutTabsheet , final List < AssignmentData > assignmentList , final ViewRiksdagenPolitician viewRiksdagenPolitician ) { } }

implementation: final VerticalLayout layout = new VerticalLayout ( ) ; layout . setSizeFull ( ) ; layout . addComponent ( new Label ( TOTAL_ASSIGNMENTS + assignmentList . size ( ) ) ) ; if ( viewRiksdagenPolitician != null ) { layout . addComponent ( new Label ( GOVERNMENT_EXPERIENCE + convertToYearsString ( viewRiksdagenPolitician . getTotalDaysServedGovernment ( ) ) ) ) ; layout . addComponent ( new Label ( SPEAKER_EXPERIENCE + convertToYearsString ( viewRiksdagenPolitician . getTotalDaysServedSpeaker ( ) ) ) ) ; layout . addComponent ( new Label ( COMMITTEE_EXPERIENCE + convertToYearsString ( viewRiksdagenPolitician . getTotalDaysServedCommittee ( ) ) ) ) ; layout . addComponent ( new Label ( EU_EXPERIENCE + convertToYearsString ( viewRiksdagenPolitician . getTotalDaysServedEu ( ) ) ) ) ; layout . addComponent ( new Label ( PARLIAMENT_EXPERIENCE + convertToYearsString ( viewRiksdagenPolitician . getTotalDaysServedParliament ( ) ) ) ) ; layout . addComponent ( new Label ( PARTY_EXPERIENCE + convertToYearsString ( viewRiksdagenPolitician . getTotalDaysServedParty ( ) ) ) ) ; } roleSummaryLayoutTabsheet . addComponent ( layout ) ; roleSummaryLayoutTabsheet . setExpandRatio ( layout , ContentRatio . GRID ) ;


signature:
public class GovernmentBodyAnnualOutcomeSummary { /** * Adds the data .
 * @ param month
 * the month
 * @ param value
 * the value */
public void addData ( final int month , final Double value ) { } }

implementation: yearTotal = yearTotal + value ; final Date date = new GregorianCalendar ( year , month , 1 ) . getTime ( ) ; valueMap . put ( date , value ) ;


signature:
public class ViewApplicationActionEventPageDailySummary { /** * Gets the value of the embeddedId property .
 * @ return
 * possible object is
 * { @ link ApplicationActionEventPagePeriodSummaryEmbeddedId } */
@ EmbeddedId @ AttributeOverrides ( { } }

implementation: @ AttributeOverride ( name = "createdDate" , column = @ Column ( name = "EMBEDDED_ID_CREATED_DATE" ) ) , @ AttributeOverride ( name = "page" , column = @ Column ( name = "EMBEDDED_ID_PAGE" ) ) } ) public ApplicationActionEventPagePeriodSummaryEmbeddedId getEmbeddedId ( ) { return embeddedId ;


signature:
public class EsvExcelReaderImpl { /** * Adds the ministry per year to map .
 * @ param name
 * the name
 * @ param map
 * the map
 * @ param mySheet
 * the my sheet */
private static void addMinistryPerYearToMap ( final String name , final Map < Integer , List < GovernmentBodyAnnualSummary > > map , final HSSFSheet mySheet ) { } }

implementation:
if ( mySheet . getSheetName ( ) . chars ( ) . allMatch ( Character :: isDigit ) ) { final int year = Integer . parseInt ( mySheet . getSheetName ( ) ) ; final List < GovernmentBodyAnnualSummary > yearList = new ArrayList < > ( ) ; final Iterator < Row > rowIterator = mySheet . iterator ( ) ; // Skip header row , ignore first
rowIterator . next ( ) ; while ( rowIterator . hasNext ( ) ) { addGovernmentBodyAnnualSummaryToList ( name , year , yearList , rowIterator . next ( ) ) ; } map . put ( year , yearList ) ; }


signature:
public class EsvExcelReaderImpl { /** * Adds the government body annual summary to list .
 * @ param name
 * the name
 * @ param year
 * the year
 * @ param yearList
 * the year list
 * @ param row
 * the row */
private static void addGovernmentBodyAnnualSummaryToList ( final String name , final int year , final List < GovernmentBodyAnnualSummary > yearList , final Row row ) { } }

implementation: if ( row . getLastCellNum ( ) >= EXPECTED_COLUMN_LENGTH ) { final GovernmentBodyAnnualSummary governmentBodyAnnualSummary = createGovernmentBodyAnnualSummaryFromRow ( year , row ) ; if ( name == null || name . equalsIgnoreCase ( governmentBodyAnnualSummary . getMinistry ( ) ) ) { yearList . add ( governmentBodyAnnualSummary ) ; } }


signature:
public class EsvExcelReaderImpl { /** * Gets the integer .
 * @ param str
 * the str
 * @ return the integer */
private static int getInteger ( final String str ) { } }

implementation: if ( str == null || str . trim ( ) . length ( ) == 0 ) { return 0 ; } else { return Integer . parseInt ( str ) ; }


signature:
public class EsvExcelReaderImpl { /** * Adds the data for year to map .
 * @ param name
 * the name
 * @ param map
 * the map
 * @ param mySheet
 * the my sheet */
private static void addDataForYearToMap ( final String name , final Map < Integer , GovernmentBodyAnnualSummary > map , final HSSFSheet mySheet ) { } }

implementation: if ( mySheet . getSheetName ( ) . chars ( ) . allMatch ( Character :: isDigit ) ) { final int year = Integer . parseInt ( mySheet . getSheetName ( ) ) ; final Iterator < Row > rowIterator = mySheet . iterator ( ) ; rowIterator . next ( ) ; while ( rowIterator . hasNext ( ) ) { addGovernmentBodyAnnualSummaryToMap ( name , map , year , rowIterator . next ( ) ) ; } }


signature:
public class EsvExcelReaderImpl { /** * Adds the government body annual summary to map .
 * @ param name
 * the name
 * @ param map
 * the map
 * @ param year
 * the year
 * @ param row
 * the row */
private static void addGovernmentBodyAnnualSummaryToMap ( final String name , final Map < Integer , GovernmentBodyAnnualSummary > map , final int year , final Row row ) { } }

implementation: if ( row . getLastCellNum ( ) >= EXPECTED_COLUMN_LENGTH ) { final GovernmentBodyAnnualSummary governmentBodyAnnualSummary = createGovernmentBodyAnnualSummaryFromRow ( year , row ) ; if ( name == null || name . equalsIgnoreCase ( governmentBodyAnnualSummary . getName ( ) ) ) { map . put ( year , governmentBodyAnnualSummary ) ; } }


signature:
public class EsvExcelReaderImpl { /** * Creates the government body annual summary from row .
 * @ param year
 * the year
 * @ param row
 * the row
 * @ return the government body annual summary */
private static GovernmentBodyAnnualSummary createGovernmentBodyAnnualSummaryFromRow ( final int year , final Row row ) { } }

implementation: return new GovernmentBodyAnnualSummary ( year , defaultValueIfNull ( row . getCell ( NAME_CELL ) ) , getInteger ( defaultValueIfNull ( row . getCell ( CONSECUTIVE_NUMBER_CELL ) ) ) , defaultValueIfNull ( row . getCell ( GOVERNMENT_BODY_ID_CELL ) ) , defaultValueIfNull ( row . getCell ( MCODE_CELL ) ) , defaultValueIfNull ( row . getCell ( MINISTRY_CELL ) ) , defaultValueIfNull ( row . getCell ( ORG_NUMBER_CELL ) ) , getInteger ( defaultValueIfNull ( row . getCell ( HEADCOUNT_CELL ) ) ) , getInteger ( defaultValueIfNull ( row . getCell ( ANNUAL_HEADCOUNT_CELL ) ) ) , defaultValueIfNull ( row . getCell ( VAT_CELL ) ) , defaultValueIfNull ( row . getCell ( COMMENT_CELL ) ) ) ;


signature:
public class ObjectFactory { /** * Creates a new Object object .
 * @ param value the value
 * @ return the JAXB element < person container data > */
@ XmlElementDecl ( namespace = "http://person.riksdagen.external.model.cia.hack23.com/impl" , name = "personlista" ) public JAXBElement < PersonContainerData > createPersonlista ( final PersonContainerData value ) { } }

implementation: return new JAXBElement < > ( _Personlista_QNAME , PersonContainerData . class , null , value ) ;


signature:
public class PersonData { /** * Gets the person assignment data .
 * @ return the person assignment data */
@ ManyToOne ( targetEntity = PersonAssignmentData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PERSON_ASSIGNMENT_DATA_PERSO_0" ) public PersonAssignmentData getPersonAssignmentData ( ) { return personAssignmentData ;


signature:
public class PersonData { /** * Gets the person detail data .
 * @ return the person detail data */
@ ManyToOne ( targetEntity = PersonDetailData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PERSON_DETAIL_DATA_PERSON_DA_0" ) public PersonDetailData getPersonDetailData ( ) { return personDetailData ;


signature:
public class PoliticianRankingOverviewPageModContentFactoryImpl { /** * Creates the description .
 * @ return the text area */
private static TextArea createDescription ( ) { } }

implementation: final TextArea totalpoliticantoplistLabel = new TextArea ( "Politician Ranking by topic" , "Time served in Parliament:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion" + "\nTime served in Committees:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion" + "\nTime served in Government:ALL:CURRENT:*FILTER:Gender,Party,ElectionRegion" + "\nTop document author NR:ALL:YEAR:CURRENT:*FILTER:DocumnetType,Gender,Party,ElectionRegion" + "\nTop document author SIZE:YEAR:ALL:CURRENT:*FILTER:DocumnetType,Gender,Party,ElectionRegion" + "\nTop votes:ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nTop vote winner NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nTop vote party rebel NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nTop vote presence NR/PERCENTAGE :ALL:YEAR:CURRENT::*FILTER:Gender,Party,ElectionRegion" + "\nSearch by name" ) ; totalpoliticantoplistLabel . setSizeFull ( ) ; totalpoliticantoplistLabel . setStyleName ( "Level2Header" ) ; return totalpoliticantoplistLabel ;


signature:
public class DecisionChartDataManagerImpl { /** * Gets the committee decision type map .
 * @ return the committee decision type map */
private Map < String , List < ViewRiksdagenCommitteeDecisionTypeDailySummary > > getCommitteeDecisionTypeMap ( ) { } }

implementation: final DataContainer < ViewRiksdagenCommitteeDecisionTypeDailySummary , RiksdagenCommitteeDecisionTypeSummaryEmbeddedId > committeeBallotDecisionPartyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewRiksdagenCommitteeDecisionTypeDailySummary . class ) ; final Date now = new Date ( ) ; final Date notBefore = new GregorianCalendar ( 2000 , Calendar . JANUARY , 1 ) . getTime ( ) ; return committeeBallotDecisionPartyDataContainer . getAll ( ) . parallelStream ( ) . filter ( t -> t != null && ! t . getEmbeddedId ( ) . getDecisionDate ( ) . after ( now ) && ! notBefore . after ( t . getEmbeddedId ( ) . getDecisionDate ( ) ) ) . collect ( Collectors . groupingBy ( t -> t . getEmbeddedId ( ) . getDecisionType ( ) ) ) ;


signature:
public class DecisionChartDataManagerImpl { /** * Gets the committee decision type org map .
 * @ return the committee decision type org map */
private Map < String , List < ViewRiksdagenCommitteeDecisionTypeOrgDailySummary > > getCommitteeDecisionTypeOrgMap ( ) { } }

implementation: final DataContainer < ViewRiksdagenCommitteeDecisionTypeOrgDailySummary , RiksdagenCommitteeDecisionTypeOrgSummaryEmbeddedId > committeeBallotDecisionPartyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewRiksdagenCommitteeDecisionTypeOrgDailySummary . class ) ; return committeeBallotDecisionPartyDataContainer . getAll ( ) . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> t . getEmbeddedId ( ) . getOrg ( ) ) ) ;


signature:
public class DecisionChartDataManagerImpl { /** * Adds the decision type by org data .
 * @ param simpleDateFormat the simple date format
 * @ param dataSeries the data series
 * @ param series the series
 * @ param map the map */
private static void addDecisionTypeByOrgData ( final SimpleDateFormat simpleDateFormat , final DataSeries dataSeries , final Series series , final Map < String , List < ViewRiksdagenCommitteeDecisionTypeOrgDailySummary > > map ) { } }

implementation: for ( final Entry < String , List < ViewRiksdagenCommitteeDecisionTypeOrgDailySummary > > entry : map . entrySet ( ) ) { if ( ! EMPTY_STRING . equals ( entry . getKey ( ) ) ) { final XYseries label = new XYseries ( ) ; label . setLabel ( entry . getKey ( ) ) ; series . addSeries ( label ) ; dataSeries . newSeries ( ) ; for ( final ViewRiksdagenCommitteeDecisionTypeOrgDailySummary item : entry . getValue ( ) ) { dataSeries . add ( simpleDateFormat . format ( item . getEmbeddedId ( ) . getDecisionDate ( ) ) , item . getTotal ( ) ) ; } } }


signature:
public class CountriesElement { /** * Gets the country .
 * @ return the country */
@ OneToMany ( targetEntity = CountryElement . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "COUNTRY_COUNTRIES_ELEMENT_HJ_0" ) public List < CountryElement > getCountry ( ) { return this . country ;


signature:
public class DocumentAttachementsPageModContentFactoryImpl { /** * Display document attachements .
 * @ param panelContent the panel content
 * @ param documentAttachmentList the document attachment list */
private static void displayDocumentAttachements ( final VerticalLayout panelContent , final List < DocumentAttachment > documentAttachmentList ) { } }

implementation: for ( final DocumentAttachment documentAttachment : documentAttachmentList ) { if ( PDF . equalsIgnoreCase ( documentAttachment . getFileType ( ) ) ) { final WTPdfViewer wtPdfViewer = new WTPdfViewer ( ) ; wtPdfViewer . setSizeFull ( ) ; wtPdfViewer . setResource ( new StreamResource ( new StreamSourceImplementation ( documentAttachment . getFileUrl ( ) ) , documentAttachment . getFileName ( ) ) ) ; panelContent . addComponent ( wtPdfViewer ) ; panelContent . setExpandRatio ( wtPdfViewer , ContentRatio . LARGE ) ; } else { final VerticalLayout verticalLayout = new VerticalLayout ( ) ; panelContent . addComponent ( verticalLayout ) ; panelContent . setExpandRatio ( verticalLayout , ContentRatio . SMALL ) ; final ExternalAttachmentDownloadLink link = new ExternalAttachmentDownloadLink ( documentAttachment . getFileName ( ) , documentAttachment . getFileType ( ) , documentAttachment . getFileUrl ( ) ) ; verticalLayout . addComponent ( link ) ; } }


signature:
public class LabelFactory { /** * Creates a new Label object .
 * @ param panel
 * the panel
 * @ param content
 * the content */
public static void createHeader2Label ( final AbstractOrderedLayout panel , final String content ) { } }

implementation: final Label label = new Label ( content ) ; label . setStyleName ( "Level2Header" ) ; panel . addComponent ( label ) ; panel . setExpandRatio ( label , ContentRatio . SMALL ) ;


signature:
public class VaultManagerImpl { /** * Builds the key .
 * @ param userid
 * the userid
 * @ param password
 * the password
 * @ return the key */
private static Key buildKey ( final String userid , final String password ) { } }

implementation: return new SecretKeySpec ( Arrays . copyOf ( new SHA3 . Digest512 ( ) . digest ( ( userid + ".uuid" + password ) . getBytes ( StandardCharsets . UTF_8 ) ) , KEY_SIZE_IN_BYTES ) , ALGORITHM ) ;


signature:
public class ObjectFactory { /** * Creates a new Object object .
 * @ param value the value
 * @ return the JAXB element < document content data > */
@ XmlElementDecl ( namespace = "http://documentcontent.riksdagen.external.model.cia.hack23.com/impl" , name = "documentcontentdata" ) public JAXBElement < DocumentContentData > createDocumentcontentdata ( final DocumentContentData value ) { } }

implementation: return new JAXBElement < > ( _Documentcontentdata_QNAME , DocumentContentData . class , null , value ) ;


signature:
public class PartySupportsChartDataManagerImpl { /** * Adds the data .
 * @ param map the map
 * @ param series the series
 * @ param dataSeries the data series */
private static void addData ( final Map < String , List < ViewRiksdagenPartyBallotSupportAnnualSummary > > map , final Series series , final DataSeries dataSeries ) { } }

implementation: final Set < Entry < String , List < ViewRiksdagenPartyBallotSupportAnnualSummary > > > entryMap = map . entrySet ( ) ; for ( final Entry < String , List < ViewRiksdagenPartyBallotSupportAnnualSummary > > entry : entryMap ) { series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; for ( final ViewRiksdagenPartyBallotSupportAnnualSummary data : entry . getValue ( ) ) { dataSeries . add ( data . getEmbeddedId ( ) . getDate ( ) , 100 - data . getDisagreePercentage ( ) ) ; } }


signature:
public class AbstractComplianceCheckImpl { /** * Gets the rule summary .
 * @ return the rule summary */
@ Override public final String getRuleSummary ( ) { } }

implementation: final Collection < RuleViolation > values = ruleViolationMap . values ( ) ; final StringBuilder builder = new StringBuilder ( ) ; for ( final RuleViolation ruleViolation : values ) { builder . append ( '[' ) . append ( ruleViolation . getRuleName ( ) ) . append ( '/' ) . append ( ruleViolation . getStatus ( ) ) . append ( ']' ) ; } return builder . toString ( ) ;


signature:
public class AbstractComplianceCheckImpl { /** * Adds the violation .
 * @ param status
 * the status
 * @ param ruleName
 * the rule name
 * @ param ruleGroup
 * the rule group
 * @ param ruleDescription
 * the rule description
 * @ param positive
 * the positive */
public final void addViolation ( final Status status , final String ruleName , final String ruleGroup , final String ruleDescription , final String positive ) { } }

implementation: final RuleViolation currentRuleViolation = ruleViolationMap . get ( ruleName ) ; if ( currentRuleViolation == null || status . ordinal ( ) > currentRuleViolation . getStatus ( ) . ordinal ( ) ) { ruleViolationMap . put ( ruleName , new RuleViolation ( getId ( ) , getName ( ) , resourceType , ruleName , ruleDescription , ruleGroup , status , positive ) ) ; }


signature:
public class ObjectFactory { /** * Creates a new Object object .
 * @ param value the value
 * @ return the JAXB element < ballot container > */
@ XmlElementDecl ( namespace = "http://votering.riksdagen.external.model.cia.hack23.com/impl" , name = "votering" ) public JAXBElement < BallotContainer > createVotering ( final BallotContainer value ) { } }

implementation: return new JAXBElement < > ( _Votering_QNAME , BallotContainer . class , null , value ) ;


signature:
public class RiksdagenImportServiceImpl { /** * Creates the map from list vote .
 * @ param list
 * the list
 * @ return the map */
private static Map < String , String > createMapFromListVote ( final List < VoteDataEmbeddedId > list ) { } }

implementation: final Map < String , String > map = new ConcurrentHashMap < > ( ) ; for ( final VoteDataEmbeddedId documentElement : list ) { map . put ( documentElement . getBallotId ( ) , documentElement . getBallotId ( ) ) ; } return map ;


signature:
public class RiksdagenImportServiceImpl { /** * Check include date .
 * @ param after
 * the after
 * @ param documentTypeValues
 * the document type values
 * @ param documentElement
 * the document element
 * @ return true , if successful */
private static boolean checkIncludeDate ( final Date after , final List < String > documentTypeValues , final DocumentElement documentElement ) { } }

implementation: try { if ( documentElement . getMadePublicDate ( ) != null && documentElement . getMadePublicDate ( ) . length ( ) > 0 ) { return getDate ( documentElement . getMadePublicDate ( ) ) . after ( after ) && documentTypeValues . contains ( documentElement . getDocumentType ( ) ) ; } else { return getDate ( documentElement . getCreatedDate ( ) ) . after ( after ) && documentTypeValues . contains ( documentElement . getDocumentType ( ) ) ; } } catch ( final ParseException e ) { LOGGER . warn ( "Problem getting date from{} : exception:{}" , documentElement , e ) ; return false ; }


signature:
public class RiksdagenImportServiceImpl { /** * Gets the date .
 * @ param date
 * the date
 * @ return the date
 * @ throws ParseException
 * the parse exception */
private static Date getDate ( final String date ) throws ParseException { } }

implementation: if ( RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT . length ( ) > date . length ( ) ) { return new SimpleDateFormat ( RIKSDAGEN_JAVA_SIMPLE_DATE_TIME_FORMAT , Locale . ENGLISH ) . parse ( date ) ; } else { return new SimpleDateFormat ( RIKSDAGEN_JAVA_SIMPLE_DATE_FORMAT , Locale . ENGLISH ) . parse ( date ) ; }


signature:
public class SwedenElectionRegion { /** * Gets the parties .
 * @ return the parties */
@ OneToMany ( targetEntity = SwedenPoliticalParty . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PARTIES_SWEDEN_ELECTION_REGI_0" ) public List < SwedenPoliticalParty > getParties ( ) { return this . parties ;


signature:
public class RiksdagenBallotApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenBallotApi # getBallot ( java . lang . String ) */
@ Override public List < VoteData > getBallot ( final String id ) throws DataFailureException { } }

implementation: final String url = BALLOT . replace ( ID_KEY , id ) ; try { final BallotContainer ballotContainer = ( ( JAXBElement < BallotContainer > ) xmlAgent . unmarshallXml ( riksdagenBallotMarshaller , url , HTTP_VOTERING_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) ; final List < VoteData > result = new ArrayList < > ( ) ; if ( ballotContainer != null && ballotContainer . getBallotDocumentData ( ) != null ) { final List < VoteDataDto > voteDataList = ballotContainer . getBallotDocumentData ( ) . getVoteDataList ( ) ; final Date ballotDate = riksdagenDateUtil . tryToFindValidVoteDate ( ballotContainer , voteDataList ) ; for ( final VoteDataDto voteDataDto : voteDataList ) { final VoteData voteData = new VoteData ( ) . withEmbeddedId ( new VoteDataEmbeddedId ( ) . withBallotId ( voteDataDto . getBallotId ( ) ) . withIntressentId ( voteDataDto . getIntressentId ( ) ) . withIssue ( voteDataDto . getIssue ( ) ) . withConcern ( voteDataDto . getConcern ( ) ) ) ; voteData . setBankNumber ( voteDataDto . getBankNumber ( ) ) ; voteData . setLabel ( voteDataDto . getLabel ( ) ) ; voteData . setLastName ( voteDataDto . getLastName ( ) ) ; voteData . setBornYear ( voteDataDto . getBornYear ( ) ) ; voteData . setFirstName ( voteDataDto . getFirstName ( ) ) ; voteData . setPlace ( voteDataDto . getPlace ( ) ) ; voteData . setGender ( voteDataDto . getGender ( ) ) ; voteData . setFullName ( voteDataDto . getFullName ( ) ) ; voteData . setParty ( voteDataDto . getParty ( ) . toUpperCase ( Locale . ENGLISH ) ) ; voteData . setRm ( voteDataDto . getRm ( ) ) ; voteData . setVote ( voteDataDto . getVote ( ) ) ; voteData . setBallotType ( voteDataDto . getBallotType ( ) ) ; voteData . setElectoralRegionNumber ( voteDataDto . getElectoralRegionNumber ( ) ) ; voteData . setElectoralRegion ( voteDataDto . getElectoralRegion ( ) ) ; voteData . setVoteDate ( ballotDate ) ; result . add ( voteData ) ; } } return result ; } catch ( final XmlAgentException | ParseException e ) { LOGGER . warn ( PROBLEM_GETTING_BALLOT_ID_S_FROM_DATA_RIKSDAGEN_SE , id ) ; throw new DataFailureException ( e ) ; }


signature:
public class RiksdagenBallotApiImpl { /** * / * ( non - Javadoc )
 * @ see com . hack23 . cia . service . external . riksdagen . api . RiksdagenBallotApi # getBallotList ( ) */
@ Override public List < BallotDocumentElement > getBallotList ( ) throws DataFailureException { } }

implementation: try { final String url = BALLOT_LIST ; return ( ( JAXBElement < VoteListContainerElement > ) xmlAgent . unmarshallXml ( riksdagenBallotListMarshaller , url , HTTP_VOTERINGLISTA_RIKSDAGEN_EXTERNAL_MODEL_CIA_HACK23_COM_IMPL , null , null ) ) . getValue ( ) . getVotering ( ) ; } catch ( final XmlAgentException e ) { LOGGER . warn ( PROBLEM_GETTING_BALLOT_LIST_FROM_DATA_RIKSDAGEN_SE ) ; throw new DataFailureException ( e ) ; }


signature:
public class UserHomeSecuritySettingsPageModContentFactoryImpl { /** * Creates the enable google auth button .
 * @ return the vertical layout */
private VerticalLayout createEnableGoogleAuthButton ( ) { } }

implementation: final VerticalLayout formLayout = new VerticalLayout ( ) ; formLayout . setSizeFull ( ) ; final Panel formPanel = new Panel ( ) ; formPanel . setSizeFull ( ) ; formLayout . addComponent ( formPanel ) ; final FormLayout formContent = new FormLayout ( ) ; formPanel . setContent ( formContent ) ; final SetGoogleAuthenticatorCredentialRequest request = new SetGoogleAuthenticatorCredentialRequest ( ) ; request . setSessionId ( RequestContextHolder . currentRequestAttributes ( ) . getSessionId ( ) ) ; request . setUserpassword ( "" ) ; final ClickListener listener = new SetGoogleAuthenticatorCredentialClickListener ( request ) ; getFormFactory ( ) . addRequestInputFormFields ( formContent , request , SetGoogleAuthenticatorCredentialRequest . class , AS_LIST , ENABLE_GOOGLE_AUTHENTICATOR , listener ) ; return formLayout ;


signature:
public class UserHomeSecuritySettingsPageModContentFactoryImpl { /** * Creates the disable google auth button .
 * @ return the vertical layout */
private VerticalLayout createDisableGoogleAuthButton ( ) { } }

implementation: final VerticalLayout formLayout = new VerticalLayout ( ) ; formLayout . setSizeFull ( ) ; final Panel formPanel = new Panel ( ) ; formPanel . setSizeFull ( ) ; formLayout . addComponent ( formPanel ) ; final FormLayout formContent = new FormLayout ( ) ; formPanel . setContent ( formContent ) ; final DisableGoogleAuthenticatorCredentialRequest request = new DisableGoogleAuthenticatorCredentialRequest ( ) ; request . setSessionId ( RequestContextHolder . currentRequestAttributes ( ) . getSessionId ( ) ) ; request . setUserpassword ( "" ) ; final ClickListener listener = new DisableGoogleAuthenticatorCredentialClickListener ( request ) ; getFormFactory ( ) . addRequestInputFormFields ( formContent , request , DisableGoogleAuthenticatorCredentialRequest . class , AS_LIST , DISABLE_GOOGLE_AUTHENTICATOR , listener ) ; return formLayout ;


signature:
public class UserHomeSecuritySettingsPageModContentFactoryImpl { /** * Creates the change password button .
 * @ return the vertical layout */
private VerticalLayout createChangePasswordButton ( ) { } }

implementation: final VerticalLayout formLayout = new VerticalLayout ( ) ; formLayout . setSizeFull ( ) ; final Panel formPanel = new Panel ( ) ; formPanel . setSizeFull ( ) ; formLayout . addComponent ( formPanel ) ; final FormLayout formContent = new FormLayout ( ) ; formPanel . setContent ( formContent ) ; final ChangePasswordRequest request = new ChangePasswordRequest ( ) ; request . setSessionId ( RequestContextHolder . currentRequestAttributes ( ) . getSessionId ( ) ) ; request . setCurrentPassword ( "" ) ; request . setNewPassword ( "" ) ; request . setRepeatNewPassword ( "" ) ; final ClickListener listener = new ChangePasswordClickListener ( request ) ; getFormFactory ( ) . addRequestInputFormFields ( formContent , request , ChangePasswordRequest . class , Arrays . asList ( "currentPassword" , "newPassword" , "repeatNewPassword" ) , "Change password" , listener ) ; return formLayout ;


signature:
public class DocumentReferenceContainer { /** * Gets the document reference list .
 * @ return the document reference list */
@ OneToMany ( targetEntity = DocumentReferenceData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DOCUMENT_REFERENCE_LIST_DOCU_0" ) public List < DocumentReferenceData > getDocumentReferenceList ( ) { return this . documentReferenceList ;


signature:
public class RiksdagenDateUtil { /** * Best guess vote date .
 * @ param ballotContainer
 * the ballot container
 * @ return the date
 * @ throws ParseException
 * the parse exception */
private static Date bestGuessVoteDate ( final BallotContainer ballotContainer ) throws ParseException { } }

implementation: final com . hack23 . cia . model . external . riksdagen . votering . impl . BallotDocumentElement ballotDocumentElement = ballotContainer . getBallotDocumentElement ( ) ; Date result ; final String createdDate = ballotContainer . getBallotDocumentElement ( ) . getCreatedDate ( ) ; if ( createdDate != null && createdDate . length ( ) >= YYYY_MM_DD . length ( ) ) { result = new SimpleDateFormat ( YYYY_MM_DD , Locale . ENGLISH ) . parse ( createdDate ) ; } else { final String systemDate = ballotDocumentElement . getSystemDate ( ) ; if ( systemDate != null && systemDate . length ( ) >= YYYY_MM_DD . length ( ) ) { result = new SimpleDateFormat ( YYYY_MM_DD , Locale . ENGLISH ) . parse ( systemDate ) ; } else { result = new SimpleDateFormat ( YYYY_MM_DD , Locale . ENGLISH ) . parse ( ballotDocumentElement . getMadePublicDate ( ) ) ; } } return result ;


signature:
public class RiksdagenDateUtil { /** * Check same date .
 * @ param voteList
 * the vote list
 * @ return the date
 * @ throws ParseException
 * the parse exception */
private static Date checkSameDate ( final List < VoteDataDto > voteList ) throws ParseException { } }

implementation: final Set < String > set = new HashSet < > ( ) ; Date result = null ; for ( final VoteDataDto voteData : voteList ) { final String voteDate = voteData . getVoteDate ( ) ; if ( voteDate != null && voteDate . length ( ) >= YYYY_MM_DD . length ( ) ) { set . add ( voteData . getVoteDate ( ) ) ; } } if ( set . size ( ) == CONTAINS_ONE ) { final String dateString = set . iterator ( ) . next ( ) ; result = new SimpleDateFormat ( YYYY_MM_DD , Locale . ENGLISH ) . parse ( dateString ) ; } return result ;


signature:
public class RiksdagenDateUtil { /** * Try to find valid vote date .
 * @ param ballotContainer
 * the ballot container
 * @ param voteDataList
 * the vote data list
 * @ return the date
 * @ throws ParseException
 * the parse exception */
public Date tryToFindValidVoteDate ( final BallotContainer ballotContainer , final List < VoteDataDto > voteDataList ) throws ParseException { } }

implementation: Date ballotDate ; final Date sameDate = checkSameDate ( voteDataList ) ; if ( sameDate != null ) { ballotDate = sameDate ; } else { ballotDate = bestGuessVoteDate ( ballotContainer ) ; } return ballotDate ;


signature:
public class WebBrowserUtil { /** * Gets the ip information .
 * @ param webBrowser
 * the web browser
 * @ return the ip information */
public static String getIpInformation ( final WebBrowser webBrowser ) { } }

implementation: String ipInformation = webBrowser . getAddress ( ) ; final HttpServletRequest httpRequest = ( ( ServletRequestAttributes ) RequestContextHolder . currentRequestAttributes ( ) ) . getRequest ( ) ; final String xForwardedForHeader = httpRequest . getHeader ( X_FORWARDED_FOR ) ; if ( xForwardedForHeader != null ) { final String [ ] split = xForwardedForHeader . split ( "," ) ; if ( split . length != 0 ) { ipInformation = split [ 0 ] ; } } return ipInformation ;


signature:
public class WebBrowserUtil { /** * Gets the operating system .
 * @ param webBrowser
 * the web browser
 * @ return the operating system */
public static String getOperatingSystem ( final WebBrowser webBrowser ) { } }

implementation: synchronized ( USER_AGENT_ANALYZER ) { final UserAgent userAgent = USER_AGENT_ANALYZER . parse ( webBrowser . getBrowserApplication ( ) ) ; return userAgent . getValue ( UserAgent . DEVICE_CLASS ) + "." + userAgent . getValue ( UserAgent . OPERATING_SYSTEM_NAME ) + "." + userAgent . getValue ( UserAgent . OPERATING_SYSTEM_VERSION ) ; }


signature:
public class CommitteeProposalContainer { /** * Gets the committee proposal list .
 * @ return the committee proposal list */
@ OneToMany ( targetEntity = CommitteeProposalData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "COMMITTEE_PROPOSAL_LIST_COMM_0" ) public List < CommitteeProposalData > getCommitteeProposalList ( ) { return this . committeeProposalList ;


signature:
public class SwedenParliamentElectoralRegionContainer { /** * Gets the parliament electoral regions .
 * @ return the parliament electoral regions */
@ OneToMany ( targetEntity = SwedenParliamentElectoralRegion . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "PARLIAMENT_ELECTORAL_REGIONS_0" ) public List < SwedenParliamentElectoralRegion > getParliamentElectoralRegions ( ) { return this . parliamentElectoralRegions ;


signature:
public class PoliticianComplianceCheckImpl { /** * Supports .
 * @ param committeeReport the committee report
 * @ param rm the rm
 * @ return true , if successful */
public boolean supports ( final String committeeReport , final String rm ) { } }

implementation: for ( final ViewRiksdagenCommitteeBallotDecisionPoliticianSummary summary : ballotDecisions ) { if ( summary . getRm ( ) . equalsIgnoreCase ( rm ) && summary . getCommitteeReport ( ) . equalsIgnoreCase ( committeeReport ) ) { return YES . equalsIgnoreCase ( summary . getVote ( ) ) ; } } return false ;


signature:
public class PoliticianComplianceCheckImpl { /** * Against .
 * @ param committeeReport the committee report
 * @ param rm the rm
 * @ return true , if successful */
public boolean against ( final String committeeReport , final String rm ) { } }

implementation: for ( final ViewRiksdagenCommitteeBallotDecisionPoliticianSummary summary : ballotDecisions ) { if ( summary . getRm ( ) . equalsIgnoreCase ( rm ) && summary . getCommitteeReport ( ) . equalsIgnoreCase ( committeeReport ) ) { return NO . equalsIgnoreCase ( summary . getVote ( ) ) ; } } return false ;


signature:
public class OrgDocumentChartDataManagerImpl { /** * Gets the view riksdagen org document daily summary map .
 * @ return the view riksdagen org document daily summary map */
private Map < String , List < ViewRiksdagenOrgDocumentDailySummary > > getViewRiksdagenOrgDocumentDailySummaryMap ( ) { } }

implementation: final DataContainer < ViewRiksdagenOrgDocumentDailySummary , RiksdagenDocumentOrgSummaryEmbeddedId > politicianBallotSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewRiksdagenOrgDocumentDailySummary . class ) ; return politicianBallotSummaryDailyDataContainer . getAll ( ) . parallelStream ( ) . filter ( t -> t != null && ! t . getEmbeddedId ( ) . getPublicDate ( ) . startsWith ( YEAR_PREFIX ) ) . collect ( Collectors . groupingBy ( t -> StringEscapeUtils . unescapeHtml4 ( t . getEmbeddedId ( ) . getOrg ( ) ) . toUpperCase ( Locale . ENGLISH ) . replace ( UNDER_SCORE , EMPTY_STRING ) . replace ( MINUS_SIGN , EMPTY_STRING ) . trim ( ) ) ) ;


signature:
public class OrgDocumentChartDataManagerImpl { /** * Adds the document history by org data .
 * @ param dataSeries
 * the data series
 * @ param series
 * the series
 * @ param itemList
 * the item list */
private static void addDocumentHistoryByOrgData ( final DataSeries dataSeries , final Series series , final List < ViewRiksdagenOrgDocumentDailySummary > itemList ) { } }

implementation: final Map < String , List < ViewRiksdagenOrgDocumentDailySummary > > map = itemList . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> StringUtils . defaultIfBlank ( t . getDocumentType ( ) , NO_INFO ) ) ) ; final SimpleDateFormat simpleDateFormat = new SimpleDateFormat ( DD_MMM_YYYY , Locale . ENGLISH ) ; final SimpleDateFormat parseIncomingDateFormat = new SimpleDateFormat ( "yyyy-MM-dd" , Locale . ENGLISH ) ; for ( final Entry < String , List < ViewRiksdagenOrgDocumentDailySummary > > entry : map . entrySet ( ) ) { addNewDataSerie ( dataSeries , series , simpleDateFormat , parseIncomingDateFormat , entry ) ; }


signature:
public class OrgDocumentChartDataManagerImpl { /** * Adds the new data serie .
 * @ param dataSeries the data series
 * @ param series the series
 * @ param simpleDateFormat the simple date format
 * @ param parseIncomingDateFormat the parse incoming date format
 * @ param entry the entry */
private static void addNewDataSerie ( final DataSeries dataSeries , final Series series , final SimpleDateFormat simpleDateFormat , final SimpleDateFormat parseIncomingDateFormat , final Entry < String , List < ViewRiksdagenOrgDocumentDailySummary > > entry ) { } }

implementation: series . addSeries ( new XYseries ( ) . setLabel ( entry . getKey ( ) ) ) ; dataSeries . newSeries ( ) ; if ( entry . getValue ( ) != null ) { for ( final ViewRiksdagenOrgDocumentDailySummary item : entry . getValue ( ) ) { addDataItem ( dataSeries , simpleDateFormat , parseIncomingDateFormat , item ) ; } }


signature:
public class OrgDocumentChartDataManagerImpl { /** * Adds the data item .
 * @ param dataSeries the data series
 * @ param simpleDateFormat the simple date format
 * @ param parseIncomingDateFormat the parse incoming date format
 * @ param item the item */
private static void addDataItem ( final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final SimpleDateFormat parseIncomingDateFormat , final ViewRiksdagenOrgDocumentDailySummary item ) { } }

implementation: if ( item != null && item . getEmbeddedId ( ) . getPublicDate ( ) . length ( ) > 0 ) { try { dataSeries . add ( simpleDateFormat . format ( parseIncomingDateFormat . parse ( item . getEmbeddedId ( ) . getPublicDate ( ) ) ) , item . getTotal ( ) ) ; } catch ( final ParseException e ) { LOGGER . warn ( "Problem parsing date:{}" , item . getEmbeddedId ( ) . getPublicDate ( ) ) ; } }


signature:
public class ManageUserAccountService { /** * Inits the user command map . */
@ PostConstruct public void initUserCommandMap ( ) { } }

implementation: userCommandMap . put ( ManageUserAccountRequest . AccountOperation . DELETE , account -> { removeDataManager . removeUserAccountApplicationHistory ( account . getUserId ( ) ) ; getUserDAO ( ) . delete ( account ) ; return new ManageUserAccountResponse ( ServiceResult . SUCCESS ) ; } ) ; userCommandMap . put ( ManageUserAccountRequest . AccountOperation . UNLOCK , account -> { account . setUserLockStatus ( UserLockStatus . UNLOCKED ) ; getUserDAO ( ) . persist ( account ) ; return new ManageUserAccountResponse ( ServiceResult . SUCCESS ) ; } ) ; userCommandMap . put ( ManageUserAccountRequest . AccountOperation . LOCK , account -> { account . setUserLockStatus ( UserLockStatus . LOCKED ) ; getUserDAO ( ) . persist ( account ) ; return new ManageUserAccountResponse ( ServiceResult . SUCCESS ) ; } ) ;


signature:
public class ManageUserAccountService { /** * Perform operation .
 * @ param serviceRequest
 * the service request
 * @ param eventRequest
 * the event request
 * @ return the manage user account response */
private ManageUserAccountResponse performOperation ( final ManageUserAccountRequest serviceRequest , final CreateApplicationEventRequest eventRequest ) { } }

implementation: ManageUserAccountResponse response ; eventRequest . setElementId ( serviceRequest . getUserAcountId ( ) ) ; eventRequest . setApplicationMessage ( serviceRequest . getAccountOperation ( ) . toString ( ) ) ; final UserAccount accountToModify = getUserDAO ( ) . findFirstByProperty ( UserAccount_ . userId , serviceRequest . getUserAcountId ( ) ) ; final UserCommand userCommand = userCommandMap . get ( serviceRequest . getAccountOperation ( ) ) ; if ( accountToModify != null && userCommand != null ) { response = userCommand . execute ( accountToModify ) ; } else { response = new ManageUserAccountResponse ( ServiceResult . FAILURE ) ; } eventRequest . setApplicationMessage ( response . getResult ( ) . toString ( ) ) ; return response ;


signature:
public class SwedenElectionType { /** * Gets the region .
 * @ return the region */
@ ManyToOne ( targetEntity = SwedenElectionRegion . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "REGION_SWEDEN_ELECTION_TYPE__0" ) public SwedenElectionRegion getRegion ( ) { return region ;


signature:
public class BallotDocumentData { /** * Gets the vote data list .
 * @ return the vote data list */
@ OneToMany ( targetEntity = VoteDataDto . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "VOTE_DATA_LIST_BALLOT_DOCUME_0" ) public List < VoteDataDto > getVoteDataList ( ) { return this . voteDataList ;


signature:
public class PersonDetailElement { /** * Gets the detail list .
 * @ return the detail list */
@ ManyToOne ( targetEntity = DetailElement . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "DETAIL_LIST_PERSON_DETAIL_EL_0" ) public DetailElement getDetailList ( ) { return detailList ;


signature:
public class PersonAssignmentData { /** * Gets the assignment list .
 * @ return the assignment list */
@ OneToMany ( targetEntity = AssignmentData . class , cascade = { } }

implementation: CascadeType . ALL } ) @ JoinColumn ( name = "ASSIGNMENT_LIST_PERSON_ASSIG_0" ) public List < AssignmentData > getAssignmentList ( ) { return this . assignmentList ;


signature:
public class PartyRankingOverviewPageModContentFactoryImpl { /** * Creates the description .
 * @ return the text area */
private static TextArea createDescription ( ) { } }

implementation: final TextArea totalpartytoplistLabel = new TextArea ( "Party Ranking by topic" , "Time served in Parliament:ALL:CURRENT:" + "\nTime served in Committees:ALL:CURRENT:" + "\nTime served in Government:ALL:CURRENT:" + "\nTop document author NR:ALL:YEAR:CURRENT:*FILTER:DocumnetType" + "\nTop document author SIZE:YEAR:ALL:CURRENT:*FILTER:DocumnetType" + "\nTop votes NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nTop vote winner NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nTop vote party rebel NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nTop vote presence NR/PERCENTAGE :ALL:YEAR:CURRENT::#Views:List,Timeline,BarChart,PieChart" + "\nSearch by name" ) ; totalpartytoplistLabel . setSizeFull ( ) ; totalpartytoplistLabel . setStyleName ( "Level2Header" ) ; return totalpartytoplistLabel ;


signature:
public class GridFactoryImpl { /** * Configure column orders and hidden fields .
 * @ param columnOrder
 * the column order
 * @ param hideColumns
 * the hide columns
 * @ param grid
 * the grid */
private static void configureColumnOrdersAndHiddenFields ( final String [ ] columnOrder , final String [ ] hideColumns , final Grid grid ) { } }

implementation: if ( columnOrder != null ) { grid . setColumnOrder ( columnOrder ) ; } if ( hideColumns != null ) { for ( final String o : hideColumns ) { grid . removeColumn ( o ) ; } }


signature:
public class GridFactoryImpl { /** * Configure listeners .
 * @ param listener
 * the listener
 * @ param grid
 * the grid */
private static void configureListeners ( final SelectionListener listener , final Grid grid ) { } }

implementation: if ( listener != null ) { grid . addSelectionListener ( listener ) ; }


signature:
public class GridFactoryImpl { /** * Creates the grid cell filter .
 * @ param columnOrder
 * the column order
 * @ param grid
 * the grid
 * @ param dataType
 * the data type */
private static void createGridCellFilter ( final String [ ] columnOrder , final Grid grid , final Class dataType ) { } }

implementation: if ( columnOrder != null ) { final GridCellFilter filter = new GridCellFilter ( grid , dataType ) ; for ( final String column : columnOrder ) { if ( grid . getColumn ( column ) != null ) { filter . setTextFilter ( column , true , true ) ; } } }