com.flexive.shared.scripting
Class FxScriptMappingEntry

java.lang.Object
  extended by com.flexive.shared.scripting.FxScriptMappingEntry
All Implemented Interfaces:
java.io.Serializable

public class FxScriptMappingEntry
extends java.lang.Object
implements java.io.Serializable

Class describing the mapping of a script to other objects (FxType, FxAssignment, ...)

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
FxScriptMapping, Serialized Form

Constructor Summary
FxScriptMappingEntry(FxScriptEvent scriptEvent, long scriptId, boolean active, boolean derivedUsage, long id, long[] derivedIds)
          Constructor
 
Method Summary
 long[] getDerivedIds()
          Get the ids of all derived (and affected) objects
 long getId()
          Get the mapped object id
 FxScriptEvent getScriptEvent()
          Get the event type of the script
 long getScriptId()
          Get the id of the script
 boolean isActive()
          Is this mapping active?
 boolean isDerivedUsage()
          Should this mapping be used in derived objects?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxScriptMappingEntry

public FxScriptMappingEntry(FxScriptEvent scriptEvent,
                            long scriptId,
                            boolean active,
                            boolean derivedUsage,
                            long id,
                            long[] derivedIds)
Constructor

Parameters:
scriptEvent - event of the script
scriptId - id of the script
active - is this mapping active?
derivedUsage - should this mapping be used for derived objects as well?
id - object id of the mapping (type, assignment, ...)
derivedIds - object id's of derived objects
Method Detail

getScriptId

public long getScriptId()
Get the id of the script

Returns:
script id

isActive

public boolean isActive()
Is this mapping active?

Returns:
mapping active

isDerivedUsage

public boolean isDerivedUsage()
Should this mapping be used in derived objects?

Returns:
usage in derived objects?

getId

public long getId()
Get the mapped object id

Returns:
mapped object id

getDerivedIds

public long[] getDerivedIds()
Get the ids of all derived (and affected) objects

Returns:
ids of all derived (and affected) objects

getScriptEvent

public FxScriptEvent getScriptEvent()
Get the event type of the script

Returns:
FxScriptEvent