Package org.cyclos.entities.banking
Class AuthorizationLevel
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.banking.AuthorizationLevel
-
- All Implemented Interfaces:
Cloneable,Comparable<AuthorizationLevel>,HasCurrency,HasNetwork,ProcessableForProxying,IEntity,IInternalNamedEntity
@Entity public class AuthorizationLevel extends BaseEntity implements Comparable<AuthorizationLevel>, IInternalNamedEntity, HasCurrency
An authorization level for an authorized transfer type
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description AuthorizationLevel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AuthorizationLevel o)DecimalRangegetAmountRange()CurrencygetCurrency()StringgetInternalName()IntegergetLevel()NetworkgetNetwork()Returns the network this entity belongs toSet<AuthorizationRole>getRoles()PaymentTransferTypegetTransferType()booleanisAdmin()booleanisBroker()booleanisPayer()booleanisReceiver()booleanisShowCommentsToUsers()voidsetAmountRange(DecimalRange amountRange)voidsetBroker(boolean broker)voidsetInternalName(String internalName)voidsetLevel(Integer level)voidsetPayer(boolean payer)voidsetReceiver(boolean receiver)voidsetRoles(Set<AuthorizationRole> roles)voidsetShowCommentsToUsers(boolean showCommentsToUsers)voidsetTransferType(PaymentTransferType transferType)-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
compareTo
public int compareTo(AuthorizationLevel o)
- Specified by:
compareToin interfaceComparable<AuthorizationLevel>
-
getAmountRange
public DecimalRange getAmountRange()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getInternalName
public String getInternalName()
- Specified by:
getInternalNamein interfaceIInternalNamedEntity- Returns:
- the internal name.
-
getLevel
public Integer getLevel()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getRoles
public Set<AuthorizationRole> getRoles()
-
getTransferType
public PaymentTransferType getTransferType()
-
isAdmin
public boolean isAdmin()
-
isBroker
public boolean isBroker()
-
isPayer
public boolean isPayer()
-
isReceiver
public boolean isReceiver()
-
isShowCommentsToUsers
public boolean isShowCommentsToUsers()
-
setAmountRange
public void setAmountRange(DecimalRange amountRange)
-
setBroker
public void setBroker(boolean broker)
-
setInternalName
public void setInternalName(String internalName)
- Specified by:
setInternalNamein interfaceIInternalNamedEntity- Parameters:
internalName- the internal name to be set.
-
setLevel
public void setLevel(Integer level)
-
setPayer
public void setPayer(boolean payer)
-
setReceiver
public void setReceiver(boolean receiver)
-
setRoles
public void setRoles(Set<AuthorizationRole> roles)
-
setShowCommentsToUsers
public void setShowCommentsToUsers(boolean showCommentsToUsers)
-
setTransferType
public void setTransferType(PaymentTransferType transferType)
-
-