com.friendshipsystems.fsshresourcemanager.config
Class FFloatingLicense
java.lang.Object
com.friendshipsystems.fsshresourcemanager.utils.FDBObject
com.friendshipsystems.fsshresourcemanager.config.FFloatingLicense
public class FFloatingLicense
- extends com.friendshipsystems.fsshresourcemanager.utils.FDBObject
This class represents configured floating licenses.
- Author:
- FRIENDSHIP SYSTEMS
| Methods inherited from class com.friendshipsystems.fsshresourcemanager.utils.FDBObject |
delete, save, update |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FFloatingLicense
public FFloatingLicense()
FFloatingLicense
public FFloatingLicense(java.lang.String name,
int number)
getFloatingLicenses
public static java.util.List<FFloatingLicense> getFloatingLicenses()
getFloatingLicense
public static FFloatingLicense getFloatingLicense(int id)
toMap
public java.util.Map<java.lang.String,java.lang.Object> toMap()
- Specified by:
toMap in class com.friendshipsystems.fsshresourcemanager.utils.FDBObject
getId
public int getId()
- Returns:
- the id
setName
public void setName(java.lang.String name)
- Parameters:
name - the name to set
getName
public java.lang.String getName()
- Returns:
- the name
setNumber
public void setNumber(int number)
- Parameters:
number - the number to set
getNumber
public int getNumber()
- Returns:
- the number
getFreeLics
public int getFreeLics()
getUsedLics
public java.lang.Integer getUsedLics()
setUsedLicsWithCheck
public void setUsedLicsWithCheck(java.lang.Integer lics)
useLic
public void useLic()
useLics
public void useLics(int amount)
freeLic
public void freeLic()
freeLics
public void freeLics(int amount)