com.flexive.shared.security
Class Mandator

java.lang.Object
  extended by com.flexive.shared.AbstractSelectableObjectWithName
      extended by com.flexive.shared.security.Mandator
All Implemented Interfaces:
SelectableObject, SelectableObjectWithName, java.io.Serializable

public class Mandator
extends AbstractSelectableObjectWithName
implements java.io.Serializable

A Mandator

Author:
Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
static int MANDATOR_FLEXIVE
          The default flexive mandator
 
Constructor Summary
Mandator()
           
Mandator(long id, java.lang.String name, long metadataId, boolean active, LifeCycleInfo lci)
          Constructor.
 
Method Summary
 java.lang.String getDisplay()
          Returns a string representation of the object.
 long getId()
          Get the Id of the Mandators
 LifeCycleInfo getLifeCycleInfo()
          Get the LifeCycleInfoImpl
 long getMetadataId()
          The metadata reference id.
 java.lang.String getName()
          Get the Mandators name
 boolean hasMetadata()
          Are meta data attached to this mandator?
 boolean isActive()
          Returns true if the mandator is active.
 void setActive(boolean active)
           
 void setMetadataId(long metadataId)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
          
 
Methods inherited from class com.flexive.shared.AbstractSelectableObjectWithName
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MANDATOR_FLEXIVE

public static final int MANDATOR_FLEXIVE
The default flexive mandator

See Also:
Constant Field Values
Constructor Detail

Mandator

public Mandator()

Mandator

public Mandator(long id,
                java.lang.String name,
                long metadataId,
                boolean active,
                LifeCycleInfo lci)
Constructor.

Parameters:
id - the unique id of the mandator
name - the name of the mandator
metadataId - the metadate reference id
active - is this mandator active?
lci - lifecycle info
Method Detail

getId

public long getId()
Get the Id of the Mandators

Specified by:
getId in interface SelectableObject
Returns:
Id

getName

public java.lang.String getName()
Get the Mandators name

Specified by:
getName in interface SelectableObjectWithName
Returns:
Mandators name

getMetadataId

public long getMetadataId()
The metadata reference id.

Returns:
The metadata reference id

hasMetadata

public boolean hasMetadata()
Are meta data attached to this mandator?

Returns:
if meta data are attached to this mandator

isActive

public boolean isActive()
Returns true if the mandator is active.

Returns:
true if the mandator is active.

getLifeCycleInfo

public LifeCycleInfo getLifeCycleInfo()
Get the LifeCycleInfoImpl

Returns:
LifeCycleInfoImpl

setName

public void setName(java.lang.String name)

setMetadataId

public void setMetadataId(long metadataId)

setActive

public void setActive(boolean active)

getDisplay

public java.lang.String getDisplay()
Returns a string representation of the object.

Returns:
a string representation of the object.

toString

public java.lang.String toString()

Overrides:
toString in class AbstractSelectableObjectWithName