Package org.cyclos.entities.users
Class UserQuickAccess
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.users.QuickAccess
-
- org.cyclos.entities.users.UserQuickAccess
-
- All Implemented Interfaces:
Cloneable,Comparable<QuickAccess>,HasNetwork,ProcessableForProxying,IEntity
@Entity public class UserQuickAccess extends QuickAccess
Stores a quick access preference for a user
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<UserQuickAccess>ORDER_COMPARATOR-
Fields inherited from class org.cyclos.entities.users.QuickAccess
COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description UserQuickAccess()UserQuickAccess(BasicUser user, QuickAccessType type)UserQuickAccess(BasicUser user, QuickAccessType type, ConfigurationEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QuickAccess o)NetworkgetNetwork()Returns the network this entity belongs toIntegergetOrder()BasicUsergetUser()booleanisEnabled()voidsetEnabled(boolean enabled)voidsetOrder(Integer order)voidsetUser(BasicUser user)-
Methods inherited from class org.cyclos.entities.users.QuickAccess
getEntity, getType, matches, matches, setEntity, setType
-
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.ProcessableForProxying
getProxyClass
-
-
-
-
Field Detail
-
ORDER_COMPARATOR
public static final Comparator<UserQuickAccess> ORDER_COMPARATOR
-
-
Constructor Detail
-
UserQuickAccess
public UserQuickAccess()
-
UserQuickAccess
public UserQuickAccess(BasicUser user, QuickAccessType type)
-
UserQuickAccess
public UserQuickAccess(BasicUser user, QuickAccessType type, ConfigurationEntity entity)
-
-
Method Detail
-
compareTo
public int compareTo(QuickAccess o)
- Specified by:
compareToin interfaceComparable<QuickAccess>- Overrides:
compareToin classQuickAccess
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to
-
getOrder
public Integer getOrder()
-
getUser
public BasicUser getUser()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
setOrder
public void setOrder(Integer order)
-
setUser
public void setUser(BasicUser user)
-
-