![JAR search and dependency download from the Maven repository](/logo.png)
org.beangle.ems.security.web.DefaultModule Maven / Gradle / Ivy
/*
* Beangle, Agile Development Scaffold and Toolkit
*
* Copyright (c) 2005-2016, Beangle Software.
*
* Beangle is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Beangle is distributed in the hope that it will be useful.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Beangle. If not, see .
*/
package org.beangle.ems.security.web;
import org.beangle.commons.inject.bind.AbstractBindModule;
import org.beangle.ems.avatar.web.action.BoardAction;
import org.beangle.ems.avatar.web.action.MyUploadAction;
import org.beangle.ems.security.helper.UserDashboardHelper;
import org.beangle.ems.security.web.action.*;
public final class DefaultModule extends AbstractBindModule {
@Override
protected void doBinding() {
// security
bind(PermissionAction.class, RoleAction.class, IndexAction.class, MyAction.class, PasswordAction.class,
ResourceAction.class, UserAction.class, FieldAction.class, ProfileAction.class);
bind(org.beangle.ems.security.web.action.session.LogAction.class,
org.beangle.ems.security.web.action.session.MonitorAction.class).property("entityDao",
ref("sessionEntityDao"));
bind(org.beangle.ems.security.web.action.nav.MenuAction.class,
org.beangle.ems.security.web.action.nav.IndexAction.class,
org.beangle.ems.security.web.action.nav.ProfileAction.class);
bind(UserDashboardHelper.class).shortName();
// data security
bind(org.beangle.ems.security.web.action.data.ResourceAction.class,
org.beangle.ems.security.web.action.data.PermissionAction.class);
// avatar
bind(BoardAction.class, org.beangle.ems.avatar.web.action.MyAction.class, MyUploadAction.class,
org.beangle.ems.avatar.web.action.UserAction.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy