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
public class ByteUtil { | |
/* ========================= */ | |
/* "primitive type --> byte[] data" Methods */ | |
/* ========================= */ | |
public static byte[] toByta(byte data) { | |
return new byte[]{data}; | |
} |
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
public class UserManager extends Controller { | |
public static void index() { | |
if (getUser() == null) { | |
flash.error("Cannot use User Manager - Please log in"); | |
RingDNAController.index(); | |
} else | |
renderArgs.put(CURRENT_USER, getUser()); | |
List<User> users = getUsersFromOrg(); |
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
public class DevicesPortlet extends Application implements PortletListener{ | |
LiferayIPC liferayIPC = new LiferayIPC(); | |
@Override | |
public void init() { | |
Window mainWindow = new Window("Device Portlet"); | |
setMainWindow(mainWindow); | |
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
class TeamsController < ApplicationController | |
def create | |
@team = Team.new(params[:team]) | |
respond_to do |format| | |
if @team.save | |
p "team-controller: #{@team.id}" #Loren: this is showing a value | |
format.html { redirect_to("/memberships/create", :team_id => @team.id) }#, :notice => 'Team was successfully created.') } | |
format.xml { render :xml => @team, :status => :created, :location => @team } | |
else |
NewerOlder