Class DesktopAction

    • Constructor Detail

      • DesktopAction

        protected DesktopAction()
        Default constructor
      • DesktopAction

        protected DesktopAction​(int attr,
                                int preActions)
        Class constructor
        Parameters:
        attr - int
        preActions - int
      • DesktopAction

        protected DesktopAction​(java.lang.String name)
        Class constructor
        Parameters:
        name - String
    • Method Detail

      • getAttributes

        public final int getAttributes()
        Return the desktop action attributes
        Returns:
        int
      • hasAttribute

        public final boolean hasAttribute​(int attr)
        Check for a specified action attribute
        Parameters:
        attr - int
        Returns:
        boolean
      • getPreProcessActions

        public final int getPreProcessActions()
        Return the desktop action pore-processing actions
        Returns:
        int
      • hasPreProcessAction

        public final boolean hasPreProcessAction​(int pre)
        Check for the specified pre-process action
        Parameters:
        pre - int
        Returns:
        boolean
      • getName

        public final java.lang.String getName()
        Return the action name
        Returns:
        String
      • hasPseudoFile

        public final boolean hasPseudoFile()
        Check if the action has an associated pseudo file
        Returns:
        boolean
      • getPseudoFile

        public final org.alfresco.jlan.server.filesys.pseudo.PseudoFile getPseudoFile()
        Return the associated pseudo file
        Returns:
        PseudoFile
      • getContext

        public final AlfrescoContext getContext()
        Return the filesystem context
        Returns:
        AlfrescoContext
      • getConfirmationString

        public java.lang.String getConfirmationString()
        Return the action confirmation string to be displayed by the client application
        Returns:
        String
      • getServiceRegistry

        public final ServiceRegistry getServiceRegistry()
        Return the service registry
        Returns:
        ServiceRegistry
      • setServiceRegistry

        public final void setServiceRegistry​(ServiceRegistry serviceRegistry)
      • hasDebug

        public final boolean hasDebug()
        Check if debug output is enabled
        Returns:
        boolean
      • hasWebappURL

        public final boolean hasWebappURL()
        Check if the webapp URL is set
        Returns:
        boolean
      • getWebappURL

        public final java.lang.String getWebappURL()
        Return the webapp URL
        Returns:
        String
      • initializeAction

        public void initializeAction​(org.springframework.extensions.config.ConfigElement global,
                                     org.springframework.extensions.config.ConfigElement config,
                                     org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
                              throws DesktopActionException
        Initialize the desktop action
        Parameters:
        global - ConfigElement
        config - ConfigElement
        fileSys - DiskSharedDevice
        Throws:
        DesktopActionException
      • standardInitialize

        public void standardInitialize​(org.springframework.extensions.config.ConfigElement global,
                                       org.springframework.extensions.config.ConfigElement config,
                                       org.alfresco.jlan.server.filesys.DiskSharedDevice fileSys)
                                throws DesktopActionException
        Perform standard desktop action initialization
        Parameters:
        global - ConfigElement
        config - ConfigElement
        fileSys - DiskSharedDevice
        Throws:
        DesktopActionException
      • setAttributes

        protected final void setAttributes​(int attr)
        Set the action attributes
        Parameters:
        attr - int
      • setPreProcessActions

        public final void setPreProcessActions​(int pre)
        Set the client side pre-processing actions
        Parameters:
        pre - int
      • setName

        public final void setName​(java.lang.String name)
        Set the action name
        Parameters:
        name - String
      • setPseudoFile

        public final void setPseudoFile​(org.alfresco.jlan.server.filesys.pseudo.PseudoFile pseudoFile)
        Set the associated pseudo file
        Parameters:
        pseudoFile - PseudoFile
      • setFilename

        public void setFilename​(java.lang.String filename)
        Set the associated pseudo file name
        Parameters:
        filename - the file name
      • setPath

        public void setPath​(java.lang.String path)
        Set the physical path of the associated pseudo file
        Parameters:
        path - the path
      • setDebug

        public final void setDebug​(boolean ena)
        Enable debug output
        Parameters:
        ena - boolean
      • setWebappURL

        public final void setWebappURL​(java.lang.String urlStr)
        Set the webapp URL
        Parameters:
        urlStr - String
      • equals

        public boolean equals​(java.lang.Object obj)
        Equality check
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - Object
        Returns:
        boolean
      • toString

        public java.lang.String toString()
        Return the desktop action details as a string
        Overrides:
        toString in class java.lang.Object
        Returns:
        String