com.ibm.commerce.command

Interface AccCommand

    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • accessControlCheck

        boolean accessControlCheck()
                            throws ECException
        This method performs command level access control checking for this command.
        Returns:
        This method returns true if the user has authority and false otherwise.
        Throws:
        ECException
      • getAccCheck

        boolean getAccCheck()
        This method gets the access control check flag. This method is called by the access control manager to see if access control checking is required for this command.
        Specified by:
        getAccCheck in interface ECCommand
        Returns:
        This method returns true if access checking is required and false otherwise.
      • getForUserId

        java.lang.Long getForUserId()
        This method gets the forUserId field of a shopper command. This method is for internal use by the command framework only.
        Returns:
        This method returns the forUserId.
      • getResourceOwners

        java.lang.Long[] getResourceOwners()
                                    throws ECException
        Deprecated. This method has been replaced by ECCommand.getResources().
        This method gets all the organizational units that own the resources accessed by this command. It will return null if no resource is being accessed by this command. This method was used in a previous version for command level access control checking. It is no longer required. It is kept for backward compatibility. The default implementation returns null.
        Returns:
        This method returns an array of Long objects representing all the organizational unit reference numbers. A site owner is represented by an organizational unit value of -1
        Throws:
        ECException
      • setAccCheck

        void setAccCheck(boolean newValue)
        This method sets the access control check flag for this command. This method is set by the web controller to indicate whether access control checking is required for this command. For example, no access control checking is required when we display a JSP page associated with a command. This is because access control has already been performed on the controller command.
        Specified by:
        setAccCheck in interface ECCommand
        Parameters:
        newValue - This is a boolean value; true if access checking is required and false otherwise.
      • setForUserId

        void setForUserId(java.lang.Long value)
        This method sets the value of the forUserId field for this command. This method is for internal use by the command framework.
        Parameters:
        value - This is the value of the forUserId field.
      • setOwner

        void setOwner(java.lang.Long owner)
        This method sets the owner for this command. This method is for internal use by the command framework only.
        Parameters:
        owner - This is the owner ID.