Class ConnectivityManagerService
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.optional.connectivityman.ConnectivityManagerService
-
@Service public class ConnectivityManagerService extends Object
Service to manage the persistence operations in the Connectivity Manager Module- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static String
OSP_LAST_MILE_CIRCUIT_ENDPOINT_A
A side of the OSP last mile circuitstatic String
OSP_LAST_MILE_CIRCUIT_ENDPOINT_B
B side of the OSP last mile circuit
-
Constructor Summary
Constructors Constructor Description ConnectivityManagerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createLastMileLink(String endpointAClass, String endpointAId, String endpointBClass, String endpointBId, String linkClass, HashMap<String,String> linkAttributes, String userName)
Creates a last mile circuit tributary link.
-
-
-
Field Detail
-
OSP_LAST_MILE_CIRCUIT_ENDPOINT_A
public static final String OSP_LAST_MILE_CIRCUIT_ENDPOINT_A
A side of the OSP last mile circuit- See Also:
- Constant Field Values
-
OSP_LAST_MILE_CIRCUIT_ENDPOINT_B
public static final String OSP_LAST_MILE_CIRCUIT_ENDPOINT_B
B side of the OSP last mile circuit- See Also:
- Constant Field Values
-
-
Method Detail
-
createLastMileLink
public String createLastMileLink(String endpointAClass, String endpointAId, String endpointBClass, String endpointBId, String linkClass, HashMap<String,String> linkAttributes, String userName) throws MetadataObjectNotFoundException, InvalidArgumentException, BusinessObjectNotFoundException, OperationNotPermittedException, ApplicationObjectNotFoundException
Creates a last mile circuit tributary link.- Parameters:
endpointAClass
- The class name of the Endpoint AendpointAId
- The id of the Endpoint AendpointBClass
- The class name of the Endpoint BendpointBId
- The id of the Endpoint BlinkClass
- Link Class. The class must be subclass of GenericLastMileTributaryLinklinkAttributes
- Attributes for linkuserName
- The user name who execute the action- Returns:
- The new link id.
- Throws:
InvalidArgumentException
- If the parameters are null. Or if the link class is not subclass of GenericLastMileTributaryLink.MetadataObjectNotFoundException
- If the link class are null.BusinessObjectNotFoundException
- If cannot created the link. If attribute values cannot be found.OperationNotPermittedException
- if cannot created the link. If cannot related the new link with the endpoints.ApplicationObjectNotFoundException
- If the attribute values cannot be found. If an activity log cannot be created. If link cannot be created.
-
-