public static com.vportal.portlet.vadvman.model.AdvTypeSoap addType(
      long groupId,
      long companyId,
      long plid,
      java.lang.String name,
      java.lang.String description,
      java.lang.Boolean addCommunityPermissions,
      java.lang.Boolean addGuestPermissions,
      java.lang.String[] communityPermissions,
      java.lang.String[] guestPermissions)
      throws RemoteException {
    try {
      com.vportal.portlet.vadvman.model.AdvType returnValue =
          AdvTypeServiceUtil.addType(
              groupId,
              companyId,
              plid,
              name,
              description,
              addCommunityPermissions,
              addGuestPermissions,
              communityPermissions,
              guestPermissions);

      return com.vportal.portlet.vadvman.model.AdvTypeSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.vportal.portlet.vadvman.model.AdvTypeSoap getType(long typeId)
      throws RemoteException {
    try {
      com.vportal.portlet.vadvman.model.AdvType returnValue = AdvTypeServiceUtil.getType(typeId);

      return com.vportal.portlet.vadvman.model.AdvTypeSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.vportal.portlet.vadvman.model.AdvTypeSoap[] getTypeByG(
      long groupId, int start, int end) throws RemoteException {
    try {
      java.util.List returnValue = AdvTypeServiceUtil.getTypeByG(groupId, start, end);

      return com.vportal.portlet.vadvman.model.AdvTypeSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.vportal.portlet.vadvman.model.AdvTypeSoap updateType(
      long typeId,
      long groupId,
      long companyId,
      long plid,
      java.lang.String name,
      java.lang.String description)
      throws RemoteException {
    try {
      com.vportal.portlet.vadvman.model.AdvType returnValue =
          AdvTypeServiceUtil.updateType(typeId, groupId, companyId, plid, name, description);

      return com.vportal.portlet.vadvman.model.AdvTypeSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }