public final class AccountTypeRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AccountTypeDetails |
getDetails(int type) |
static AccountTypeRegistry |
getInstance() |
void |
register(int type,
int category,
int context,
java.lang.String label,
java.lang.String icon)
Registers a new account type to the system.
|
public static AccountTypeRegistry getInstance()
public void register(int type, int category, int context, java.lang.String label, java.lang.String icon) throws java.lang.Exception
type
- An integer to uniquely identify the account type.category
- Use InfraAccountTypes.CAT_COMPUTING, InfraAccountTypes.CAT_STORAGE, InfraAccountTypes.CAT_NETWORK,
InfraAccountTypes.CAT_OTHERS.context
- Use a valid report context's type.label
- The string to show in UI for this account type.icon
- This should be a relative url path to the icon for this account type. Something like:
/app/images/icons/kubrick/Device_group_1211_16.pngjava.lang.Exception
- If an account type with type already registered.public AccountTypeDetails getDetails(int type)