Package org.cyclos.entities.users
Class QuickAccess
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.users.QuickAccess
-
- All Implemented Interfaces:
Cloneable,Comparable<QuickAccess>,HasNetwork,ProcessableForProxying,IEntity
- Direct Known Subclasses:
ProductQuickAccess,UserQuickAccess
@MappedSuperclass public abstract class QuickAccess extends NetworkedEntity implements Comparable<QuickAccess>
Stores a quick access type and, for those that relate to a configuration entity, the entity as well.
-
-
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<QuickAccess>COMPARATOR
-
Constructor Summary
Constructors Constructor Description QuickAccess()QuickAccess(QuickAccessType type)QuickAccess(QuickAccessType type, ConfigurationEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QuickAccess o)ConfigurationEntitygetEntity()QuickAccessTypegetType()booleanmatches(IEntity other)Returns whether the id of this entity matches the other entity's idbooleanmatches(QuickAccessType type, ConfigurationEntity entity)voidsetEntity(ConfigurationEntity entity)voidsetType(QuickAccessType type)-
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.HasNetwork
getNetwork
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Field Detail
-
COMPARATOR
public static final Comparator<QuickAccess> COMPARATOR
-
-
Constructor Detail
-
QuickAccess
public QuickAccess()
-
QuickAccess
public QuickAccess(QuickAccessType type)
-
QuickAccess
public QuickAccess(QuickAccessType type, ConfigurationEntity entity)
-
-
Method Detail
-
compareTo
public int compareTo(QuickAccess o)
- Specified by:
compareToin interfaceComparable<QuickAccess>
-
getEntity
public ConfigurationEntity getEntity()
-
getType
public QuickAccessType getType()
-
matches
public boolean matches(IEntity other)
Description copied from interface:IEntityReturns whether the id of this entity matches the other entity's id
-
matches
public boolean matches(QuickAccessType type, ConfigurationEntity entity)
-
setEntity
public void setEntity(ConfigurationEntity entity)
-
setType
public void setType(QuickAccessType type)
-
-