?? resourcewebimpl.java.svn-base
字號:
package com.nsi.components.resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.nsi.control.exceptions.GeneralFailureException;
import com.nsi.control.exceptions.NsiEventException;
import com.nsi.control.web.ModelManager;
import com.nsi.control.web.ModelUpdateListener;
import com.nsi.util.ValHelper;
public class ResourceWebImpl extends ResourceModel implements ModelUpdateListener
{
private static Log log = LogFactory.getLog(ResourceWebImpl.class);
/**
* constructor of ResourceWebImpl
* @param mm
*/
public ResourceWebImpl(ModelManager mm)
{
mm.addListener("com.nsi.components.resource.ResourceBackHandler", this);
}
public void performUpdate() throws GeneralFailureException
{
String resourceid = getResourceid();
if ( ValHelper.getInstance().isNotNullAndEmpty(resourceid))
{
try
{
ResourceSrc src = new ResourceSrc();
src.setResourceid(resourceid);
if( src.isResouceExists(resourceid))
{
src.load();
copy( src.getInfo());
}
}
catch(NsiEventException nsievex)
{
log.error("performUpdate() -- caught NsiEventException : ", nsievex );
throw new GeneralFailureException( "performUpdate() -- caught NsiEventException : ", nsievex) ;
}
catch(GeneralFailureException gex)
{
log.error("performUpdate() -- caught GeneralFailureException : ", gex );
throw gex;
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -