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.String
filter
static org.slf4j.Logger
logger
-
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 void
addRequest(IRequest request)
IRequest
createRequest(RequestId requestID, java.lang.String requestType)
IRequest
createRequest(java.lang.String requestType)
RequestId
createRequestID()
RequestId
createRequestID(boolean ephemeral)
java.math.BigInteger
getLastSerialNumberInRange(java.math.BigInteger min, java.math.BigInteger max)
IRequestVirtualList
getPagedRequestsByFilter(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.String
getPublishingStatus()
IRequestList
listRequestsByFilter(java.lang.String filter)
IRequestList
listRequestsByFilter(java.lang.String filter, int maxSize)
IRequestList
listRequestsByFilter(java.lang.String filter, int maxSize, int timeLimit)
void
modifyRequest(IRequest request)
IRequest
readRequest(RequestId id)
void
removeAllObjects()
Removes all objects with this repository.void
setPublishingStatus(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 EBaseException
Removes 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:
getLastSerialNumberInRange
in classRepository
- Throws:
EBaseException
-
getPublishingStatus
public java.lang.String getPublishingStatus()
-
setPublishingStatus
public void setPublishingStatus(java.lang.String status)
-
-