/*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016 - 2020 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
package org.mxchange.jjobs.beans.phone;
import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Local;
-import org.mxchange.jcountry.data.Country;
-import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
-import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
-import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
-import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
/**
* An interface for a request web controller (bean) for administrative phone
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
-@Local
public interface JobsAdminPhoneWebRequestController extends Serializable {
- /**
- * Returns a list of all unused ("non-linked") mobile numbers
- * <p>
- * @return List with all unused mobile numbers
- */
- List<DialableMobileNumber> allNonLinkedMobileNumbers ();
-
- /**
- * Returns a list of all unused ("non-linked") land-line numbers
- * <p>
- * @return List with all unused land-line numbers
- */
- List<DialableFaxNumber> allNonLinkedFaxNumbers ();
-
- /**
- * Returns a list of all unused ("non-linked") land-line numbers
- * <p>
- * @return List with all unused land-line numbers
- */
- List<DialableLandLineNumber> allNonLinkedLandLineNumbers ();
-
- /**
- * Deletes given fax entry data
- * <p>
- * @param faxNumber Fax number to delete
- * <p>
- * @return Redirect outcome
- */
- String deleteFaxData (final DialableFaxNumber faxNumber);
-
- /**
- * Changes fax entry data
- * <p>
- * @param faxNumber Fax number to change data
- * <p>
- * @return Redirect outcome
- */
- String editFaxData (final DialableFaxNumber faxNumber);
-
- /**
- * Deletes given land-line entry data
- * <p>
- * @param landLineNumber Land-line number to delete
- * <p>
- * @return Redirect outcome
- */
- String deleteLandLineData (final DialableLandLineNumber landLineNumber);
-
- /**
- * Changes land-line entry data
- * <p>
- * @param landLineNumber Land-line number to change data
- * <p>
- * @return Redirect outcome
- */
- String editLandLineData (final DialableLandLineNumber landLineNumber);
-
- /**
- * Deletes given mobile entry data
- * <p>
- * @param mobileNumber Mobile number to delete
- * <p>
- * @return Redirect outcome
- */
- String deleteMobileData (final DialableMobileNumber mobileNumber);
-
- /**
- * Changes mobile entry data
- * <p>
- * @param mobileNumber Mobile number to change data
- * <p>
- * @return Redirect outcome
- */
- String editMobileData (final DialableMobileNumber mobileNumber);
-
- /**
- * Getter for mobile provider
- * <p>
- * @return Mobile provider
- */
- MobileProvider getMobileProvider ();
-
- /**
- * Setter for mobile provider
- * <p>
- * @param mobileProvider Mobile provider
- */
- void setMobileProvider (final MobileProvider mobileProvider);
-
- /**
- * Getter for choosen fax number
- * <p>
- * @return fax number
- */
- DialableFaxNumber getFaxNumber ();
-
- /**
- * Setter for choosen fax number
- * <p>
- * @param choosenFaxNumber fax number
- */
- void setFaxNumber (final DialableFaxNumber choosenFaxNumber);
-
- /**
- * Getter for choosen land-line number
- * <p>
- * @return land-line number
- */
- DialableLandLineNumber getLandLineNumber ();
-
- /**
- * Setter for choosen land-line number
- * <p>
- * @param choosenLandLineNumber land-line number
- */
- void setLandLineNumber (final DialableLandLineNumber choosenLandLineNumber);
-
- /**
- * Getter for choosen mobile number
- * <p>
- * @return mobile number
- */
- DialableMobileNumber getMobileNumber ();
-
- /**
- * Setter for choosen mobile number
- * <p>
- * @param choosenMobileNumber mobile number
- */
- void setMobileNumber (final DialableMobileNumber choosenMobileNumber);
-
- /**
- * Getter for phone area code
- * <p>
- * @return Phone area code
- */
- Integer getPhoneAreaCode ();
-
- /**
- * Setter for phone area code
- * <p>
- * @param phoneAreaCode Phone area code
- */
- void setPhoneAreaCode (final Integer phoneAreaCode);
-
- /**
- * Getter for phone country (for dial prefix)
- * <p>
- * @return Phone country
- */
- Country getPhoneCountry ();
-
- /**
- * Setter for phone country (for dial prefix)
- * <p>
- * @param phoneCountry Phone country
- */
- void setPhoneCountry (final Country phoneCountry);
-
- /**
- * Getter for dial number without prefix
- * <p>
- * @return Dial number without prefix
- */
- Long getPhoneNumber ();
-
- /**
- * Setter for dial number without prefix
- * <p>
- * @param phoneNumber Dial number without prefix
- */
- void setPhoneNumber (final Long phoneNumber);
-
}