public class TvRegistrationUtils
extends java.lang.Object
| Constructor and Description |
|---|
TvRegistrationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
productActivate(ru.bitel.bgbilling.kernel.container.managed.ServerContext context,
int moduleId,
int contractId,
java.util.Date time,
int productSpecId,
int activationModeId,
java.lang.String description,
java.lang.String comment)
Активация продукта.
|
static TvAccount |
tvAccountCreate(ru.bitel.bgbilling.kernel.container.managed.ServerContext context,
int moduleId,
int contractId,
int tvAccountSpecId,
int parentId,
java.util.Date dateFrom,
java.lang.String login,
java.lang.String password,
java.lang.String identifier,
java.lang.String deviceAccountId,
java.lang.String mac,
java.lang.String comment)
Создание аккаунта.
|
static TvAccount |
tvAccountFind(TvAccountService tvAccountService,
java.lang.String username,
java.lang.String deviceAccountId) |
static TvAccount |
tvAccountRegister(ru.bitel.bgbilling.kernel.container.managed.ServerContext context,
int moduleId,
int contractId,
int tvAccountSpecId,
java.lang.String login,
java.lang.String identifier,
java.lang.String mac,
java.lang.String comment)
Создание или обновление аккаунта.
|
public static TvAccount tvAccountCreate(ru.bitel.bgbilling.kernel.container.managed.ServerContext context, int moduleId, int contractId, int tvAccountSpecId, int parentId, java.util.Date dateFrom, java.lang.String login, java.lang.String password, java.lang.String identifier, java.lang.String deviceAccountId, java.lang.String mac, java.lang.String comment) throws ru.bitel.bgbilling.common.BGException
context - moduleId - ID модуля.contractId - ID договора.tvAccountSpecId - ID типа аккаунта.parentId - ID родительского аккаунта, если это дочерний. Иначе - 0.dateFrom - login - логин или null, если требуется сгенерировать логин.password - пароль или null, если требуется сгенерировать пароль.identifier - идентификатор, может быть null.deviceAccountId - идентификатор в MW, должен быть null, если требуется синхронизация с MW.mac - MAC-адрес или null.comment - комментарий, может быть null.ru.bitel.bgbilling.common.BGExceptionpublic static TvAccount tvAccountRegister(ru.bitel.bgbilling.kernel.container.managed.ServerContext context, int moduleId, int contractId, int tvAccountSpecId, java.lang.String login, java.lang.String identifier, java.lang.String mac, java.lang.String comment) throws ru.bitel.bgbilling.common.BGException
context - moduleId - ID модуля.contractId - ID договора.tvAccountSpecId - ID типа аккаунта.login - логин, может быть null, если требуется сгенерировать при создании или не нужно обновлять.identifier - идентификатор, может быть null.mac - MAC-адрес, может быть null.comment - комментарий, может быть null.ru.bitel.bgbilling.common.BGExceptionpublic static TvAccount tvAccountFind(TvAccountService tvAccountService, java.lang.String username, java.lang.String deviceAccountId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic static void productActivate(ru.bitel.bgbilling.kernel.container.managed.ServerContext context,
int moduleId,
int contractId,
java.util.Date time,
int productSpecId,
int activationModeId,
java.lang.String description,
java.lang.String comment)
throws ru.bitel.bgbilling.common.BGException
context - moduleId - ID модуля.contractId - ID договора.productSpecId - ID продукта.activationModeId - ID режима активации.time - время.description - описание.comment - комментарий.ru.bitel.bgbilling.common.BGException