Class OutsidePlantService
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.ospman.OutsidePlantService
-
@Service public class OutsidePlantService extends Object
Service to manage the persistence operations in the Outside Plant Manager Module- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_CENTER_LATITUDE
Default map center latitude.static double
DEFAULT_CENTER_LONGITUDE
Default map center longitude.static String
DEFAULT_COLOR_FOR_LABELS
Default color for map labels.static String
DEFAULT_FILL_COLOR_FOR_LABELS
Default fill color for map labels.static String
DEFAULT_FONT_SIZE_FOR_LABELS
Default font size for map labels.static String
DEFAULT_LANGUAGE
Default map language (English).static double
DEFAULT_MIN_ZOOM_FOR_LABELS
Default minimum zoom level for the map when displaying labels.static int
DEFAULT_ZOOM
Default map center latitude.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 circuitstatic String
SPECIAL_RELATIONSHIP_OSPMAN_HAS_PATH
Special relationship to assign a Generic Physical Container with another Generic Physical Container.static String
VIEW_VERSION
The version of the XML document generated by the as
-
Constructor Summary
Constructors Constructor Description OutsidePlantService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createLastMileTributaryLink(String endpointAClass, String endpointAId, String endpointBClass, String endpointBId, String linkClass, HashMap<String,String> linkAttributes, String userName)
Creates a last mile circuit tributary link.void
init()
-
-
-
Field Detail
-
DEFAULT_CENTER_LATITUDE
public static double DEFAULT_CENTER_LATITUDE
Default map center latitude. This value is used when the configuration variablewidgets.simplemap.centerLatitude
can not be found or it's not a number.
-
DEFAULT_CENTER_LONGITUDE
public static double DEFAULT_CENTER_LONGITUDE
Default map center longitude. This value is used when the configuration variablewidgets.simplemap.centerLongitude
can not be found or it's not a number.
-
DEFAULT_ZOOM
public static int DEFAULT_ZOOM
Default map center latitude. This value is used when the configuration variablewidgets.simplemap.zoom
can not be found or it's not a number.
-
DEFAULT_MIN_ZOOM_FOR_LABELS
public static final double DEFAULT_MIN_ZOOM_FOR_LABELS
Default minimum zoom level for the map when displaying labels.- See Also:
- Constant Field Values
-
DEFAULT_COLOR_FOR_LABELS
public static final String DEFAULT_COLOR_FOR_LABELS
Default color for map labels.- See Also:
- Constant Field Values
-
DEFAULT_FILL_COLOR_FOR_LABELS
public static final String DEFAULT_FILL_COLOR_FOR_LABELS
Default fill color for map labels.- See Also:
- Constant Field Values
-
DEFAULT_FONT_SIZE_FOR_LABELS
public static final String DEFAULT_FONT_SIZE_FOR_LABELS
Default font size for map labels.- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE
public static String DEFAULT_LANGUAGE
Default map language (English). This language will be used if the configuration variablewidgets.simplemap.language
could not be found
-
VIEW_VERSION
public static String VIEW_VERSION
The version of the XML document generated by the as
-
SPECIAL_RELATIONSHIP_OSPMAN_HAS_PATH
public static final String SPECIAL_RELATIONSHIP_OSPMAN_HAS_PATH
Special relationship to assign a Generic Physical Container with another Generic Physical Container.- See Also:
- Constant Field Values
-
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
-
init
@PostConstruct public void init()
-
createLastMileTributaryLink
public String createLastMileTributaryLink(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.
-
-