- 浏览: 203582 次
- 性别:
- 来自: 重庆
最新评论
文章列表
package com.huaweisymantec.rmc.mail;
public class Display {
private boolean regexPrinted = false;
private String regex;
Display(String regex)
{
this.regex = regex;
}
void display(String message) {
if(!regexPrinted) {
regexPrinted = tru ...
package com.huaweisymantec.rmc.mail;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
//输入一行要解析的字符串 ,和相应的正则表达式 和序号 返回解析后的字符串
public class Examinee {
static String subString=null;
public String examine(String s, String regex,int i)
{
Display d = new Displ ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.i18n.encoding&qu ...
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://w ...
package com.huaweisymantec.rmc.mail;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import javax.annotation.Resource;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.cfg.Config ...
package com.huaweisymantec.rmc.core.utils;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
public class SessionFactoryUtil {
private static SessionFactory sf;
private SessionFactoryUtil(){
}
static{
sf= new AnnotationConfiguration().configure().bui ...
package com.huaweisymantec.rmc.core.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.huaweisymantec.rmc.core.dao.UserDao;
import com.huaweisymantec.rmc.core.dao.impl.UserDaoImpl;
import com.huaweisymantec.rmc.core.domain.User;
import com.h ...
package com.huaweisymantec.rmc.core.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.huaweisymantec.rmc.core.dao.PointDao;
import com.huaweisymantec.rmc.core.domain.RemoteClientPoint;
import com.huaweisymantec.rmc.core.service.PointManage; ...
package com.huaweisymantec.rmc.core.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.huaweisymantec.rmc.core.dao.InfoDAO;
import com.huaweisymantec.rmc.core.domain.Info;
import com.huaweisymantec.rmc.core.service.InfoManage;
@Component
pu ...
package com.huaweisymantec.rmc.core.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.huaweisymantec.rmc.core.dao.EquipmentDAO;
import com.huaweisymantec.rmc.core.domain.Equipment;
import com.huaweisymantec.rmc.core.service.EquipmentManage; ...
package com.huaweisymantec.rmc.core.service;
import com.huaweisymantec.rmc.core.domain.User;
public interface UserManager {
public void addUser(User u);
public boolean isExist(String username);
public void delUser(User user);
public User getUser(String username);
public void updateUser(User u ...
package com.huaweisymantec.rmc.core.service;
import com.huaweisymantec.rmc.core.domain.RemoteClientPoint;
public interface PointManage {
public void addPoint(RemoteClientPoint rcp);
public RemoteClientPoint getPointByName(String rcpname);
public void delPoint(RemoteClientPoint rcp);
public voi ...
package com.huaweisymantec.rmc.core.service;
import com.huaweisymantec.rmc.core.domain.Info;
public interface InfoManage {
public Info find(String ESN);
public void save(Info info);
}
package com.huaweisymantec.rmc.core.service;
import java.util.List;
import com.huaweisymantec.rmc.core.domain.Equipment;
public interface EquipmentManage {
public void saveEquipment(Equipment equip);
public void deleteEquipment(String ESN);
public void updateEquipment(Equipment equip);
pu ...
package com.huaweisymantec.rmc.core.dao.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;
import com.huaweisymantec.rmc.core.dao.UserDao;
import com.huaweisymantec.rmc.core.d ...