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 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)
Create a request repository that uses the LDAP databaseRequestRepository(DBSubsystem dbSubsystem, 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)
java.math.BigInteger
getNextSerialNumber()
Retrieves the next serial number, and also increase the serial number by one.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()
void
modifyRequest(IRequest request)
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, getRadix, hasRangeConflict, initCacheIfNeeded, peekNextSerialNumber, setEnableSerialMgmt, setLastSerialNo, setMaxSerial, setMaxSerialConfig, setMinSerialConfig, setNextMaxSerial, setNextMaxSerialConfig, setNextMinSerialConfig, setTheSerialNumber
-
-
-
-
Constructor Detail
-
RequestRepository
public RequestRepository(DBSubsystem dbSubsystem) 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.util.Hashtable<java.lang.String,java.lang.String> repositoryConfig) throws EBaseException
- Throws:
EBaseException
-
-
Method Detail
-
getNextSerialNumber
public java.math.BigInteger getNextSerialNumber() throws EBaseException
Description copied from class:Repository
Retrieves the next serial number, and also increase the serial number by one.- Specified by:
getNextSerialNumber
in interfaceIRepository
- Overrides:
getNextSerialNumber
in classRepository
- Returns:
- serial number
- Throws:
EBaseException
- failed to retrieve next serial number
-
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
-
modifyRequest
public void modifyRequest(IRequest request) throws EBaseException
- Throws:
EBaseException
-
removeAllObjects
public void removeAllObjects() throws EBaseException
Removes all objects with this repository.- 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)
-
-