-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sickboy
authored and
sickboy
committed
Feb 11, 2013
1 parent
f89b77a
commit a21986a
Showing
5 changed files
with
39 additions
and
24 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
16 changes: 14 additions & 2 deletions
16
src/jp/dogrun/ileaflet/controller/dashboard/DashboardController.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,14 +1,26 @@ | ||
package jp.dogrun.ileaflet.controller.dashboard; | ||
|
||
import jp.dogrun.ileaflet.model.Actor; | ||
|
||
import org.slim3.controller.Controller; | ||
import org.slim3.controller.Navigation; | ||
|
||
public abstract class DashboardController extends Controller { | ||
|
||
@Override | ||
protected Navigation run() throws Exception { | ||
// TODO Auto-generated method stub | ||
return null; | ||
Actor actor = getActor(); | ||
//ログイン状態を取得 | ||
if ( actor == null ) { | ||
return redirect("../login/"); | ||
} | ||
return process(); | ||
} | ||
|
||
protected abstract Navigation process() throws Exception; | ||
|
||
protected Actor getActor() { | ||
return sessionScope(Actor.class.getName()); | ||
} | ||
|
||
} |
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
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