This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BSGAPP-45 WP27 Add synching for forums
- Loading branch information
Showing
6 changed files
with
289 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 10 additions & 5 deletions
15
impl/src/main/java/uk/ac/ox/oucs/vle/contentsync/ContentSyncObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
package uk.ac.ox.oucs.vle.contentsync; | ||
|
||
import org.sakaiproject.entitybroker.util.model.EntityContent; | ||
|
||
public class ContentSyncObject { | ||
|
||
private EntityContent entity; | ||
private Object entity; | ||
private String type; | ||
|
||
public ContentSyncObject(String type, EntityContent entity) { | ||
public ContentSyncObject() { | ||
} | ||
|
||
public ContentSyncObject(String type, Object entity) { | ||
this.type = type; | ||
this.entity = entity; | ||
} | ||
|
||
public String getType() { | ||
return this.type; | ||
} | ||
|
||
public String getEntityType() { | ||
return this.entity.getClass().getSimpleName(); | ||
} | ||
|
||
public EntityContent getEntity() { | ||
public Object getEntity() { | ||
return this.entity; | ||
} | ||
} |
Oops, something went wrong.