-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPS plugins #230
WPS plugins #230
Conversation
Looking into this now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, please merge once you have answered my tiny nit-pick questions.
.appendSuper(super.hashCode()) | ||
.append(getName()) | ||
.append(getClassName()) | ||
.append(getXtype()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you leave out sourceCode
and styleSheet
on purpose? What about fileUploads
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch (regarding sourceCode
and styleSheet
). I'll add them now, but leave out fileUploads
to avoid lazy loading of related entities...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
.append(getName(), other.getName()) | ||
.append(getClassName(), other.getClassName()) | ||
.append(getXtype(), other.getXtype()) | ||
.isEquals(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
.append("name", name) | ||
.append("className", className) | ||
.append("xtype", xtype) | ||
.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
.appendSuper(super.hashCode()) | ||
.append(getUrl()) | ||
.append(getMimeType()) | ||
.append(getMethod()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And body
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the information used here (url
, mimeType
, method
and the properties from the parent class) should be enough to make this unique. Leaving the body
out could increase performance as lazy loading is avoided...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
.appendSuper(super.equals(other)) | ||
.append(getUrl(), other.getUrl()) | ||
.append(getMimeType(), other.getMimeType()) | ||
.append(getMethod(), other.getMethod()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
.appendSuper(super.toString()) | ||
.append("url", url) | ||
.append("mimeType", mimeType) | ||
.append("method", method) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
👍 all good now |
(There has just been a new release of shogun2: https://github.com/terrestris/shogun2/releases/tag/v0.1.2)
This PR will merge the current state of the
wps-plugins
branch (https://github.com/terrestris/shogun2/tree/wps-plugins) to master.Essentially, the following new models will be introduced:
Plugin
as base class ofWpsPlugin
WpsParameter
as (abstract) base class ofWpsPrimitive
andWpsReference
, which again is the parent class ofWpsProcessExecute
(On top of the models, this PR also contains the corresponding
DAO
s,Service
s andRest
-/Controllers
.)An
Application
now has a list ofPlugin
s, where aPlugin
mainly is a piece of (JS/Ext-JS)sourceCode
that could follow some kind of policy/guideline that is expected by a client (e.g. it could implement aload
orinit
function, which is then interpreted by a client) and may (for example) be used to provide a basic input-GUI for aWpsPrimitive
.