Class UserEntitiesTransform

    • Constructor Detail

      • UserEntitiesTransform

        public UserEntitiesTransform()
    • Method Detail

      • initializeTransform

        public void initializeTransform​(Transformable data)
        Description copied from class: AbstractAppTransform

        This method initialize the private and protected fields of the transform, such as width and height. It also invokes the initializeWebComponent, initializeImages and initializeCss methods.

        This method is automatically called from the transform method. Transforms which would like to invoke other methods in this instance directly (for example, to invoke some render methods), need first to call this method to guarantee that the Transform is ready to generate output.
        Specified by:
        initializeTransform in interface AppTransform
        Overrides:
        initializeTransform in class AbstractAppTransform
        Parameters:
        data - the bean to transform.
      • getSortedList

        public java.util.List getSortedList()
        Specified by:
        getSortedList in class AbstractObjectInfoListTransform
        Returns:
        a List instance with all the elements from the bean to be rendered by this transform. The contents will already be sorted if required.
      • getSupportedBeanType

        public java.lang.Class getSupportedBeanType()
        Description copied from class: AbstractAppTransform
        Returns the supported bean type. This abstract Transform supports all WebComponents so every sub-class should override this method to return the class of the Bean the Transform is expecting, for example:
         public class CustomReportClass extends AbstractAppTransform {
        
            public Class getSupportedBeanType() {
                //This Transform is expected to work only with a ReportBean,
                //therefore this method needs to return this class:
                return ReportBean.class;
            }
        
         }
         
        Specified by:
        getSupportedBeanType in interface Transform
        Overrides:
        getSupportedBeanType in class AbstractAppTransform
        Returns:
        a root class/interface supported by this transform.
      • getGoToEvent

        public WebEvent getGoToEvent()
        Specified by:
        getGoToEvent in class AbstractObjectInfoListTransform
        Returns:
        WebEvent instance with the information for handling incremental fetch requests on the list of objects being rendered by this transform. If not supported, it will return null
      • getBlockPosition

        protected int getBlockPosition()
        Specified by:
        getBlockPosition in class AbstractObjectInfoListTransform
        Returns:
        value of the property indicating the index of the first element currently being viewed as part of the list output. Used for incremental fetch purposes.
      • getBlockSize

        protected int getBlockSize()
        Specified by:
        getBlockSize in class AbstractObjectInfoListTransform
        Returns:
        value of the property indicating the number of elements included on a single 'page' of the list output. Used for incremental fetch purposes.
      • getChildCount

        protected int getChildCount()
        Specified by:
        getChildCount in class AbstractObjectInfoListTransform
        Returns:
        the total number of elements that are included on the list that could be rendered by this transform. Used for incremental fetch purposes.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Transform
        Returns a textual description of the transform.
        Returns:
        The textual description of the transform.
      • isObjectNotNull

        public boolean isObjectNotNull​(WebObjectInfo object)
        Convenience method to check object is Null.
        Parameters:
        object - WebObjectInfo Object to be checked for null.
        Returns:
        true if the object is not null.
      • canCreate

        public boolean canCreate()
      • canCreateGroup

        public boolean canCreateGroup()
      • canCreateUser

        public boolean canCreateUser()
      • getNewGroupEvent

        public WebEvent getNewGroupEvent()
      • getNewUserEvent

        public WebEvent getNewUserEvent()
      • renderEmptyCellForActions

        protected void renderEmptyCellForActions​(MarkupOutput out,
                                                 boolean renderCellAsText)
      • getContextMenuAttributes

        public java.util.Map getContextMenuAttributes​(WebObjectInfo object)
      • newContext

        protected TransformContext newContext()
        Description copied from class: AbstractAppTransform
        Creates a new instance of a TransformContext. It's used by the getContext method the first time is invoked. Transforms who require to include extra information in the context should create their own TransformContext implementation (possibly a subclass of AppTransformContext) and returns a new instance in this method.
        Overrides:
        newContext in class AbstractAppTransform