Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
delete dummy files
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte-Hansen committed Aug 31, 2018
1 parent 88241ad commit be20dbf
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 196 deletions.
18 changes: 0 additions & 18 deletions src/main/java/net/explorviz/extension/vr/main/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,15 @@

import org.glassfish.jersey.server.ResourceConfig;

import net.explorviz.api.ExtensionAPIImpl;
import net.explorviz.extension.vr.model.DummyModel;
import net.explorviz.extension.vr.model.SubDummyModel;
import net.explorviz.extension.vr.providers.DummyModelProvider;

@ApplicationPath("/extension/dummy")
public class Application extends ResourceConfig {

public Application() {

// register the models that you wan't to parse to JSONAPI-conform JSON,
// i.e. exchange with frontend
final ExtensionAPIImpl coreAPI = ExtensionAPIImpl.getInstance();

coreAPI.registerSpecificModel("DummyModel", DummyModel.class);
coreAPI.registerSpecificModel("SubDummyModel", SubDummyModel.class);

// register DI
register(new ExtensionDependencyInjectionBinder());

// Enable CORS
register(CORSResponseFilter.class);

// register all providers in the given package
register(DummyModelProvider.class);

// register all resources in the given package
packages("net.explorviz.extension.vr.resources");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class ApplicationModel extends BaseModel {

boolean isOpen;
boolean isBound;
Long boundByUser;
long boundByUser;

private final ArrayList<Long> openComponents;

Expand Down Expand Up @@ -42,17 +42,17 @@ public boolean isBound() {
return isBound;
}

public void setBoundByUser(final Long userID) {
public void setBoundByUser(final long userID) {
this.boundByUser = userID;
}

public void setUnboundByUser(final Long userID) {
public void setUnboundByUser(final long userID) {
if (isBoundByUser(userID)) {
setBound(false);
}
}

public boolean isBoundByUser(final Long userID) {
public boolean isBoundByUser(final long userID) {
if (isBound && userID == boundByUser) {
return true;
} else {
Expand Down
39 changes: 0 additions & 39 deletions src/main/java/net/explorviz/extension/vr/model/DummyModel.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.explorviz.extension.vr.model;

public class HighlightingModel {

private final String highlightedApp;
private final String highlightedEntity;
private final long originalColor;

public HighlightingModel(final boolean isHighlighted, final String appID, final String entityID,
final long originalColor) {
this.highlightedApp = appID;
this.highlightedEntity = entityID;
this.originalColor = originalColor;
}

public String getHighlightedApp() {
return highlightedApp;
}

public String getHighlightedEntity() {
return highlightedEntity;
}

public long getOriginalColor() {
return originalColor;
}

}
26 changes: 0 additions & 26 deletions src/main/java/net/explorviz/extension/vr/model/SubDummyModel.java

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit be20dbf

Please sign in to comment.