Package org.cyclos.entities.access
Class AccessClient
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.access.AccessClient
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,UserPrincipal,IEntity,INamedEntity
@Entity public class AccessClient extends NamedEntity implements UserPrincipal
An access client represents a remote application, which works in behalf of a user
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description AccessClient()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName, toShortString, toString
-
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, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceUserPrincipal
-
getAccessClientToken
public String getAccessClientToken()
-
getAccountType
public UserAccountType getAccountType()
- Specified by:
getAccountTypein interfaceUserPrincipal
-
getActivationCode
public String getActivationCode()
-
getActivationDate
public Date getActivationDate()
-
getBasicUser
public BasicUser getBasicUser()
- Specified by:
getBasicUserin interfaceUserPrincipal
-
getCustomFieldValue
public UserCustomFieldValue getCustomFieldValue()
- Specified by:
getCustomFieldValuein interfaceUserPrincipal
-
getIpWhitelist
public String getIpWhitelist()
-
getLogs
public List<AccessClientLog> getLogs()
-
getMobilePhone
public MobilePhone getMobilePhone()
- Specified by:
getMobilePhonein interfaceUserPrincipal
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getPrincipal
public String getPrincipal()
Description copied from interface:UserPrincipalShould return a value that can be used to identify the user. In case the value should be hidden, implementors should return null.- Specified by:
getPrincipalin interfaceUserPrincipal
-
getPrincipalType
public PrincipalType getPrincipalType()
- Specified by:
getPrincipalTypein interfaceUserPrincipal
-
getStatus
public AccessClientStatus getStatus()
-
getToken
public Token getToken()
- Specified by:
getTokenin interfaceUserPrincipal
-
getTrustedDevice
public TrustedDevice getTrustedDevice()
- Specified by:
getTrustedDevicein interfaceUserPrincipal
-
getType
public AccessClientPrincipalType getType()
-
getUser
public User getUser()
-
getWhitelist
public InternetAddressList getWhitelist()
-
isUseIpWhitelist
public boolean isUseIpWhitelist()
-
setAccessClientToken
public void setAccessClientToken(String token)
-
setActivationCode
public void setActivationCode(String activationCode)
-
setActivationDate
public void setActivationDate(Date activationDate)
-
setLogs
public void setLogs(List<AccessClientLog> logs)
-
setStatus
public void setStatus(AccessClientStatus status)
-
setType
public void setType(AccessClientPrincipalType type)
-
setUser
public void setUser(User user)
-
setWhitelist
public void setWhitelist(InternetAddressList whitelist)
-
-