Class PhysicalConnectionsService
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.optional.physcon.PhysicalConnectionsService
-
@Service public class PhysicalConnectionsService extends Object
Service to manage the physical connections- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static String
RELATIONSHIP_ENDPOINTA
A side in a physical connection.static String
RELATIONSHIP_ENDPOINTB
B side in a physical connection.
-
Constructor Summary
Constructors Constructor Description PhysicalConnectionsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createPhysicalConnection(String aObjectClass, String aObjectId, String bObjectClass, String bObjectId, String name, String connectionClass, String templateId, String userName)
void
deletePhysicalConnection(String objectClassName, String objectId, String userName)
List<BusinessObjectLight>
getPhysicalPath(String objectClass, String objectId)
Finds the physical path from one port to anotherHashMap<BusinessObjectLight,List<BusinessObjectLight>>
getPhysicalTree(String objectClass, String objectId)
Gets A tree representation of all physical paths as a hash map.
-
-
-
Method Detail
-
createPhysicalConnection
public String createPhysicalConnection(String aObjectClass, String aObjectId, String bObjectClass, String bObjectId, String name, String connectionClass, String templateId, String userName) throws IllegalStateException, OperationNotPermittedException
-
deletePhysicalConnection
public void deletePhysicalConnection(String objectClassName, String objectId, String userName) throws IllegalStateException, InventoryException
-
getPhysicalPath
public List<BusinessObjectLight> getPhysicalPath(String objectClass, String objectId) throws IllegalStateException, MetadataObjectNotFoundException, BusinessObjectNotFoundException, ApplicationObjectNotFoundException, InvalidArgumentException
Finds the physical path from one port to another- Parameters:
objectClass
- The source port class.objectId
- The source port id.- Returns:
- A list of objects that make part of the physical trace.
- Throws:
MetadataObjectNotFoundException
- can't fBusinessObjectNotFoundException
ApplicationObjectNotFoundException
InvalidArgumentException
- If one of theIllegalStateException
-
getPhysicalTree
public HashMap<BusinessObjectLight,List<BusinessObjectLight>> getPhysicalTree(String objectClass, String objectId) throws IllegalStateException, BusinessObjectNotFoundException, MetadataObjectNotFoundException, ApplicationObjectNotFoundException, InvalidArgumentException
Gets A tree representation of all physical paths as a hash map.- Parameters:
objectClass
- The source port classobjectId
- The source port id- Returns:
- A tree representation of all physical paths as a hash map
- Throws:
BusinessObjectNotFoundException
- If any of the objects involved in the path cannot be foundMetadataObjectNotFoundException
- If any of the object classes involved in the path cannot be foundApplicationObjectNotFoundException
- If any of the objects involved in the path has a malformed list type attributeInvalidArgumentException
- If any of the objects involved in the path has an invalid objectId or classNameIllegalStateException
-
-