Class ObjectContext

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ObjectContextWeb

    public class ObjectContext
    extends java.lang.Object
    implements java.io.Serializable
    Object context
    See Also:
    Serialized Form
    • Field Detail

      • search

        public boolean search
        Search form
      • list

        public boolean list
        List context
      • create

        public boolean create
        Create context
      • createFormEnabled

        public boolean createFormEnabled
        Create enabled on form?
      • createListEnabled

        public boolean createListEnabled
        Create enabled on list?
      • copy

        public boolean copy
        Create from copy context
      • update

        public boolean update
        Update context
      • updateAll

        public boolean updateAll
        Update all
      • delete

        public boolean delete
        Delete context
      • refSelect

        public boolean refSelect
        Reference select context
      • associate

        public boolean associate
        Associate context
      • datamapSelect

        public boolean datamapSelect
        Data mapping select context
      • datamapName

        public java.lang.String datamapName
        Data mapping name
      • crosstab

        public boolean crosstab
        Cross table context
      • crosstabName

        public java.lang.String crosstabName
        Cross table name
      • agenda

        public boolean agenda
        Agenda context
      • agendaName

        public java.lang.String agendaName
        Agenda name
      • placemap

        public boolean placemap
        Placemap context
      • placemapName

        public java.lang.String placemapName
        Placemap name
      • printtmpl

        public boolean printtmpl
        Print template context
      • printtmplName

        public java.lang.String printtmplName
        Cross table name
      • export

        public boolean export
        Export context
      • process

        public boolean process
        In a process
      • messages

        public transient java.util.Map<java.lang.String,​java.util.List<ObjectContext.FormMessage>> messages
        List of form messages by line
    • Constructor Detail

      • ObjectContext

        public ObjectContext()
        Empty constructor
    • Method Detail

      • get

        public int get()
        Get context as ObjectDB.CONTEXT_* constant
        Returns:
        Context
      • isSearch

        public boolean isSearch()
        Is search context?
        Returns:
        True if search context
      • isList

        public boolean isList()
        Is list context?
        Returns:
        True if list context
      • isCreate

        public boolean isCreate()
        Is create context?
        Returns:
        True if create context
      • isCopy

        public boolean isCopy()
        Is copy context?
        Returns:
        True if copy context
      • isUpdate

        public boolean isUpdate()
        Is update context?
        Returns:
        True if update context
      • isUpdateAll

        public boolean isUpdateAll()
        Is bulk update context ?
        Returns:
        True if bulk update context
      • isBulkUpdate

        public boolean isBulkUpdate()
        Is bulk update context (alias to isUpdateAll)?
        Returns:
        True if bulk update context
      • isAssociate

        public boolean isAssociate()
        Is bulk association context?
        Returns:
        True if bulk association context
      • isDelete

        public boolean isDelete()
        Is update context?
        Returns:
        True if delete context
      • isRefSelect

        public boolean isRefSelect()
        Is reference selection context?
        Returns:
        True if reference semection context
      • isDatamapSelect

        public boolean isDatamapSelect()
        Is data mapping selection context?
        Returns:
        True if data mapping selection context
      • isCrosstab

        public boolean isCrosstab()
        Is pivot table context?
        Returns:
        True if pivot table context
      • isPivotTable

        public boolean isPivotTable()
        Is pivot table context (alias to isCrosstab)?
        Returns:
        True if pivot table context
      • getCrosstabName

        public java.lang.String getCrosstabName()
        Get pivot table name
        Returns:
        Pivot table name or null if not in a pivot table context
      • getPivotTableName

        public java.lang.String getPivotTableName()
        Get pivot table name (alias to getCrosstabName)
        Returns:
        Pivot table name or null if not in a pivot table context
      • isAgenda

        public boolean isAgenda()
        Is agenda context?
        Returns:
        True if agenda context
      • getAgendaName

        public java.lang.String getAgendaName()
        Get agenda name
        Returns:
        Agenda name or null if not in a agenda context
      • isPlacemap

        public boolean isPlacemap()
        Is place map context?
        Returns:
        True if place map context
      • getPlacemapName

        public java.lang.String getPlacemapName()
        Get place map name
        Returns:
        Place map name or null if not in a place map context
      • isPrintTemplate

        public boolean isPrintTemplate()
        Is publication context?
        Returns:
        True if publication context
      • isPublication

        public boolean isPublication()
        Is publication context (alias to isPrintTemplate)?
        Returns:
        True if publication context
      • getPrintTemplateName

        public java.lang.String getPrintTemplateName()
        Get publication name
        Returns:
        Publication name or null if not in a publication context
      • getPublicationName

        public java.lang.String getPublicationName()
        Get publication name (alias to getPrintTemplateName)
        Returns:
        Publication name or null if not in a publication context
      • isExport

        public boolean isExport()
        Is export context?
        Returns:
        True if export context
      • apply

        public void apply​(ObjectDB obj,
                          java.lang.String edit)
        Apply the context related to object: apply constraints, init hooks
        Parameters:
        obj - contextual object
        edit - additional edit list context 'new' or 'rows'
      • contains

        public boolean contains​(java.lang.String display,
                                java.lang.String lineId)
      • getMessages

        public java.util.List<ObjectContext.FormMessage> getMessages​(char[] levels,
                                                                     java.lang.String lineId)
        Return messages related to a list of levels and line ID, or null if none
      • getMessages

        public java.util.List<ObjectContext.FormMessage> getMessages​(char level,
                                                                     java.lang.String lineId)
        Return messages related to level and a line ID, or null if none
      • getMesssages

        public java.util.List<ObjectContext.FormMessage> getMesssages​(char level)
        Return all messages related to a level, or null if none
      • addMessages

        public void addMessages​(ObjectDB obj,
                                java.util.List<java.lang.String> msgs,
                                Grant g,
                                java.lang.String lineId)
        Convert messages into a FormMessage
      • addMessage

        public void addMessage​(ObjectDB obj,
                               java.lang.String msg,
                               Grant g)
        Convert not empty message into a FormMessage
      • addMessage

        public void addMessage​(ObjectDB obj,
                               java.lang.String msg,
                               Grant g,
                               java.lang.String lineId)
        Convert not empty message into a FormMessage