- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 37 of file Publishing.java.
◆ checkEntity() [1/2]
◆ checkEntity() [2/2]
Definition at line 54 of file Publishing.java.
55 PublishingContext pc = contexts.get(context);
56 return (pc !=
null) ?
checkEntity(pc, entity) : null;
boolean checkEntity(String context, E entity)
◆ doLoad()
Definition at line 83 of file Publishing.java.
84 if(_pub.get(publishingFile) ==
null || FileWatch.isNewer(convert(publishingFile), _lastLoads.get(publishingFile))
85 || !FileWatch.exists(convert(publishingFile))) {
88 JSONSerializer ser =
new JSONSerializer(
true);
89 pub = ser.fromJson(FileUtil.getContent(
new File(convert(publishingFile))), javaClass);
90 }
catch (IOException ex) {
91 Logger.getLogger(Publishing.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
94 _pub.put(publishingFile, pub);
95 _lastLoads.put(publishingFile, FileWatch.getTime(convert(publishingFile)));
98 return _pub.get(publishingFile);
◆ getContext()
◆ getEntityRoot()
◆ getPublishing()
Definition at line 65 of file Publishing.java.
66 return doLoad(javaClass, root);
static< T extends Publishing > Publishing doLoad(Class< T > javaClass, String publishingFile)
◆ getPublishingContext()
Definition at line 69 of file Publishing.java.
70 Publishing publishing =
doLoad(javaClass, root);
71 if(publishing !=
null) {
72 return publishing.getContext(context);
◆ hasContext()
Definition at line 46 of file Publishing.java.
47 return contexts.containsKey(context);
The documentation for this class was generated from the following file: