Java 类ims.admin.vo.domain.AppNavigationVoAssembler 实例源码

项目:AvoinApotti    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:AvoinApotti    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:openMAXIMS    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:openMAXIMS    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:openMAXIMS    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:openMAXIMS    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:openmaxims-linux    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:openmaxims-linux    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:AvoinApotti    文件:ApplicationRolesImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRefVo)
{
    if (navRefVo == null)
        return null;

    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRefVo));
}
项目:AvoinApotti    文件:NavigationAdminProtImpl.java   
/**
* Gets a complet Navigation
*/
public ims.admin.vo.AppNavigationVo getNavigation(ims.admin.vo.AppNavShortVo navShort)
{

    if (navShort == null || navShort.getID_AppNavigation() == null )
        return null;

    DomainFactory factory = (DomainFactory) getDomainFactory();
    AppNavigation appDO = (AppNavigation)factory.getDomainObject(AppNavigation.class,navShort.getID_AppNavigation());
    return AppNavigationVoAssembler.create(appDO);

}
项目:openMAXIMS    文件:ApplicationRolesImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRefVo)
{
    if (navRefVo == null)
        return null;

    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRefVo));
}
项目:openMAXIMS    文件:NavigationAdminProtImpl.java   
/**
* Gets a complet Navigation
*/
public ims.admin.vo.AppNavigationVo getNavigation(ims.admin.vo.AppNavShortVo navShort)
{

    if (navShort == null || navShort.getID_AppNavigation() == null )
        return null;

    DomainFactory factory = (DomainFactory) getDomainFactory();
    AppNavigation appDO = (AppNavigation)factory.getDomainObject(AppNavigation.class,navShort.getID_AppNavigation());
    return AppNavigationVoAssembler.create(appDO);

}
项目:openMAXIMS    文件:ApplicationRolesImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRefVo)
{
    if (navRefVo == null)
        return null;

    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRefVo));
}
项目:openMAXIMS    文件:NavigationAdminProtImpl.java   
/**
* Gets a complet Navigation
*/
public ims.admin.vo.AppNavigationVo getNavigation(ims.admin.vo.AppNavShortVo navShort)
{

    if (navShort == null || navShort.getID_AppNavigation() == null )
        return null;

    DomainFactory factory = (DomainFactory) getDomainFactory();
    AppNavigation appDO = (AppNavigation)factory.getDomainObject(AppNavigation.class,navShort.getID_AppNavigation());
    return AppNavigationVoAssembler.create(appDO);

}
项目:openmaxims-linux    文件:ApplicationRolesImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRefVo)
{
    if (navRefVo == null)
        return null;

    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRefVo));
}
项目:openmaxims-linux    文件:NavigationAdminProtImpl.java   
/**
* Gets a complet Navigation
*/
public ims.admin.vo.AppNavigationVo getNavigation(ims.admin.vo.AppNavShortVo navShort)
{

    if (navShort == null || navShort.getID_AppNavigation() == null )
        return null;

    DomainFactory factory = (DomainFactory) getDomainFactory();
    AppNavigation appDO = (AppNavigation)factory.getDomainObject(AppNavigation.class,navShort.getID_AppNavigation());
    return AppNavigationVoAssembler.create(appDO);

}
项目:AvoinApotti    文件:NavigationAdminImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRef)
{
    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRef));
}
项目:openMAXIMS    文件:NavigationAdminImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRef)
{
    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRef));
}
项目:openMAXIMS    文件:NavigationAdminImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRef)
{
    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRef));
}
项目:openmaxims-linux    文件:NavigationAdminImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRef)
{
    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRef));
}