Package org.gluu.oxtrust.service.push
Class PushDeviceService
java.lang.Object
org.gluu.oxtrust.service.push.PushDeviceService
- All Implemented Interfaces:
Serializable
Provides operations with oxPush devices
- Author:
- Yuriy Movchan Date: 01/22/2014
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPushDevice
(PushDevice pushDevice) Add new oxPush Device entryboolean
boolean
Check if LDAP server contains oxPush Device with specified attributesfindPushDevices
(String pattern, int sizeLimit) Search oxPush devices by patternfindPushDevices
(PushDevice pushDevice) Get oxPush devices by exampleGenerate new inum for oxPush DevicegetAllPushDevices
(String... ldapReturnAttributes) Get all oxPush devicesgetDnForPushDevice
(String inum) Build DN string for oxPush DeviceGet oxPush Device by DNvoid
Create oxPush Device branch if neededvoid
removePushDevice
(PushDevice pushDevice) Remove oxPush Device entryvoid
updatePushDevice
(PushDevice pushDevice) Update oxPush Device entry
-
Constructor Details
-
PushDeviceService
public PushDeviceService()
-
-
Method Details
-
addBranch
public void addBranch() -
containsBranch
public boolean containsBranch() -
preparePushDeviceBranch
public void preparePushDeviceBranch()Create oxPush Device branch if needed -
getPushDeviceByDn
Get oxPush Device by DN- Parameters:
DN
- oxPush Device DN- Returns:
- oxPush Device
-
addPushDevice
Add new oxPush Device entry- Parameters:
PushDevice
- oxPush Device
-
updatePushDevice
Update oxPush Device entry- Parameters:
PushDevice
- oxPush Device
-
removePushDevice
Remove oxPush Device entry- Parameters:
PushDevice
- oxPush Device
-
containsPushDevice
Check if LDAP server contains oxPush Device with specified attributes- Returns:
- True if oxPush Device with specified attributes exist
-
findPushDevices
Get oxPush devices by example- Parameters:
PushDevice
- pushDevice- Returns:
- List of PushDevices which conform example
-
getAllPushDevices
Get all oxPush devices- Returns:
- List of oxPush devices
-
findPushDevices
Search oxPush devices by pattern- Parameters:
pattern
- PatternsizeLimit
- Maximum count of results- Returns:
- List of oxPush devices
-
generateInumForNewPushDevice
Generate new inum for oxPush Device- Returns:
- New inum for oxPush Device
-
getDnForPushDevice
Build DN string for oxPush Device
-