psdi.app.assetcatalog

Class Classification

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, ClassificationRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class Classification
    extends Mbo
    implements ClassificationRemote, MboRemote
    MBO to represent Classification.

    See Assetcatalog Package description.

    This is a system level object.

    The key attributes for this object are: ClassificationId

    The attributes for this object are as follows:

    Attribute NameDescription
    Children Non-persistent Y/N attribute to indicate if this asset classification has children in a class structure.
    ClassificationIdIdentifier for this asset classification. One of two key attributes for this object.
    ClassStructureId Non-persistent column to store the class structure identifier if this classification has no children.
    DescriptionDescription of this asset classification. Long description enabled.
    LDKeyLong description key. This is a link to text stored in the LongDescription table.
    OrgIdIdentifier of the organization. One of the two key attributes for this object.
    See Also:
    ClassStructure
    • Constructor Detail

      • Classification

        public Classification(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Constructs the Classification object.

        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Determines if the record can be deleted. A classification can only be deleted if a classStructure does not reference it.

        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException - classificationnodelete
        GROUPKEYREASON
        assetcatalogclassificationnodeleteif it is referred to by a classStructure
        MXException
        java.rmi.RemoteException
      • isTop

        public boolean isTop()
                      throws MXException,
                             java.rmi.RemoteException
        Determines if this is a top level. If this is a top level, TRUE is returned. If not, FALSE is returned.

        Returns:
        true - this is a top level; false - not a top level
        Throws:
        MXException
        java.rmi.RemoteException
      • hasChildren

        public boolean hasChildren()
                            throws MXException,
                                   java.rmi.RemoteException
        Determines if this level has children by looking at the children column. The 'children' column is a non-persistent YORN column. If this level does have children, TRUE is returned. If not, FALSE is returned.

        Returns:
        true - this level has children; false - no children
        Throws:
        MXException
        java.rmi.RemoteException
      • hasParents

        public boolean hasParents()
                           throws MXException,
                                  java.rmi.RemoteException
        Determines if this is level one class. If this is a level 1 class, TRUE is returned. If not, FALSE is returned.

        Returns:
        true - this is a level one; false - not level one
        Throws:
        MXException
        java.rmi.RemoteException
      • getChildren

        public MboSetRemote getChildren()
                                 throws MXException,
                                        java.rmi.RemoteException
        Returns the children set for the classification hierachy.

        Returns:
        MboSetRemote - the set of children
        Throws:
        MXException
        java.rmi.RemoteException
      • getParents

        public MboSetRemote getParents()
                                throws MXException,
                                       java.rmi.RemoteException
        Returns the parents of this current classification in a hierarchy.

        Returns:
        MboSetRemote - the set of parents
        Throws:
        MXException
        java.rmi.RemoteException
      • getTop

        public MboSetRemote getTop()
                            throws MXException,
                                   java.rmi.RemoteException
        Returns the top level parent of the classification in a hierachy.

        Returns:
        MboSetRemote - the set of top level parent
        Throws:
        MXException
        java.rmi.RemoteException
      • getHierarchies

        public java.lang.String[] getHierarchies()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Returns null.

        Throws:
        MXException
        java.rmi.RemoteException
      • getClassStructureIDs

        public java.lang.String getClassStructureIDs()
                                              throws MXException,
                                                     java.rmi.RemoteException
        Returns the classStructureIds for this classificationId. The returned value will be surrounded by apostrophe's and comma delimited. For example, '1001','1002','1003'.

        Returns:
        String - list of classStructureIds for this classificationId
        Throws:
        MXException
        java.rmi.RemoteException
      • concatAll

        public java.lang.String concatAll(java.lang.String[] sa)
        Concatinates all of the members of the string array that's passed in into one string.

        Parameters:
        sa - string array to be concatinated
        Returns:
        String - concatinated string
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        added this appValidate() for index change of Classification
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException