4A Server -
2.0
|
Class which parses and process XML with messages with types for protocol version 2. More...
Public Member Functions | |
P2AnnotTypeProcessor () | |
void | procesTypesAdd (Element typesElement, RequestInfo requestInfo) |
void | procesTypesRemove (Element typesElement, RequestInfo requestInfo) |
void | procesTypesChange (Element typesElement, RequestInfo requestInfo) |
void | procesTypeQuery (Element typesQueryElement, RequestInfo requestInfo) |
Static Public Member Functions | |
static AnnotType | searchAnnotType (String uri, ArrayList< AnnotType > typesFromFlier) |
Package Functions | |
AnnotType | findTypeByUri (ArrayList< AnnotType > types, String uri) |
void | deleteTypeByUri (ArrayList< AnnotType > types, String uri) |
Private Member Functions | |
void | procesAnnotTypes (Element typesElement, RequestInfo requestInfo, boolean update) |
void | procesAnnotType (Element typeElement, RequestInfo requestInfo, boolean update) |
AnnotType | getAncestor (String name, String typeUri, String uri) |
String | processAncestors (String name, String uri, Element ancestorEl) |
AnnotTypeAttr | processTypeAttribute (Element attributeEl, AnnotType annotType) |
void | procesDeleteTypes (Element typeElement, RequestInfo requestInfo) |
void | procesDeleteAnnotType (Element typeElement, RequestInfo requestInfo) |
boolean | containsAttrName (AnnotType annotType, String name) |
void | setMissingAncestors (ArrayList< AnnotType > types, RequestInfo requestInfo) |
void | setMissingDirectAncestors (ArrayList< AnnotType > types, RequestInfo requestInfo) |
void | checkAncestors (ArrayList< AnnotType > types, RequestInfo requestInfo) |
Private Attributes | |
RequestInfo | requestInfo |
ArrayList< Pair< String, AnnotType > > | ancestorPair |
ArrayList< Pair< String, AnnotType > > | direcAncestorPair |
Class which parses and process XML with messages with types for protocol version 2.
Class which parses and process XML with messages with types for protocol version 2.
Definition at line 46 of file P2AnnotTypeProcessor.java.
cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotTypeProcessor.P2AnnotTypeProcessor | ( | ) |
Constructor
Definition at line 57 of file P2AnnotTypeProcessor.java.
|
private |
Consistency check for primary ancestor and list of ancestors
types | List with types to check |
requestInfo | Informations about client request |
Definition at line 1051 of file P2AnnotTypeProcessor.java.
|
private |
Method check if annotation type have attribute with specific name.
annotType | type in which method will seek |
name | name of attribute which method will seek |
Definition at line 920 of file P2AnnotTypeProcessor.java.
|
package |
Removes type with given URI from list
types | List of types |
uri | URI of type which should be removed from the list |
Definition at line 1034 of file P2AnnotTypeProcessor.java.
|
package |
Find type of annotation in the list
types | List of types of annotation |
uri | Uri of type of annotation which should be found |
Definition at line 1017 of file P2AnnotTypeProcessor.java.
|
private |
Method gets ancestor of annotation type from DB.
name | name of type for which we are searching ancestor |
typeUri | uri of type for which we are searching ancestor |
uri | uri of ancestor of annotation type |
Definition at line 526 of file P2AnnotTypeProcessor.java.
|
private |
Method process element with type for add or update.
typeElement | element with type for add or update |
requestInfo | informations about client request |
update | if true proces type for update if is false process types for add |
Definition at line 155 of file P2AnnotTypeProcessor.java.
|
private |
Method process element with types for add or update.
typesElement | element with types for add or update |
requestInfo | informations about client request |
update | if true proces types for update if is false process types for add |
Definition at line 122 of file P2AnnotTypeProcessor.java.
|
private |
Method process element with annotation type to delete.
typeElement | element with annotation type to delete |
requestInfo | informations about client request |
Definition at line 841 of file P2AnnotTypeProcessor.java.
|
private |
Method process element with annotation types to delete.
typeElement | element with annotation types to delete |
requestInfo | informations about client request |
Definition at line 826 of file P2AnnotTypeProcessor.java.
|
private |
Method process element with ancestor of annotation type.
name | Name of type of annotation to which ancestors should be assigned |
uri | URI of type of annotation to which ancestors should be assigned |
ancestorEl | element with type for add or update |
Definition at line 576 of file P2AnnotTypeProcessor.java.
|
private |
Method process element with attribute of annotation type.
attributeEl | element with attribute of annotation type |
annotType | Type of annotation to which this attribute belongs |
Definition at line 601 of file P2AnnotTypeProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotTypeProcessor.procesTypeQuery | ( | Element | typesQueryElement, |
RequestInfo | requestInfo | ||
) |
Entry method for processing types guery.
typesQueryElement | element with types guery |
requestInfo | informations about client request |
Definition at line 101 of file P2AnnotTypeProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotTypeProcessor.procesTypesAdd | ( | Element | typesElement, |
RequestInfo | requestInfo | ||
) |
Entry method for processing types for add.
typesElement | element with types for add |
requestInfo | informations about client request |
Definition at line 68 of file P2AnnotTypeProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotTypeProcessor.procesTypesChange | ( | Element | typesElement, |
RequestInfo | requestInfo | ||
) |
Entry method for processing types for change.
typesElement | element with types for change |
requestInfo | informations about client request |
Definition at line 90 of file P2AnnotTypeProcessor.java.
void cz.vutbr.fit.knot.annotations.comet.protocolV2_0.P2AnnotTypeProcessor.procesTypesRemove | ( | Element | typesElement, |
RequestInfo | requestInfo | ||
) |
Entry method for processing types for remove.
typesElement | element with types for remove |
requestInfo | informations about client request |
Definition at line 79 of file P2AnnotTypeProcessor.java.
|
static |
Search for type in DB and currently added types which are stored in flier
uri | Uri of annotation type |
typesFromFlier | ArrayList of annotation types, which have been recently added |
Definition at line 1089 of file P2AnnotTypeProcessor.java.
|
private |
The method finds the ancestors of a new types which don't have the ancestors yet (they are in the same request probably). This covers only the types which had the ancestors filled out in the serialized form.
types | all new types |
requestInfo | informations about client request |
Definition at line 941 of file P2AnnotTypeProcessor.java.
|
private |
The method finds the direct ancestor of a new types which don't have the direct ancestors yet (they are in the same request probably). This covers only the types which had the ancestors filled out in the serialized form.
types | all new types |
requestInfo | informations about client request |
Definition at line 979 of file P2AnnotTypeProcessor.java.
|
private |
List of new annotations without founded ancestors
Definition at line 50 of file P2AnnotTypeProcessor.java.
|
private |
List of new annotations without founded direct ancestors
Definition at line 52 of file P2AnnotTypeProcessor.java.
|
private |
Informations about client request
Definition at line 48 of file P2AnnotTypeProcessor.java.