public CFSecurityServiceBuff lockBuff( CFSecurityAuthorization Authorization, CFSecurityServicePKey PKey) { final String S_ProcName = "lockBuff"; CFSecurityServiceBuff buff = readDerived(Authorization, PKey); if ((buff != null) && (!buff.getClassCode().equals("HSVC"))) { buff = null; } return (buff); }
public CFSecurityServiceBuff readBuffByIdIdx( CFSecurityAuthorization Authorization, long ClusterId, long ServiceId) { final String S_ProcName = "CFBamRamService.readBuffByIdIdx() "; CFSecurityServiceBuff buff = readDerivedByIdIdx(Authorization, ClusterId, ServiceId); if ((buff != null) && buff.getClassCode().equals("HSVC")) { return ((CFSecurityServiceBuff) buff); } else { return (null); } }
public CFSecurityServiceBuff[] readAllBuff(CFSecurityAuthorization Authorization) { final String S_ProcName = "CFBamRamService.readAllBuff"; CFSecurityServiceBuff buff; ArrayList<CFSecurityServiceBuff> filteredList = new ArrayList<CFSecurityServiceBuff>(); CFSecurityServiceBuff[] buffList = readAllDerived(Authorization); for (int idx = 0; idx < buffList.length; idx++) { buff = buffList[idx]; if ((buff != null) && buff.getClassCode().equals("HSVC")) { filteredList.add(buff); } } return (filteredList.toArray(new CFSecurityServiceBuff[0])); }
public CFSecurityServiceBuff[] readBuffByHostIdx( CFSecurityAuthorization Authorization, long ClusterId, long HostNodeId) { final String S_ProcName = "CFBamRamService.readBuffByHostIdx() "; CFSecurityServiceBuff buff; ArrayList<CFSecurityServiceBuff> filteredList = new ArrayList<CFSecurityServiceBuff>(); CFSecurityServiceBuff[] buffList = readDerivedByHostIdx(Authorization, ClusterId, HostNodeId); for (int idx = 0; idx < buffList.length; idx++) { buff = buffList[idx]; if ((buff != null) && buff.getClassCode().equals("HSVC")) { filteredList.add((CFSecurityServiceBuff) buff); } } return (filteredList.toArray(new CFSecurityServiceBuff[0])); }