Skip navigation links

Oracle Communications Services Gatekeeper OAM Java API Reference
6.0

E55516-02


com.bea.wlcp.wlng.account.management
Interface ApplicationAccountMBean


public interface ApplicationAccountMBean

Method Summary
 void addApplicationAccount(String applicationIdentifier, String serviceProviderIdentifier, String applicationGroupIdentifier, String reference)
          Adds an application account.
 void addServiceProviderAccount(String serviceProviderIdentifier, String serviceProviderGroupIdentifier, String reference)
          Adds a service provider account.
 int countApplicationAccounts(String serviceProviderIdentifier, String applicationGroupIdentifier, String state)
          Gets the number of application accounts.
 int countServiceProviderAccounts(String serviceProviderGroupIdentifier, String state)
          Displays the number of registered service provider accounts.
 ApplicationDescription getApplicationAccount(String applicationIdentifier, String serviceProviderIdentifier)
          Gets information about an application account.
 ServiceProviderDescription getServiceProviderAccount(String serviceProviderIdentifier)
          Gets information about a service provider account.
 Set listApplicationAccounts(String serviceProviderIdentifier, String applicationGroupIdentifier, String state, int offset, int size)
          Displays a list of application accounts.
 Set listServiceProviderAccounts(String serviceProviderGroupIdentifier, String state, int offset, int size)
          Displays a list of service provider accounts.
 void removeApplicationAccount(String applicationIdentifier, String serviceProviderIdentifier)
          Removes a deactivated empty application account.
 void removeServiceProviderAccount(String serviceProviderIdentifier)
          Removes a deactivated empty service provider account.
 void setApplicationAccountGroup(String applicationIdentifier, String serviceProviderIdentifier, String applicationGroupIdentifier)
          Sets the application account group for a particular application account/service provider account combination.
 void setApplicationAccountProperties(String applicationIdentifier, String serviceProviderIdentifier, Set properties)
          Sets properties for an application account.
 void setApplicationAccountReference(String applicationIdentifier, String serviceProviderIdentifier, String reference)
          Sets reference for an application account.
 void setApplicationAccountState(String applicationIdentifier, String serviceProviderIdentifier, String state)
          Sets state for an application account.
 void setServiceProviderAccountGroup(String serviceProviderIdentifier, String serviceProviderGroupIdentifier)
          Sets a group for a service provider account.
 void setServiceProviderAccountProperties(String serviceProviderIdentifier, Set properties)
          Sets properties for a service provider account.
 void setServiceProviderAccountReference(String serviceProviderIdentifier, String reference)
          Sets state for a service provider account.
 void setServiceProviderAccountState(String serviceProviderIdentifier, String state)
          Sets state for a service provider account.

 

Method Detail

addApplicationAccount

public void addApplicationAccount(String applicationIdentifier,
                                  String serviceProviderIdentifier,
                                  String applicationGroupIdentifier,
                                  String reference)
                           throws DuplicateKeyException,
                                  KeyNotFoundException
Adds an application account.

Scope: Domain

Parameters:
applicationIdentifier - The application identifier.
serviceProviderIdentifier - The service provider.
applicationGroupIdentifier - The application group.
reference - The account reference.
Throws:
com.bea.wlcp.wlng.api.management.DuplicateKeyException - If such an account already exists.
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such parent account or account group exists.
DuplicateKeyException
KeyNotFoundException

addServiceProviderAccount

public void addServiceProviderAccount(String serviceProviderIdentifier,
                                      String serviceProviderGroupIdentifier,
                                      String reference)
                               throws DuplicateKeyException,
                                      KeyNotFoundException
Adds a service provider account.

Scope: Domain

Parameters:
serviceProviderIdentifier - The account identifier.
serviceProviderGroupIdentifier - The service provider group.
reference - The account reference.
Throws:
com.bea.wlcp.wlng.api.management.DuplicateKeyException - If such an account already exists.
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account group exists.
DuplicateKeyException
KeyNotFoundException

countApplicationAccounts

public int countApplicationAccounts(String serviceProviderIdentifier,
                                    String applicationGroupIdentifier,
                                    String state)
                             throws KeyNotFoundException
Gets the number of application accounts.

Scope: Domain

Parameters:
serviceProviderIdentifier - The service provider (optional).
applicationGroupIdentifier - The application group identifier (optional).
state - The state (ACTIVATED or DEACTIVATED) (optional).
Returns:
The number of child accounts for specified filter.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - if no such account or group exists.
KeyNotFoundException

countServiceProviderAccounts

public int countServiceProviderAccounts(String serviceProviderGroupIdentifier,
                                        String state)
                                 throws KeyNotFoundException
Displays the number of registered service provider accounts. Can be filtered on any combination of:

Scope: Domain

Parameters:
serviceProviderGroupIdentifier - The service provider group identifier (optional). Leave empty to match all.
state - The state (ACTIVATED or DEACTIVATED) (optional). Leave empty to match all.
Returns:
The number of accounts for specified filter.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - if no such group exists.
KeyNotFoundException

getApplicationAccount

public ApplicationDescription getApplicationAccount(String applicationIdentifier,
                                                    String serviceProviderIdentifier)
Gets information about an application account. Because the application account is not necessarily unique across service provider accounts, you must also specify the relevant service provider account.

The information includes:

Scope: Domain

Parameters:
applicationIdentifier - The account identifier.
serviceProviderIdentifier - The service provider.
Returns:
The application account description or null if it doesn't exist.

getServiceProviderAccount

public ServiceProviderDescription getServiceProviderAccount(String serviceProviderIdentifier)
Gets information about a service provider account.

The retrieved information includes:

Scope: Domain

Parameters:
serviceProviderIdentifier - The account identifier.
Returns:
The child account description or null if no such account exists.

listApplicationAccounts

public Set listApplicationAccounts(String serviceProviderIdentifier,
                                   String applicationGroupIdentifier,
                                   String state,
                                   int offset,
                                   int size)
                            throws KeyNotFoundException
Displays a list of application accounts. The display can be filtered on any combination of:

The list contains application account IDs.

Scope: Domain

Parameters:
serviceProviderIdentifier - The service provider (optional). Leave empty to match all.
applicationGroupIdentifier - The application group identifier (optional). Leave empty to match all.
state - The state (ACTIVATED or DEACTIVATED) (optional). Leave empty to match all.
offset - Offset in complete resultset. Must be >= 0.
size - Number of entries to return. 0 means no limit.
Returns:
The application accounts matching specified filter.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - if no such account or group exists.
KeyNotFoundException

listServiceProviderAccounts

public Set listServiceProviderAccounts(String serviceProviderGroupIdentifier,
                                       String state,
                                       int offset,
                                       int size)
                                throws KeyNotFoundException
Displays a list of service provider accounts. Can be filtered on any combination of:

The list contains service provider account IDs.

Scope: Domain

Parameters:
serviceProviderGroupIdentifier - The service provider group identifier (optional). Leave empty to match all.
state - The state (ACTIVATED or DEACTIVATED) (optional). Leave empty to match all.
offset - Offset in complete resultset. Must be >= 0.
size - Number of entries to return. 0 means no limit.
Returns:
The service provider accounts matching specified filter.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - if no such group exists.
KeyNotFoundException

removeApplicationAccount

public void removeApplicationAccount(String applicationIdentifier,
                                     String serviceProviderIdentifier)
                              throws ManagementException
Removes a deactivated empty application account. To be removed, the account must not have any associated application instances. The application account state must also be DEACTIVATED.

Because the application account is not necessarily unique across service provider accounts, you must also specify the relevant service provider account.

Scope: Domain

Parameters:
applicationIdentifier - The application account.
serviceProviderIdentifier - The service provider account.
Throws:
com.bea.wlcp.wlng.api.management.ManagementException - If the account is not in deactivated state or contains users.
ManagementException

removeServiceProviderAccount

public void removeServiceProviderAccount(String serviceProviderIdentifier)
                                  throws ManagementException
Removes a deactivated empty service provider account. To be removed, the service provider account must not have any associated application accounts and must be in the DEACTIVATED state.

Scope: Domain

Parameters:
serviceProviderIdentifier - The account.
Throws:
com.bea.wlcp.wlng.api.management.ManagementException - If the account contains child accounts or is not in deactivated state.
ManagementException

setApplicationAccountGroup

public void setApplicationAccountGroup(String applicationIdentifier,
                                       String serviceProviderIdentifier,
                                       String applicationGroupIdentifier)
                                throws KeyNotFoundException
Sets the application account group for a particular application account/service provider account combination. Is also used to change to which group a combination belongs.

Scope: Domain

Parameters:
applicationIdentifier - The account.
serviceProviderIdentifier - The service provider account ID.
applicationGroupIdentifier - The new group or null if group should not change.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setApplicationAccountProperties

public void setApplicationAccountProperties(String applicationIdentifier,
                                            String serviceProviderIdentifier,
                                            Set properties)
                                     throws KeyNotFoundException
Sets properties for an application account.

Note: Only applicable when accessing the MBean directly.

Scope: Domain

Parameters:
applicationIdentifier - The account.
serviceProviderIdentifier - The service provider account ID.
properties - The new properties. A set with Map.Entry<String, String>.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setApplicationAccountReference

public void setApplicationAccountReference(String applicationIdentifier,
                                           String serviceProviderIdentifier,
                                           String reference)
                                    throws KeyNotFoundException
Sets reference for an application account.

Scope: Domain

Parameters:
applicationIdentifier - The account.
serviceProviderIdentifier - The service provider account ID.
reference - The account reference.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setApplicationAccountState

public void setApplicationAccountState(String applicationIdentifier,
                                       String serviceProviderIdentifier,
                                       String state)
                                throws KeyNotFoundException
Sets state for an application account.
Parameters:
applicationIdentifier - The account.
serviceProviderIdentifier - The service provider account ID.
state - The new state or null if state should not change.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setServiceProviderAccountGroup

public void setServiceProviderAccountGroup(String serviceProviderIdentifier,
                                           String serviceProviderGroupIdentifier)
                                    throws KeyNotFoundException
Sets a group for a service provider account. Can be used as well to change the group assignment.

Scope: Domain

Parameters:
serviceProviderIdentifier - The account.
serviceProviderGroupIdentifier - The new group or null if group should not change.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setServiceProviderAccountProperties

public void setServiceProviderAccountProperties(String serviceProviderIdentifier,
                                                Set properties)
                                         throws KeyNotFoundException
Sets properties for a service provider account.

Note: Only applicable when accessing the MBean directly.

Scope: Domain

Parameters:
serviceProviderIdentifier - The account.
properties - The new properties. A set with Map.Entry<String, String>.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setServiceProviderAccountReference

public void setServiceProviderAccountReference(String serviceProviderIdentifier,
                                               String reference)
                                        throws KeyNotFoundException
Sets state for a service provider account.

Scope: Domain

Parameters:
serviceProviderIdentifier - The account.
reference - The account reference.
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

setServiceProviderAccountState

public void setServiceProviderAccountState(String serviceProviderIdentifier,
                                           String state)
                                    throws KeyNotFoundException
Sets state for a service provider account.

Scope: Domain

Parameters:
serviceProviderIdentifier - The account.
state - The new state (ACTIVATED or DEACTIVATED).
Throws:
com.bea.wlcp.wlng.api.management.KeyNotFoundException - If no such account could be found.
KeyNotFoundException

Skip navigation links

Oracle Communications Services Gatekeeper OAM Java API Reference
6.0

E55516-02


Copyright © 2008, 2015, Oracle and/or its affiliates. All rights reserved.