Package com.netscape.cmscore.request
Class RequestRepository
- java.lang.Object
-
- com.netscape.cmscore.dbs.Repository
-
- com.netscape.cmscore.request.RequestRepository
-
- All Implemented Interfaces:
IRepository
public class RequestRepository extends Repository
TODO: what does this class provide beyond the Repository base class??- Version:
- $Revision$ $Date$
- Author:
- thayes
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringfilterstatic org.slf4j.Loggerlogger-
Fields inherited from class com.netscape.cmscore.dbs.Repository
dbSubsystem, maxSerialName, mBaseDN, mCounter, mEnableRandomSerialNumbers, mIncrementNo, minSerialName, mLowWaterMarkNo, mMaxSerialNo, mMinSerialNo, mNextMaxSerialNo, mNextMinSerialNo, mRadix, nextMaxSerialName, nextMinSerialName, rangeDN, repositoryConfig
-
-
Constructor Summary
Constructors Constructor Description RequestRepository(DBSubsystem dbSubsystem, java.lang.String filter)Create a request repository that uses the LDAP databaseRequestRepository(DBSubsystem dbSubsystem, java.lang.String filter, java.util.Hashtable<java.lang.String,java.lang.String> repositoryConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRequest(IRequest request)IRequestcreateRequest(RequestId requestID, java.lang.String requestType)IRequestcreateRequest(java.lang.String requestType)RequestIdcreateRequestID()RequestIdcreateRequestID(boolean ephemeral)java.math.BigIntegergetLastSerialNumberInRange(java.math.BigInteger min, java.math.BigInteger max)IRequestVirtualListgetPagedRequestsByFilter(RequestId fromID, boolean jumpToEnd, java.lang.String filter, int pageSize, java.lang.String sortKey)Gets a pageable list of IRequest entries in this queue.java.lang.StringgetPublishingStatus()IRequestListlistRequestsByFilter(java.lang.String filter)IRequestListlistRequestsByFilter(java.lang.String filter, int maxSize)IRequestListlistRequestsByFilter(java.lang.String filter, int maxSize, int timeLimit)voidmodifyRequest(IRequest request)IRequestreadRequest(RequestId id)voidremoveAllObjects()Removes all objects with this repository.voidsetPublishingStatus(java.lang.String status)-
Methods inherited from class com.netscape.cmscore.dbs.Repository
checkRange, checkRanges, getBaseDN, getMaxSerial, getMinSerial, getNextMaxSerial, getNextRange, getNextSerialNumber, getRadix, hasRangeConflict, initCacheIfNeeded, peekNextSerialNumber, setEnableSerialMgmt, setLastSerialNo, setMaxSerial, setMaxSerialConfig, setMinSerialConfig, setNextMaxSerial, setNextMaxSerialConfig, setNextMinSerialConfig, setTheSerialNumber
-
-
-
-
Constructor Detail
-
RequestRepository
public RequestRepository(DBSubsystem dbSubsystem, java.lang.String filter) throws EBaseException
Create a request repository that uses the LDAP database- Parameters:
dbSubsystem- the LDAP database system.- Throws:
EBaseException
-
RequestRepository
public RequestRepository(DBSubsystem dbSubsystem, java.lang.String filter, java.util.Hashtable<java.lang.String,java.lang.String> repositoryConfig) throws EBaseException
- Throws:
EBaseException
-
-
Method Detail
-
createRequestID
public RequestId createRequestID() throws EBaseException
- Throws:
EBaseException
-
createRequestID
public RequestId createRequestID(boolean ephemeral) throws EBaseException
- Throws:
EBaseException
-
createRequest
public IRequest createRequest(RequestId requestID, java.lang.String requestType) throws EBaseException
- Throws:
EBaseException
-
createRequest
public IRequest createRequest(java.lang.String requestType) throws EBaseException
- Throws:
EBaseException
-
addRequest
public void addRequest(IRequest request) throws EBaseException
- Throws:
EBaseException
-
readRequest
public IRequest readRequest(RequestId id) throws EBaseException
- Throws:
EBaseException
-
modifyRequest
public void modifyRequest(IRequest request) throws EBaseException
- Throws:
EBaseException
-
removeAllObjects
public void removeAllObjects() throws EBaseExceptionRemoves all objects with this repository.- Throws:
EBaseException
-
listRequestsByFilter
public IRequestList listRequestsByFilter(java.lang.String filter) throws EBaseException
- Throws:
EBaseException
-
listRequestsByFilter
public IRequestList listRequestsByFilter(java.lang.String filter, int maxSize) throws EBaseException
- Throws:
EBaseException
-
listRequestsByFilter
public IRequestList listRequestsByFilter(java.lang.String filter, int maxSize, int timeLimit) throws EBaseException
- Throws:
EBaseException
-
getPagedRequestsByFilter
public IRequestVirtualList getPagedRequestsByFilter(RequestId fromID, boolean jumpToEnd, java.lang.String filter, int pageSize, java.lang.String sortKey) throws EBaseException
Gets a pageable list of IRequest entries in this queue. This jumps right to the end of the list.- Parameters:
fromID- request id to start withjumpToEnd- jump to end of list (set fromID to null)filter- search filterpageSize- page sizesortKey- the attributes to sort by- Returns:
- request list
- Throws:
EBaseException
-
getLastSerialNumberInRange
public java.math.BigInteger getLastSerialNumberInRange(java.math.BigInteger min, java.math.BigInteger max) throws EBaseException- Specified by:
getLastSerialNumberInRangein classRepository- Throws:
EBaseException
-
getPublishingStatus
public java.lang.String getPublishingStatus()
-
setPublishingStatus
public void setPublishingStatus(java.lang.String status)
-
-