Combining JPA and JAX-RS to create RESTful service

Submitted by Christian Crawford on Sun, 11/30/2014 - 19:45

Java Persistence API (JPA) abstracts the database interactions and treats them as objects rather than simply queries. Since these queries are now objects, the principles of Object-Oriented Programming (OOP) can come into play including, encapsulation, abstraction, inheritance, and polymorphism. Persistence in the java language is actually not a new concept at all. Many implementations have been created in the past including, EDJ, JDO, Hibernate, and Toplink to name a few. JPA was designed with the idea of simplifying the Enterprise JavaBean (EJB) programming model.

Creating a RESTful service with Java and Jersey with Netbeans

Submitted by Mark Tsibulski on Fri, 11/28/2014 - 19:15

There are many ways to implement a RESTful service, but what if you need to do it in Java and you use Netbeans? I recently had a project like this and it was quite an experience to get my enviorment up and working. With Java, there are just so many ways to do it that it starts to look like too much to handle. Well it is actually easier than you think. Let's dive in..

First, fire up Netbeans and create a new Maven Web Application project. Give it a name of you choosing.

Creating a RESTful API using Slim php framework

Submitted by Christian Crawford on Fri, 11/07/2014 - 09:23

Restful architectures are often used to create client/server network environments. REST, which stands for representational state transfer, is a simpler alternative to SOAP and WSDL services, but still maintains great features like platform-independence and language independence. REST services explicitly use HTTP methods when implementing their calls, therefore any good API should support the basic GET, POST, PUT, and DELETE methods. Along with knowing the HTTP methods you must understand the HTTP status codes as well.

hiding user "history" and "member for" information from prying eyes

Submitted by Jitesh Doshi on Tue, 10/07/2014 - 22:16

In Drupal, sometimes, you want to share user profiles with the world, but then they can also see the "History" and the "Member for" information about your users. If that information is not what you want to show the world, then all you have to do is implement hook_preprocess_user_profile and apply appropriate permissions to it.

Tags

Display of different Views depending on the logged in User

Submitted by Mark Tsibulski on Mon, 10/06/2014 - 01:09

Have you ever desired to have display of different View filter criteria depending on the user's role? There are two ways of achieving this, I will explain both the ways in this article. 

In following example, I want to show 4 search criteria to a user with administrator role: Event title, Date of Event, Location, Event status.  Further, I want to show two search criteria to all other roles: Event title and Location (shown in below images) . 

SpinSpire is proud to be JAXICS Diamond Sponsor

Submitted by Priya Ganesan on Wed, 07/30/2014 - 22:02

SpinSpire is delighted to support Indian Culturual Society of Jacksonville (JAXICS) with a cash donation of $2,500 and become their first Diamond level annual sponsor for year 2014. Indian Cultural Society of Jacksonville is a 501(c)(3) certified organization dedicated to serving the Jacksonville South Asian community and promoting and sharing Indian culture throughout the region.

Drupal 7 - Bulk Field Update on Demand

Submitted by Vitaly Muzichuk on Tue, 07/29/2014 - 11:48

While building an event organization website, there was a requirement to have each event approved by a legal department before the organizer was allowed to publish any event.

A custom status field with conditions based on this field was the best approach.

Updating / rewriting a field for multiple nodes on demand can be achieved with Views and Views Bulk Operations.

Migrate/Migrated2d: Linking Migrated Nodes To Non-migrated Terms

Submitted by Raymond Mbuyi on Mon, 07/28/2014 - 22:52

Migrate and Migrate d2d modules expose a powerful API to developers who have the task to migrate a part or an entire website to Drupal 7; these two modules come in handy whenever the migration task is subject to complex business rules. One short article is far from being enough to offer an in-depth look at the countless opportunities offered by these two modules. Therefore, this article will explain how to solve a specific migration issue, hoping in the process, to help  grasp what can be done with these two modules.

Subscribe to