Class PushDeviceService

  • All Implemented Interfaces:
    java.io.Serializable

    @Named("pushDeviceService")
    public class PushDeviceService
    extends java.lang.Object
    implements java.io.Serializable
    Provides operations with oxPush devices
    Author:
    Yuriy Movchan Date: 01/22/2014
    See Also:
    Serialized Form
    • Constructor Detail

      • PushDeviceService

        public PushDeviceService()
    • Method Detail

      • addBranch

        public void addBranch()
      • containsBranch

        public boolean containsBranch()
      • preparePushDeviceBranch

        public void preparePushDeviceBranch()
        Create oxPush Device branch if needed
      • getPushDeviceByDn

        public PushDevice getPushDeviceByDn​(java.lang.String dn)
        Get oxPush Device by DN
        Parameters:
        DN - oxPush Device DN
        Returns:
        oxPush Device
      • addPushDevice

        public void addPushDevice​(PushDevice pushDevice)
        Add new oxPush Device entry
        Parameters:
        PushDevice - oxPush Device
      • updatePushDevice

        public void updatePushDevice​(PushDevice pushDevice)
        Update oxPush Device entry
        Parameters:
        PushDevice - oxPush Device
      • removePushDevice

        public void removePushDevice​(PushDevice pushDevice)
        Remove oxPush Device entry
        Parameters:
        PushDevice - oxPush Device
      • containsPushDevice

        public boolean containsPushDevice​(java.lang.String dn)
        Check if LDAP server contains oxPush Device with specified attributes
        Returns:
        True if oxPush Device with specified attributes exist
      • findPushDevices

        public java.util.List<PushDevice> findPushDevices​(PushDevice pushDevice)
        Get oxPush devices by example
        Parameters:
        PushDevice - pushDevice
        Returns:
        List of PushDevices which conform example
      • getAllPushDevices

        public java.util.List<PushDevice> getAllPushDevices​(java.lang.String... ldapReturnAttributes)
        Get all oxPush devices
        Returns:
        List of oxPush devices
      • findPushDevices

        public java.util.List<PushDevice> findPushDevices​(java.lang.String pattern,
                                                          int sizeLimit)
        Search oxPush devices by pattern
        Parameters:
        pattern - Pattern
        sizeLimit - Maximum count of results
        Returns:
        List of oxPush devices
      • generateInumForNewPushDevice

        public java.lang.String generateInumForNewPushDevice()
        Generate new inum for oxPush Device
        Returns:
        New inum for oxPush Device
      • getDnForPushDevice

        public java.lang.String getDnForPushDevice​(java.lang.String inum)
        Build DN string for oxPush Device