Package org.gluu.oxtrust.service.push
Class PushDeviceService
- java.lang.Object
-
- org.gluu.oxtrust.service.push.PushDeviceService
-
- All Implemented Interfaces:
java.io.Serializable
@Named("pushDeviceService") public class PushDeviceService extends java.lang.Object implements java.io.SerializableProvides operations with oxPush devices- Author:
- Yuriy Movchan Date: 01/22/2014
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PushDeviceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBranch()voidaddPushDevice(PushDevice pushDevice)Add new oxPush Device entrybooleancontainsBranch()booleancontainsPushDevice(java.lang.String dn)Check if LDAP server contains oxPush Device with specified attributesjava.util.List<PushDevice>findPushDevices(java.lang.String pattern, int sizeLimit)Search oxPush devices by patternjava.util.List<PushDevice>findPushDevices(PushDevice pushDevice)Get oxPush devices by examplejava.lang.StringgenerateInumForNewPushDevice()Generate new inum for oxPush Devicejava.util.List<PushDevice>getAllPushDevices(java.lang.String... ldapReturnAttributes)Get all oxPush devicesjava.lang.StringgetDnForPushDevice(java.lang.String inum)Build DN string for oxPush DevicePushDevicegetPushDeviceByDn(java.lang.String dn)Get oxPush Device by DNvoidpreparePushDeviceBranch()Create oxPush Device branch if neededvoidremovePushDevice(PushDevice pushDevice)Remove oxPush Device entryvoidupdatePushDevice(PushDevice pushDevice)Update oxPush Device entry
-
-
-
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- PatternsizeLimit- 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
-
-