Interface RecordServiceLocal

    • Field Detail

      • ATTR_USER

        static final String ATTR_USER
        Attribute name for scripting: The user in which records are being searched
        See Also:
        Constant Field Values
      • ATTR_RECORD_TYPE

        static final String ATTR_RECORD_TYPE
        Attribute name for scripting: The record type being searched
        See Also:
        Constant Field Values
    • Method Detail

      • canChangeToSingleForm

        boolean canChangeToSingleForm​(RecordType recordType)
        Returns true if the record type can be changed to single form layout.
      • getRecordsCount

        int getRecordsCount​(SystemRecordType type)
        Returns the count for system records of the given type
      • getRecordsCount

        int getRecordsCount​(UserRecordType type,
                            User user)
        Returns the count for records of the given type and user
      • getRecordTypeCount

        List<RecordTypeCountVO> getRecordTypeCount​(User user)
        Returns a list with the visible record types by the logged user of the given user
      • getSharedSearchableRecordTypes

        List<UserRecordType> getSharedSearchableRecordTypes()
        Returns the record types that has at least one searchable shared record custom field
      • getSingleFormRecord

        UserRecord getSingleFormRecord​(UserRecordType rt,
                                       User user)
        Returns the record for this single form user record type
      • getSystemRecordTypeCount

        List<RecordTypeCountVO> getSystemRecordTypeCount()
        Returns a list with the visible system record types by the logged user
      • hasRecordCustomFieldValue

        boolean hasRecordCustomFieldValue​(RecordType type,
                                          RecordCustomField field)
        Returns true if there is at least one record custom field value for the given type and field.
        This method accept a shared custom field as parameter.
      • purgeAll

        void purgeAll​(User user)
        Removes all user records of the given user whose types are set to remove records when purging users