Skip navigation links
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.2.1.1)

E67111-01
oracle.jdevimpl.audit.core

Class DefaultAuditModel

    • Constructor Detail

      • DefaultAuditModel

        public DefaultAuditModel()
    • Method Detail

      • getLocations

        public java.util.List<Location> getLocations()
        Description copied from interface: AuditModel
        Gets the locations audited to create this model.
        Specified by:
        getLocations in interface AuditModel
      • getColumnCount

        public int getColumnCount()
        Description copied from interface: AuditModel
        Gets the number of columns in this model.
        Specified by:
        getColumnCount in interface AuditModel
      • getColumn

        public Metric getColumn(int index)
        Description copied from interface: AuditModel
        Gets the column at an index.
        Specified by:
        getColumn in interface AuditModel
      • setSortColumn

        public void setSortColumn(int column)
        Description copied from interface: AuditModel
        Sets the primary sort column for children of a row of this model, or null to sort by AuditModel.getLocation(java.lang.Object). If the specified column is already the primary sort column, toggles the sort direction.
        Specified by:
        setSortColumn in interface AuditModel
      • getSortColumn

        public int getSortColumn()
        Description copied from interface: AuditModel
        Gets the selected primary sort column. If null, natural row order
        Specified by:
        getSortColumn in interface AuditModel
      • getSortDirection

        public int getSortDirection()
        Description copied from interface: AuditModel
        Gets the sort direction of the primary sort column, 1 for ascending, -1 for descending.
        Specified by:
        getSortDirection in interface AuditModel
      • clear

        public void clear()
        Description copied from interface: AuditModel
        Clears all rows from the model.
        Specified by:
        clear in interface AuditModel
      • getRoot

        public java.lang.Object getRoot()
        Description copied from interface: AuditModel
        Gets the root row of this model, null if none.
        Specified by:
        getRoot in interface AuditModel
      • getParent

        public java.lang.Object getParent(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the parent row of a row of this model, null for the root row.
        Specified by:
        getParent in interface AuditModel
      • getIndexOf

        public int getIndexOf(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the index of a row of this model in the children of its parent, 0 for the root row.
        Specified by:
        getIndexOf in interface AuditModel
      • isLeaf

        public boolean isLeaf(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets whether a row of this model ,i>can have children.
        Specified by:
        isLeaf in interface AuditModel
      • hasChildren

        public boolean hasChildren(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets whether a row of this model has children.
        Specified by:
        hasChildren in interface AuditModel
      • getChildCount

        public int getChildCount(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the number of children of a row of this model.
        Specified by:
        getChildCount in interface AuditModel
      • getChildren

        public java.util.List<?> getChildren(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the children of a row of this model.
        Specified by:
        getChildren in interface AuditModel
      • isVisible

        public boolean isVisible(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets whether a row of this model is visible.
        Specified by:
        isVisible in interface AuditModel
      • findFilter

        public <T extends AuditModelFilter> T findFilter(java.lang.Class<T> type)
        Finds a filter of this model of a specified type.
        Specified by:
        findFilter in interface AuditModel
      • getVisibleParent

        public java.lang.Object getVisibleParent(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the visible parent row of a row of this model, null for the root row.
        Specified by:
        getVisibleParent in interface AuditModel
      • getVisibleIndexOf

        public int getVisibleIndexOf(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the index of a row of this model in the visible children of its visible parent, 0 for the root row.
        Specified by:
        getVisibleIndexOf in interface AuditModel
      • hasVisibleChildren

        public boolean hasVisibleChildren(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets whether a row of this model has visible children.
        Specified by:
        hasVisibleChildren in interface AuditModel
      • getVisibleChildCount

        public int getVisibleChildCount(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the number of visible children of a row of this model.
        Specified by:
        getVisibleChildCount in interface AuditModel
      • getVisibleChildren

        public java.util.List<?> getVisibleChildren(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the visible children of a row of this model.
        Specified by:
        getVisibleChildren in interface AuditModel
      • iterateChildren

        public java.lang.Object iterateChildren(java.lang.Object row,
                                                Iteration iteration)
        Description copied from interface: AuditModel
        Iterates the children of a row of this model.
        Specified by:
        iterateChildren in interface AuditModel
        Returns:
        null if the iteration completed normally, or the last object processed if the iteration was aborted.
      • iterateViolations

        public Violation iterateViolations(java.lang.Object row,
                                           Iteration iteration)
        Description copied from interface: AuditModel
        Iterates the violations contained by a row of this model.
        Specified by:
        iterateViolations in interface AuditModel
        Returns:
        null if the iteration completed normally, or the last object processed if the iteration was aborted.
      • isViolation

        public boolean isViolation(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets whether the object represented by a row of this model is a violation.
        Specified by:
        isViolation in interface AuditModel
      • getViolation

        public Violation getViolation(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the violation represented by a row of this model, or null if the row does not represent a violation.
        Specified by:
        getViolation in interface AuditModel
      • getType

        public java.lang.Class getType(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the type of an object of this model. If the object represented by the row is a construct, the type is one of the types returned by:
             getLocation(row).getModel().getType().getPresentationTypes()
         
        If the object is a violation, the type is Violation.
        Specified by:
        getType in interface AuditModel
        See Also:
        ModelType.getPresentationTypes()
      • getLabel

        public java.lang.String getLabel(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the label for a row of this model. A read transaction must be active on this model. If necessary, the label should be localized.
        Specified by:
        getLabel in interface AuditModel
      • getSummary

        public java.lang.String getSummary(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the summary for a row of this model. The summary will be used, for example, as the tool tip text if the construct appears as a row in an Audit report. A read transaction must be active on this model. The summary should be localized.
        Specified by:
        getSummary in interface AuditModel
      • getIcon

        public javax.swing.Icon getIcon(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the icon for a row of this model. A read transaction must be a active on this model. If necessary, the icon should be localized.
        Specified by:
        getIcon in interface AuditModel
      • getValue

        public java.lang.Object getValue(java.lang.Object row,
                                         int columnIndex)
        Description copied from interface: AuditModel
        Gets the value of a column of a row of this model.
        Specified by:
        getValue in interface AuditModel
      • setValue

        public void setValue(java.lang.Object row,
                             int columnIndex,
                             java.lang.Object value)
        Description copied from interface: AuditModel
        Sets the value of an column of a row of this model.
        Specified by:
        setValue in interface AuditModel
      • getSeverity

        public Severity getSeverity(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets the worst severity of the issues contained by a row of this model, or null if none.
        Specified by:
        getSeverity in interface AuditModel
      • isOutOfBand

        public boolean isOutOfBand(java.lang.Object row,
                                   int columnIndex)
        Description copied from interface: AuditModel
        Gets whether the value of a column of a row of this model is out-of-band.
        Specified by:
        isOutOfBand in interface AuditModel
      • isOutOfBand

        public boolean isOutOfBand(java.lang.Object row)
        Description copied from interface: AuditModel
        Gets whether the value of any column of a row of this model is out-of-band.
        Specified by:
        isOutOfBand in interface AuditModel
      • getTransformsApplied

        public java.util.List<Transform> getTransformsApplied(Violation violation)
        Description copied from interface: AuditModel
        Gets the transforms applied to a violation of this model, in application order. Transforms done and then undone are not included.
        Specified by:
        getTransformsApplied in interface AuditModel
      • phaseStarted

        public void phaseStarted(Auditor auditor,
                                 java.lang.String phaseName)
        Description copied from interface: AuditListener
        Reports an Auditor phase started event.
        Specified by:
        phaseStarted in interface AuditListener
      • auditStopped

        public void auditStopped(Auditor auditor,
                                 boolean cancelled)
        Description copied from interface: AuditListener
        Reports an Auditor audit stopped event.
        Specified by:
        auditStopped in interface AuditListener
      • createDummyRow

        public oracle.jdevimpl.audit.core.DefaultAuditModel.Row createDummyRow(AuditModel model,
                                                                               java.lang.Object row)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.2.1.1)

E67111-01

Copyright © 1997, 2016, Oracle. All rights reserved.