public class PlainUserProfileCreator
extends java.lang.Object
Constructor and Description |
---|
PlainUserProfileCreator() |
Modifier and Type | Method and Description |
---|---|
static void |
entitiesClearDuplicates(java.util.List<ProfileConcept> entitiesToBeUpdated)
Entities clear duplicates.
|
static java.util.List<ProfileConcept> |
entitiesClearDuplicates(java.util.List<ProfileConcept> entities,
java.util.List<ProfileConcept> entitiesToBeUpdated)
Entities clear duplicates.
|
static void |
entitiesUpdateDuplicates(java.util.List<ProfileConcept> entities,
java.util.List<ProfileConcept> entitiesToBeUpdated,
java.text.DecimalFormat df)
Entities update duplicates.
|
static long |
fromUnsignedHex(java.lang.String valueInUnsignedHex)
From unsigned hex.
|
static java.util.List<ProfileConcept> |
fullExportGainEntitiesAnnotation(java.util.List<GAINEntities> gainEntitiesExportList,
java.util.List<GAINFullExport> fullExportList,
java.util.List<ProfileConcept> pclist)
Full export gain entities annotation.
|
static void |
fullExportToEntitiesAnnotation(java.lang.String accountID,
java.util.List<ProfileConcept> entities,
java.util.List<GAINFullExport> gainFullExportConcepts)
Full export to entities annotation.
|
static java.util.List<ProfileConcept> |
fullExportToProfConceptLTV(java.lang.String userID,
java.lang.String accountID,
java.util.List<GAINFullExport> list)
Parse function that converts the concepts extracted from
translateGAINFullExport to a List containing
ProfConceptLTV objects. |
static java.util.List<ProfileConcept> |
fullExportUpdate(java.lang.String userID,
java.util.List<ProfileConcept> simpleConceptsFromFile,
java.util.List<ProfileConcept> simpleConceptsFromGainFullExport)
Update function for concepts extracted from translateGAINFullExport.
|
java.util.List<ProfileConcept> |
getAssociatedRules(PMMLParserHandler Object)
Parse function that gets the associated rules from a PMML file..
|
static void |
main(java.lang.String[] args)
The main method.
|
static void |
mineRulesURL(java.lang.String userID)
Mine rules url.
|
static void |
readPMML(java.lang.String accountID,
java.lang.String userID)
Read pmml.
|
static void |
readProfile(java.lang.String userID,
java.util.List<ProfileConcept> simpleConceptsFromFile,
java.util.List<ProfileConcept> complexConceptsFromFile,
java.util.List<ProfileConcept> associatedRulesFromFile)
Read user profile.
|
static java.util.List<ProfileConcept> |
updateAssociacionRules(PlainUserProfileCreator ts,
PMMLParserHandler Object,
java.util.List<ProfileConcept> associationRules,
java.util.List<ProfileConcept> xml,
java.util.List<ProfileConcept> simpleConcepts)
Update associacion rules.
|
static void |
updateEntities(java.util.List<ProfileConcept> simpleConcepts,
java.util.List<ProfileConcept> entitiesToBeUpdated,
java.util.List<ProfileConcept> entitiesFromFile,
java.util.List<ProfileConcept> entitiesUpdatedList)
Update entities.
|
static java.util.List<ProfileConcept> |
updateSimpleConcepts(java.util.List<ProfileConcept> fullExportUpdatedList)
Update simple concepts.
|
static void |
updateUser(PlainUserProfileCreator plainUserProfileCreatorObject,
java.lang.String accountID,
java.lang.String userID)
Update user.
|
static void |
userProfileToFile(java.lang.String uid,
java.util.List<ProfileConcept> profile)
User profile to file.
|
static void |
writeProfileToFile(java.util.List<ProfileConcept> total,
java.io.BufferedWriter outTotal)
Write user Profile to file.
|
public java.util.List<ProfileConcept> getAssociatedRules(PMMLParserHandler Object) throws java.io.IOException
Object
- the objectjava.io.IOException
- Signals that an I/O exception has occurred.public static java.util.List<ProfileConcept> fullExportUpdate(java.lang.String userID, java.util.List<ProfileConcept> simpleConceptsFromFile, java.util.List<ProfileConcept> simpleConceptsFromGainFullExport) throws java.io.IOException
userID
- the user idsimpleConceptsFromFile
- the simple conceptssimpleConceptsFromGainFullExport
- the full export to prof concept listjava.io.IOException
- Signals that an I/O exception has occurred.public static java.util.List<ProfileConcept> updateSimpleConcepts(java.util.List<ProfileConcept> fullExportUpdatedList)
fullExportUpdatedList
- the full export updated listpublic static java.util.List<ProfileConcept> fullExportToProfConceptLTV(java.lang.String userID, java.lang.String accountID, java.util.List<GAINFullExport> list) throws java.io.IOException
userID
- the userIDaccountID
- the account idlist
- the listjava.io.IOException
- Signals that an I/O exception has occurred.public static void writeProfileToFile(java.util.List<ProfileConcept> total, java.io.BufferedWriter outTotal) throws java.io.IOException
total
- the totaloutTotal
- the out totaljava.io.IOException
- Signals that an I/O exception has occurred.public static java.util.List<ProfileConcept> fullExportGainEntitiesAnnotation(java.util.List<GAINEntities> gainEntitiesExportList, java.util.List<GAINFullExport> fullExportList, java.util.List<ProfileConcept> pclist)
gainEntitiesExportList
- the gain entities export listfullExportList
- the full export listpclist
- the pclistpublic static java.util.List<ProfileConcept> updateAssociacionRules(PlainUserProfileCreator ts, PMMLParserHandler Object, java.util.List<ProfileConcept> associationRules, java.util.List<ProfileConcept> xml, java.util.List<ProfileConcept> simpleConcepts) throws java.io.IOException
ts
- the tsObject
- the objectassociationRules
- the association rulesxml
- the xmlsimpleConcepts
- the simple conceptsjava.io.IOException
- Signals that an I/O exception has occurred.public static void updateEntities(java.util.List<ProfileConcept> simpleConcepts, java.util.List<ProfileConcept> entitiesToBeUpdated, java.util.List<ProfileConcept> entitiesFromFile, java.util.List<ProfileConcept> entitiesUpdatedList) throws java.io.IOException
simpleConcepts
- the simple conceptsentitiesToBeUpdated
- the entities conceptsentitiesFromFile
- the entitiesentitiesUpdatedList
- the entities updated listjava.io.IOException
- Signals that an I/O exception has occurred.public static void updateUser(PlainUserProfileCreator plainUserProfileCreatorObject, java.lang.String accountID, java.lang.String userID) throws org.xml.sax.SAXException, java.io.IOException, java.io.FileNotFoundException, java.text.ParseException
plainUserProfileCreatorObject
- the plain user profile creator objectaccountID
- the account iduserID
- the user idorg.xml.sax.SAXException
- the sAX exceptionjava.io.IOException
- Signals that an I/O exception has occurred.java.io.FileNotFoundException
- the file not found exceptionjava.text.ParseException
- the parse exceptionpublic static void readProfile(java.lang.String userID, java.util.List<ProfileConcept> simpleConceptsFromFile, java.util.List<ProfileConcept> complexConceptsFromFile, java.util.List<ProfileConcept> associatedRulesFromFile) throws java.io.FileNotFoundException, java.text.ParseException
userID
- the user idsimpleConceptsFromFile
- the simple concepts from filecomplexConceptsFromFile
- the complex concepts from fileassociatedRulesFromFile
- the associated rules from filejava.io.FileNotFoundException
- the file not found exceptionjava.text.ParseException
- the parse exceptionpublic static void readPMML(java.lang.String accountID, java.lang.String userID) throws java.io.IOException, org.xml.sax.SAXException
accountID
- the account iduserID
- the user idjava.io.IOException
- Signals that an I/O exception has occurred.org.xml.sax.SAXException
- the sAX exceptionpublic static void mineRulesURL(java.lang.String userID) throws java.net.MalformedURLException, java.io.IOException
userID
- the user idjava.net.MalformedURLException
- the malformed url exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public static void userProfileToFile(java.lang.String uid, java.util.List<ProfileConcept> profile) throws java.io.IOException
uid
- the uidprofile
- the profilejava.io.IOException
- Signals that an I/O exception has occurred.public static void fullExportToEntitiesAnnotation(java.lang.String accountID, java.util.List<ProfileConcept> entities, java.util.List<GAINFullExport> gainFullExportConcepts)
accountID
- the account identities
- the entitiesgainFullExportConcepts
- the gain full export conceptspublic static final long fromUnsignedHex(java.lang.String valueInUnsignedHex)
valueInUnsignedHex
- the value in unsigned hexpublic static void entitiesUpdateDuplicates(java.util.List<ProfileConcept> entities, java.util.List<ProfileConcept> entitiesToBeUpdated, java.text.DecimalFormat df)
entities
- the entitiesentitiesToBeUpdated
- the entities to be updateddf
- the dfpublic static void entitiesClearDuplicates(java.util.List<ProfileConcept> entitiesToBeUpdated)
entitiesToBeUpdated
- the entities to be updatedpublic static java.util.List<ProfileConcept> entitiesClearDuplicates(java.util.List<ProfileConcept> entities, java.util.List<ProfileConcept> entitiesToBeUpdated)
entities
- the entitiesentitiesToBeUpdated
- the entities to be updatedpublic static void main(java.lang.String[] args) throws org.xml.sax.SAXException, java.io.IOException
args
- the argumentsorg.xml.sax.SAXException
- the sAX exceptionjava.io.IOException
- Signals that an I/O exception has occurred.