/*
* Provided by CSTI Consulting
* Following GNU LESSER GENERAL PUBLIC LICENSE
* You may obtain more details at
*
* http://www.csticonsulting.com
* Copyright (c) 2006-2011 Consultation CS-TI inc.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.salesmanager.central.security;
import java.security.Principal;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class OrderRoleInterceptor extends RoleInterceptor {
/**
*
*/
private static final long serialVersionUID = 5358843035880478409L;
@Override
protected boolean isUserInRole(Principal principal, HttpServletRequest req,
HttpServletResponse resp) {
// TODO Auto-generated method stub
return com.salesmanager.central.util.SecurityUtil.isUserInRole(req, "order");
}
}