Skip to content
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

Merged
merged 19 commits into from
Feb 21, 2017
Merged

WPS plugins #230

merged 19 commits into from
Feb 21, 2017

Conversation

buehner
Copy link
Member

@buehner buehner commented Feb 21, 2017

(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 of WpsPlugin
  • WpsParameter as (abstract) base class of
    • WpsPrimitive and
    • WpsReference, which again is the parent class of
      • WpsProcessExecute

(On top of the models, this PR also contains the corresponding DAOs, Services and Rest-/Controllers.)

An Application now has a list of Plugins, where a Plugin 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 a load or init function, which is then interpreted by a client) and may (for example) be used to provide a basic input-GUI for a WpsPrimitive.

wps-chainable-new

@marcjansen
Copy link
Member

Looking into this now.

Copy link
Member

@marcjansen marcjansen left a 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())
Copy link
Member

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?

Copy link
Member Author

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...

Copy link
Member

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();
Copy link
Member

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();
Copy link
Member

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())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And body?

Copy link
Member Author

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...

Copy link
Member

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())
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@marcjansen
Copy link
Member

👍 all good now

@buehner buehner merged commit 469bf4f into master Feb 21, 2017
@marcjansen marcjansen deleted the wps-plugins branch February 21, 2017 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants