Package org.gluu.oxtrust.service.push
Class PushApplicationService
- java.lang.Object
-
- org.gluu.oxtrust.service.push.PushApplicationService
-
- All Implemented Interfaces:
java.io.Serializable
@Named("pushApplicationService") public class PushApplicationService extends java.lang.Object implements java.io.Serializable
Provides operations with oxPush applications- Author:
- Yuriy Movchan Date: 01/22/2014
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PushApplicationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBranch()
void
addPushApplication(PushApplication pushApplication)
Add new oxPush Application entryboolean
containsBranch()
boolean
containsPushApplication(java.lang.String dn)
Check if LDAP server contains oxPush Application with specified attributesjava.util.List<PushApplication>
findPushApplications(java.lang.String pattern, int sizeLimit)
Search oxPush applications by patternjava.util.List<PushApplication>
findPushApplications(PushApplication pushApplication)
Get oxPush applications by examplejava.lang.String
generateInumForNewPushApplication()
Generate new inum for oxPush Applicationjava.util.List<PushApplication>
getAllPushApplications(java.lang.String... ldapReturnAttributes)
Get all oxPush applicationsjava.lang.String
getDnForPushApplication(java.lang.String inum)
Build DN string for oxPush ApplicationPushApplication
getPushApplicationByDn(java.lang.String dn)
Get oxPush Application by DNvoid
preparePushApplicationBranch()
Create oxPush Application branch if neededvoid
removePushApplication(PushApplication pushApplication)
Remove oxPush Application entryvoid
updatePushApplication(PushApplication pushApplication)
Update oxPush Application entry
-
-
-
Method Detail
-
addBranch
public void addBranch()
-
containsBranch
public boolean containsBranch()
-
preparePushApplicationBranch
public void preparePushApplicationBranch()
Create oxPush Application branch if needed
-
getPushApplicationByDn
public PushApplication getPushApplicationByDn(java.lang.String dn)
Get oxPush Application by DN- Parameters:
DN
- oxPush Application DN- Returns:
- oxPush Application
-
addPushApplication
public void addPushApplication(PushApplication pushApplication)
Add new oxPush Application entry- Parameters:
PushApplication
- oxPush Application
-
updatePushApplication
public void updatePushApplication(PushApplication pushApplication)
Update oxPush Application entry- Parameters:
PushApplication
- oxPush Application
-
removePushApplication
public void removePushApplication(PushApplication pushApplication)
Remove oxPush Application entry- Parameters:
PushApplication
- oxPush Application
-
containsPushApplication
public boolean containsPushApplication(java.lang.String dn)
Check if LDAP server contains oxPush Application with specified attributes- Returns:
- True if oxPush Application with specified attributes exist
-
findPushApplications
public java.util.List<PushApplication> findPushApplications(PushApplication pushApplication)
Get oxPush applications by example- Parameters:
PushApplication
- pushApplication- Returns:
- List of PushApplications which conform example
-
getAllPushApplications
public java.util.List<PushApplication> getAllPushApplications(java.lang.String... ldapReturnAttributes)
Get all oxPush applications- Returns:
- List of oxPush applications
-
findPushApplications
public java.util.List<PushApplication> findPushApplications(java.lang.String pattern, int sizeLimit)
Search oxPush applications by pattern- Parameters:
pattern
- PatternsizeLimit
- Maximum count of results- Returns:
- List of oxPush applications
-
generateInumForNewPushApplication
public java.lang.String generateInumForNewPushApplication()
Generate new inum for oxPush Application- Returns:
- New inum for oxPush Application
-
getDnForPushApplication
public java.lang.String getDnForPushApplication(java.lang.String inum)
Build DN string for oxPush Application
-
-